Orthogonal transformation encoder

Abstract: In a data compression encoder for a video signal the degree of influence on visual sensation is detected by obtaining orthogonal transformation coefficients by carrying out an orthogonal transformation in a circuit (2). Depending on the degree of influence on the visual sensation, the quantization step size is controlled by a control circuit (4) so as to assign a greater amount of codes to each block in which the image quality deterioration would be conspicuous and a smaller amount of codes to each block in which the image quality deterioration would be less conspicuous.

Description: The present invention relates to an orthogonal transformation encoder for use in increasing a compression ratio in encoding a video signal with high efficiency. Since a video signal has a vast amount of data, a high-efficiency coding method is adopted for recording or transmitting the data. The high-efficiency coding method employs a technique of reducing the amount of data keeping the possible high quality of the image while avoiding visually conspicuous deterioration of the image quality. In line with the above technique, there is an orthogonal transform coding system as an essence of a bandwidth compression coding. In the orthogonal transform coding system, a screen image having a prescribed size is divided into a plurality of screen image blocks and the data of each screen image block is subjected to an orthogonal transform coding thereby to obtain orthogonal transform coefficients. Then the obtained orthogonal transform coefficients are quantized in such a manner that the method of the quantization is a decisive factor concerning the deterioration in quality of the resulting image. For example, according to "Adaptive Coding of Monochrome and Color Images" by Chen and Smith, IEEE Transaction on Communications Vol. COM-25, No. 11, 1987, pp. 1285 to 1292, energy of alternating current components is calculated from orthogonal transform coefficients thereby to control the bit amount for assignment based on the calculated result. However, according to the conventional coding method mentioned above, although the energy in each block of the screen image is reduced, the block which includes important data of such as a ground or water surface image fatally deteriorates. Furthermore, the calculation of energy of alternating current components requires a calculation of sum of squares, and therefore the above conventional coding method is not assumed to be the best one in terms of circuit scale. The document JP-A-03,140,074 discloses an orthogonal transformation encoder for coding an input video signal. The encoder is provided with an area discrimination section and a quantisation step width regulation section, where the area discrimination section discriminates as to whether or not the area includes a character or a complicated contour. When coding an area of the block having greater energy i.e. an area which includes a character or complicated contour, the picture quality is improved by decreasing a quantisation step width to be smaller than that in comparison to when coding a low energy area. According to this invention, an orthogonal transformation encoder which receives a video signal having sampled data divided in blocks as an input comprises: an orthogonal transformation circuit for orthogonally transforming the input video signal divided in blocks; a scanning circuit for rearranging transform coefficients obtained by the orthogonal transformation circuit; a quantization control circuit for detecting a degree of influence on visual sensation of each block according to the transform coefficients concurrently with the operation of the scanning circuit to thereby generate a quantization control signal representing the degree of influence; and a coding circuit for quantizing and encoding the transform coefficients obtained by the scanning circuit according to the quantization control signal obtained by the quantization control circuit. The present invention provides an orthogonal transformation encoder capable of achieving a well balanced image quality throughout a screen by obtaining the degree of influence on the visual sensation for each block of the screen image in a simple manner and assigning a greater amount of data to each block which includes visually important image data than to each block in which deterioration of image quality is visually less conspicuous. With the construction of the orthogonal transformation encoder according to the present invention, based on the degree of influence on the visual sensation in each block, a smaller amount of codes are assigned to each block in which image quality deterioration is less conspicuous while a greater amount of codes are assigned to each block in which image quality deterioration is conspicuous, thereby enabling to control the amount of codes with improvement of the image quality throughout the screen. Particular embodiments of the present invention will now be described with reference to the accompanying drawings, in which:- Fig. 1 is a block diagram showing an orthogonal transformation encoder in accordance with a first embodiment of the present invention; Figs. 2 (A) and 2 (B) are views showing coefficient arrangement patterns of each block for explaining the operation of the orthogonal transformation encoder of the embodiment according to the present invention; Figs. 3 (a) through 3 (e) are graph views showing distribution patterns of absolute values of transform coefficients for explaining the operation of the orthogonal transformation encoder of the embodiment according to the present invention; Fig. 4 is a block diagram showing a constitution of the quantization control circuit of the first embodiment of Fig. 1; Figs. 5 (a) and 4 (b) are schematic views showing relationships between a luminance signal and a chrominance signal in the first embodiment of the present invention; Fig. 6 is a block diagram showing an orthogonal transformation encoder in accordance with a second embodiment of the present invention; Fig. 7 is a graph view showing a distribution pattern of absolute values of transform coefficients for explaining the operation of a quantization control circuit of the second embodiment of the present invention; Fig. 8 is a view showing combinations in a detection pattern selection for explaining the operation of the quantization control circuit of the second embodiment of the present invention; and, Fig. 9 is a block diagram showing a constitution of the quantization control circuit of the second embodiment of Fig. 6. Referring to Fig. 1 which shows an orthogonal transformation encoder in accordance with a first embodiment, the orthogonal transformation encoder comprises an orthogonal transformation circuit 2 for orthogonally transforming an input video signal of sampled data divided in blocks received by an input terminal 1 to obtain orthogonal transform coefficients. The data of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 is transmitted to both a scanning circuit 3 and a quantization control circuit 4. The scanning circuit 3 rearranges the transform coefficients obtained through the orthogonal transformation circuit 2 while the quantization control circuit 4 detects a degree of influence on the visual sensation for each block according to the transform coefficients transmitted from the orthogonal transformation circuit 2 thereby to generate a quantization control signal to be entered to a coding circuit 5. The rearranged transform coefficients output by the scanning circuit 3 are also transmitted to the coding circuit 5 where the rearranged transform coefficients are appropriately quantized and coded according to the quantization control signal transmitted from the quantization control circuit 4, and then the resulting coded data is outputted through an output terminal 6. The coding circuit 5 comprises a quantization selection circuit 8 for specifying a quantization step size appropriate for dividing and compressing the orthogonal transform coefficients output from the scanning circuit 3 to a desired amount of coded bits according to the quantization control signal output from the quantization control circuit 4. The coding circuit 5 further comprises a quantizer 7 for quantizing the orthogonal transform coefficients rearranged by the scan circuit 3 with the quantization step size specified by the quantization selection circuit 8, and a coding device 9 for coding the quantized data output from the quantizer 7. The quantization selection circuit 8 is composed of a plurality of quantizing units having various quantization step sizes different from each other, and each quantizing unit quantizes the orthogonal transform coefficients. Among the resulting data therefrom, the appropriate quantization step size is specified for compressing the orthogonal transform coefficients to a desired data amount. In addition, since the quantization control signal output from the quantization control circuit 4 represents the degree of influence on the visual sensation in each block to be subjected to quantization, therefore the quantization step size for the block is appropriately controlled by the quantization selection circuit 8 according to the quantization control signal. Referring to Figs. 2 (A) and 2 (B) for explaining the operation of the scanning circuit 3, wherein Fig. 2 (A) shows an arrangement of the orthogonal transform coefficients output by the orthogonal transformation circuit 2 and Fig. 2 (B) shows an arrangement of the orthogonal transform coefficients rearranged by the scanning circuit 3. It is now assumed that the operation of the orthogonal transformation circuit 2 is based on a two-dimensional orthogonal transformation and each block has a size of 4 horizontal pixels by 4 vertical pixels in each of the coefficient arrangements as shown in Figs. 2 (A) and 2 (B). Therefore, in each of Figs. 2 (A) and 2 (B), one block includes 16 coefficients composed of 4 horizontal coefficients by 4 vertical coefficients. In each of the blocks in Figs. 2 (A) and 2 (B), the coefficients have such frequency correspondence that those located leftward correspond to a horizontal low-frequency part and those located upward correspond to a vertical low-frequency part. In the scanning circuit 3, the coefficients in each block are rearranged two-dimensionally in the order from the low frequency to the high frequency in so-called a zigzag scanning manner as shown in Fig. 2 (B) suitable for the coding operation in the two-dimensional orthogonal transformation. The above-mentioned rearrangement is adopted for the reason that the low-frequency components containing a direct current (DC) component exerts more influence on the visual sensation and therefore the low-frequency components are treated as more important components. Fig. 3 (a) shows a distribution of orthogonal transform coefficients in a block to be input to the quantizer 7 from the scanning circuit 3, where the arrangement of the coefficients is composed of 16 coefficients corresponding to a block size of 4 × 4 pixels in the same manner as described in conjunction with Fig. 2 (B), wherein it is noted that the direct current (DC) component corresponding to number 1 of the coefficient arrangement is eliminated in Fig. 3 (a). Now considering a case where the amplitude of a direct current (DC) component of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 is greater than one prescribed threshold level (approximately corresponding to pure white) or smaller than the other prescribed threshold level (approximately corresponding to pure black), image quality deterioration exerts less influence on the visual sensation, and therefore a greater quantization step size is selected to quantize the transform coefficients with increment of the compression ratio in the quantizer 7. In this case, an example of the quantized coefficient distribution is shown in Fig. 3 (b). Fig. 3 (c) shows a distribution of the coefficients when the coefficient distribution shown in Fig. 3 (b) is decoded, where the low-frequency part is reproduced while almost the entire high-frequency part is eliminated. This means that the data amount necessary for coding each block is reduced. When the direct current (DC) component in the orthogonal transform coefficients is not in the above-mentioned condition, that is, in case where the amplitude of a direct current component of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 is in a range between the prescribed upper and lower threshold levels, a quantization operation is carried out by selecting as smaller quantization step size without significantly increasing the compression ratio in the quantizer 7. As a consequence of the quantization, a coefficient distribution is obtained as shown in Fig. 3 (d), and the obtained coefficient distribution is decoded into a coefficient distribution as shown in Fig. 3 (e). Referring to Fig. 3 (e), the data amount increases in contrast to the coefficient distribution as shown in Fig. 3 (c). However, a reproducibility up to a high-frequency part is used with less deterioration. In other words, the quantization control circuit 4 judges the degree of influence on the visual sensation according to the amplitude of the direct current component of the orthogonal transform coefficients output from the orthogonal transformation circuit 2. The judgment result is output as a quantization control signal to the quantization selection circuit 8. Fig. 4 shows a constitution of the quantization control circuit 4 shown in Fig. 1. Referring to Fig. 4, the data of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 is entered to a terminal 10, and the direct current (DC) component thereof is entered to an absolute circuit 11 where the amplitude value of the direct current is transformed to an absolute value. The absolute value is compared with the threshold level in a comparator unit 12 and the compared result is outputted as a binary quantization control signal through a terminal 15. It is noted here that the direct current (DC) component of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 is set in such a manner that the center of the luminance level (i.e., gray level) represents 0 (zero) level. For example, in case where the DC component is 9 bits, the value of the DC component is variable in a range from -256 to +255 (i.e., in a range from 0 to 256 in the absolute value thereof). Assuming that the threshold levels are set to ±200 in the 9-bit DC, when the amplitude of the DC component is below-200 or greater than +200, it is judged that the degree of influence on the visual sensation is less (or low). Then the quantization selection circuit 8 specifies a quantization step size for compressing the orthogonal transformation coefficients output from the scanning circuit 3 in a unit of plural blocks to obtain a desired data amount for the unit of blocks. In the meantime, a relatively great quantization step size is applied to each block for which the quantization control signal represents a low degree of influence on the visual sensation and a smaller amount of coding bits are assigned. While a greater amount of coding bits are assigned to each block which represents a high degree of influence on the visual sensation in the plural blocks. The quantization control circuit 4 outputs a control signal according to the amplitude of the direct current (DC) component for each luminance signal block. When an input block corresponds to a chrominance signal, the same control signal as applied to the luminance signal located at the same position as that of the chrominance block on the screen is adopted. For example, in the case of a 4 : 2 : 0 ratio signal obtained line-sequentially with the sampling frequency for the chrominance signal at one half of the sampling frequency for the luminance signal, the relation between the luminance signal block and the chrominance signal block is as shown in Fig. 5 (a) where one chrominance signal block corresponds to four luminance signal blocks. Therefore, when plural blocks among the blocks Y1, Y2, Y3, and Y4 as shown in Fig. 5 (a) satisfy the aforementioned condition, the chrominance signal block is quantized at a high compression ratio. That is, referring back to Fig. 4, the binary output signal of the comparator 12 according to the luminance signal is temporarily stored in a decision circuit 13, and when the chrominance signal block is input, the output of the decision circuit 13 is generated as a quantization control signal through the terminal 15 by selecting a switch 14. Fig. 5 (b) shows a 4 : 1 : 1 ratio signal obtained with the sampling frequency of the chrominance signal at one forth with respect to the sampling frequency of the luminance signal, where the signal is to be processed in the same manner as in the case in Fig. 5(a). According to the first embodiment as described above, in the quantization control circuit 4, the degree of influence on the visual sensation is judged with reference to the amplitude of each direct current component of the orthogonal transform coefficients thereby to detect the condition where the luminance signal has a great amplitude (approximately corresponding to pure white) as well as a small amplitude (approximately corresponding to pure black) where a low degree of influence is exerted on the visual sensation and image quality deterioration is less conspicuous. According to the above-mentioned detection operation, the quantization step size is controlled in the quantization selection circuit 8 to enable reducing the possible deterioration of image quality throughout the screen picture. Although each chrominance signal block is controlled by means of the control signal for the corresponding luminance signal in the present embodiment, the luminance signal blocks may be only controlled without controlling any chrominance signal block to produce an effect of improving the image quality. It is of course easy to process each chrominance signal block in the same manner as described in connection with the luminance signal blocks. In this case, the amplitude of a direct current component in each chrominance signal represents chroma. Therefore, it is preferred to judge the degree of influence on the visual sensation according to the amplitude of the direct current component of a block such as a red color block of which deterioration of image quality is conspicuous to thereby control the quantization step size of the block. The following describes an orthogonal transformation encoder in accordance with a second embodiment of the present invention with reference to Figs. 6 through 9. The second embodiment is similar to the first embodiment and like parts are designated by the same reference numerals except a different type of quantization control circuit 20 having its structure and operation different from those of the quantization control circuit 4 in the first embodiment. The quantization control circuit 20 of the orthogonal transformation encoder detects distribution patterns each exerting a high or low degree of influence on the visual sensation among the entire distribution patterns of the orthogonal transform coefficients output from the orthogonal transformation circuit 2 thereby to output a quantization control signal corresponding to the degree of influence on the visual sensation of each of the detected distribution pattern. The quantization selection circuit 8 controls the quantization step size for each block according to the degree of influence on the visual sensation represented by the quantization control signal in the same manner as described in connection with the first embodiment. The following describes the operation of the quantization control circuit 20 in the second embodiment with reference to Fig. 7. A distribution pattern of orthogonal transform coefficients as shown in Fig. 7 is divided into two parts, a low-frequency part and a high-frequency part, by using a specified coefficient arrangement as a boundary therebetween. Then the maximum values in the low-frequency and high-frequency parts are defined as L max and H max respectively. The two maximum values L max and H max are each classified into one of four classes of 0, 1, 2 and 3 in the ascending order according to their absolute values. The absolute values are subjected to judgment whether the arrangement pattern exerts a high degree of influence on the visual sensation according to a matrix of combinations of the classes as shown in Fig. 8. The arrangement pattern combinations exerting a high degree of influence in the visual sensation are indicated by circle marks O. According to the exemplified matrix shown in Fig. 8, a pattern including orthogonal transformation coefficients having small absolute values and a pattern where coefficients range from the low-frequency part to the high-frequency part are detected, while a pattern where coefficients are concentrated on the low-frequency part is not detected. Thus, the quantization is carried out in such a manner that the quantization step size is reduced for each detected pattern, while the quantization step size is increased for a pattern where orthogonal transform coefficients are concentrated on the low-frequency part and the coefficients have great amplitude values. Fig. 9 shows an exemplified structure of the quantization control circuit 20. Referring to Fig. 9, the orthogonal transform coefficients output from the orthogonal transformation circuit 2 are entered to a division circuit 22 through a terminal 21 to be divided into two parts, low-frequency part and high-frequency part. The low and high frequency parts of the divided coefficients are respectively entered to MAX detection circuits 23 and 24 where the two maximum values L max and H max in the respective two blocks are detected. The two maximum values L max and H max are entered to classification circuits 25 and 26 respectively and classified according to the amplitude values thereof. The values of the classes output from the classification circuits 25 and 26 are judged in a decision circuit 27 using the matrix shown in Fig. 8 whether the combination of the classes in a pattern having a great degree of influence on the visual sensation. The judged results are generated as the control signal through a terminal 28 to be transmitted to the quantization selection circuit 8. It is noted that the ratio of protecting the pattern detected according to the matrix, i.e., the control of the quantization step size can be determined for each detected pattern. According to the second embodiment as described above, each distribution pattern of orthogonal transform coefficients of which deterioration is visually conspicuous is detected in the quantization control circuit 20, so that the quantization step size is controlled in the quantization selection circuit 8 according to the detected distribution pattern of the coefficients thereby to enable suppressing possible deterioration of the image quality. As a pattern detection method of the quantization control circuit 20 of the present embodiment, the coefficients of the low-frequency part and the coefficients of the high-frequency part may be respectively added together to obtain sum values thereof so that the patterns to be detected can be defined based on the relation between the sum values.

Claims: An orthogonal transformation encoder for encoding an input video signal of sampled data divided in blocks through orthogonal transformation and quantization for each block characterized in that: orthogonal transformation means (2) orthogonally transforms the video signal divided in blocks to obtain orthogonal transform coefficients; scanning means (3) rearranges the transform coefficients obtained by said orthogonal transformation means in a zigzag scanning manner for coding; quantization control means (4) detects a degree of influence on visual sensation for each block according to the amplitude value of the direct current component of the orthogonal transform coefficients obtained by said orthogonal transformation means concurrently with the rearrangement operation of said scanning means thereby to generate a binary signal representing the detected degree of influence; quantizing means (7, 8) quantizes the transform coefficients rearranged by said scanning means with selection of a quantization step size for controlling the amount of codes according to the binary control signal generated by said quantization control means (4); and coding means (9) codes the transform coefficients quantized by said quantizing means (7, 8). The orthogonal transformation encoder as claimed in Claim 1, wherein when the absolute value of the amplitude of the direct current component of the transform coefficients obtained by said orthogonal transformation means is greater than a prescribed value for each block, said quantization control means generates a quantization control signal representing a low degree of influence on the visual sensation and then said quantizing means selects an increased quantization step size greater than a regular size. The orthogonal transformation encoder as claimed in Claim 2, wherein said quantization control means outputs the control signal only when a block of the input video signal represents a luminance signal. The orthogonal transformation encoder as claimed in Claim 2, wherein when a block of the input the video signal represents a chrominance signal, said quantization control means outputs the same control signal as applied to the luminance signal block of which location is identical to that of the chrominance signal block on a screen. The orthogonal transformation encoder as claimed in claim 1, comprising a quantisation selection circuit (8) for specifying a quantisation step size appropriate for dividing and compressing the orthogonal transform coefficients output from the scanning means (3) according to the quantisation control signal output from the quantisation control means (4), and coding these coefficients in a subsequent coding device (9) to a desired amount of coded bits, wherein the quantisation selection circuit (8) comprises a plurality of quantising units each having a different quantisation step size. The orthogonal transformation encoder as claimed in claim 1, wherein when said quantisation control means (4) detects a distribution pattern of the transform coefficients which extend in a range from a low-frequency part to a high-frequency part for each block, said quantisation control means (4) generates the control signal representing a high degree of influence on the visual sensation and then said quantising means (7,8) selects a reduced quantisation step size smaller than the regular size. The orthogonal transformation encoder as claimed in claim 1, wherein when said quantisation control means (4) detects a distribution pattern of the transform coefficients which are concentrated on a low-frequency part having a great amplitude for each block, said quantisation control means (4) generates the control signal representing a low degree of influence on the visual sensation and then said quantising means (7,8) selects an increased quantisation step size greater than the regular size.

Inventors: AWAMOTO SHIGERU, MATSUDA TOYOHIKO, NISHINO MASAKAZU, AWAMOTO, SHIGERU, MATSUDA, TOYOHIKO, NISHINO, MASAKAZU
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1992
Main classification: H04N7
IPC codes: H04N7, G06T9