Encoding device and method, program, and storage medium

The encoding device addresses image quality issues in RAW images by using frequency conversion and adaptive quantization to optimize quantization coefficients, particularly in dark areas, thereby preventing noise and maintaining image quality at low bit rates.

JP7549463B2Active Publication Date: 2024-09-11CANON KK
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2020087605
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-05-19
Publication Date
2024-09-11
Estimated Expiration
2040-05-19

AI Technical Summary

Technical Problem

Conventional encoding methods for RAW images at low bit rates result in image quality deterioration due to loss of information in dark areas, leading to vertical and horizontal striped noise.

Method used

An encoding device that employs frequency conversion and adaptive quantization, adjusting quantization coefficients based on brightness thresholds to minimize noise in dark areas by optimizing quantization ratios across different frequency components.

Benefits of technology

Suppresses image quality deterioration by ensuring adequate quantization coefficients are allocated to dark areas, maintaining image fidelity even at low bit rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549463000005
    Figure 0007549463000005
  • Figure 0007549463000006
    Figure 0007549463000006
  • Figure 0007549463000008
    Figure 0007549463000008
Patent Text Reader

Abstract

To provide an encoding device capable of suppressing deterioration in image quality when a RAW image is encoded with a low bit rate.SOLUTION: An encoding device includes: a transformation unit performing frequency transformation on data that is based on the RAW data of an image; a quantization unit quantizing transformation coefficients of a plurality of frequency components output by the transformation unit, on the basis of quantization coefficients; and a control unit determining, for each block, the quantization coefficients of a plurality of frequency components included in the block. The control unit determines the quantization coefficients of a block such that, in the case where brightness of the block satisfies a predetermined condition, the quantization coefficients of a low frequency component become small and the quantization coefficients of a high frequency component become large as compared with the case where the predetermined condition is not satisfied.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a technique for encoding RAW images of a moving image. [Background technology]

[0002] In conventional encoding devices, raw image information (RAW image) captured by an imaging sensor is de-Bayered (demosaiced) and converted into signals consisting of luminance and color difference, and each signal is subjected to so-called development processing such as noise removal, optical distortion correction, image optimization, etc. Then, the developed luminance signal and color difference signal are generally compression-coded and recorded on a recording medium.

[0003] On the other hand, there are also imaging devices that can record RAW images. Although the amount of data required to record RAW images is enormous, it has the advantage that correction and deterioration of the original image can be kept to a minimum and that the image can be edited after shooting, so it is preferred by advanced users.

[0004] However, since RAW images have a huge amount of data, it is desirable to reduce the amount of data so that as many images as possible can be recorded on a limited recording medium. For this reason, the amount of data is reduced by compressing the RAW images. However, depending on the shooting conditions, compression can lead to deterioration of image quality. Patent Document 1 discloses a configuration for encoding using adaptive quantization that changes the quantization coefficient according to visual characteristics. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2017-126859 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, in the above conventional configuration, the quantization coefficient of the dark part is made small and a large code amount is allocated so that information of the dark part is not lost, but at a low bit rate, the quantization coefficient is generally large compared to a high bit rate in order to suppress the generated code amount. In order to maintain the specified bit rate, there are some images in which it is not possible to allocate a quantization coefficient that is large enough not to lose information of the dark part. In that case, the quantization coefficient becomes large, information of the dark part is lost, and noise may occur. In particular, vertical and horizontal stripe noise occurs. As a result, there is a problem of image quality deterioration.

[0007] The present invention has been made in consideration of the above-mentioned problems, and its object is to provide an encoding device that can suppress image quality degradation when encoding a RAW image at a low bit rate. [Means for solving the problem]

[0008] The encoding device according to the present invention comprises a conversion means for frequency-converting data based on RAW data of an image, a quantization means for quantizing the conversion coefficients of a plurality of frequency components output by the conversion means based on a quantization coefficient, and a control means for determining, for each block, the quantization coefficients of the plurality of frequency components included in the block, and the control means determines the quantization coefficients of the plurality of frequency components included in the block based on the brightness of the block. , the dark area is lower than a certain threshold. When a predetermined condition is satisfied, the quantization coefficient of the block is determined so that the quantization coefficient of the low frequency component is smaller and the quantization coefficient of the high frequency component is larger than when the predetermined condition is not satisfied. Effect of the Invention

[0009] According to the present invention, it is possible to suppress deterioration in image quality when a RAW image is encoded at a low bit rate. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing the configuration of an encoding device according to a first embodiment of the present invention. [Diagram 2]FIG. [Diagram 3] FIG. 4 is a block diagram showing the configuration of a RAW compression encoding unit. [Figure 4] Subband formation diagram for decomposition level 2 of the discrete wavelet transform (DWT). [Diagram 5] 11 is a flowchart showing an initial setting process of a quantization control unit. [Figure 6] 13 is a diagram showing an image in which only one decoded DWT coefficient is other than 0 in the Lv1 subband. [Figure 7] FIG. 13 is a conceptual diagram of code amount allocation in a dark area. [Figure 8] FIG. 11 is a block diagram showing the configuration of a RAW compression encoding unit according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0012] (First embodiment) FIG. 1 is a block diagram showing a configuration of an encoding device 100 according to a first embodiment of the present invention.

[0013] 1, when an instruction to start a shooting operation is given, an optical image of a subject to be imaged is input via an imaging optical system 101 and formed on an imaging sensor unit 102. The imaging sensor unit 102 converts light transmitted through red, green, and blue (RGB) color filters arranged for each pixel into an electrical signal.

[0014] Fig. 2 shows an example of color filters arranged in the image sensor unit 102, and illustrates the pixel array of an image handled by the encoding device 100. As shown in Fig. 2, red (R), green (G), and blue (B) color filters are arranged in a mosaic pattern for each pixel. The pixels are regularly arranged such that every 2 x 2 set of four pixels includes one red pixel, one blue pixel, and two green pixels. This type of pixel array is generally called a Bayer array.

[0015] The electrical signal photoelectrically converted by the imaging sensor unit 102 is subjected to pixel restoration processing by the sensor signal processing unit 103. The restoration processing includes processing for interpolating missing pixels or low-reliability pixels in the imaging sensor unit 102 using surrounding pixel values ​​or subtracting a predetermined offset value. In this embodiment, the image information output from the sensor signal processing unit 103 is called a RAW image, which means a raw (undeveloped) image.

[0016] The RAW image is input to the RAW compression encoding unit 104. The RAW compression encoding unit 104 generates sub-band data, which is a frequency band (frequency component), from the RAW image data output by the sensor signal processing unit 103 by wavelet transform (frequency transform), quantizes the output sub-band data, and encodes it on a sub-band basis. The encoded data is stored in a buffer 105. The processing of the RAW compression encoding unit 104 will be described in detail later.

[0017] The encoded data in subband units is stored in a buffer 105, then input to a recording data control unit 106, and output to an output terminal 107 for recording on a recording medium, an external storage device, or the like.

[0018] The following describes in detail the processing of the RAW compression encoding unit 104. Fig. 3 is a block diagram showing the configuration of the RAW compression encoding unit 104. The processing of the RAW compression encoding unit 104 will be described with reference to Fig. 3.

[0019] The Bayer RAW data input from the input terminal 301 is input to the plane division unit 302. The plane division unit 302 divides the Bayer RAW data into color components. In this case, the green (G) component is twice as large as the red (R) and blue (B) components. For this reason, the green adjacent to red (R) is designated as G1, and the green adjacent to blue (B) is designated as G2, and the data is divided into four planes and treated as data with the same number of pixels.

[0020] Each plane data divided by the plane division unit 302 is input to a discrete wavelet transform unit 303. The discrete wavelet transform unit 303 generates transform coefficients (DWT coefficients, wavelet coefficients) by transforming the input plane data into frequency domain signals.

[0021] 4 is a subband formation diagram for decomposition level 2, in which plain data is decomposed twice for each frequency band by applying vertical and horizontal filtering of discrete wavelet transform (DWT). As shown in FIG. 4, in this embodiment, the decomposition level of DWT is set to 2. However, the present invention is not limited to the decomposition level 2.

[0022] In DWT, the frequency band is decomposed into multiple bands by applying filters vertically and horizontally. Then, by recursively applying DWT to the low-pass (low frequency band) subband generated by the above transformation, the decomposition level is increased, and the granularity of the frequency decomposition can be made finer as shown in Figure 4. In the description of Figure 4, Lv indicates the decomposition level including the number after it, and "L" and "H" indicate low pass (low frequency components) and high pass (high frequency components), respectively. The order is as follows: the front side indicates the band resulting from horizontal filtering, and the rear side indicates the band resulting from vertical filtering. Also, LL indicates the lowest pass subband. In this way, discrete wavelet transform processing is performed to obtain data in subband units.

[0023] The above sub-band data is input to the quantization unit 304. Meanwhile, the quantization coefficient determination unit 307 determines a quantization ratio between sub-bands, calculates a Q value, which is a quantization coefficient, based on the ratio, and inputs the calculated value to the quantization unit 304. The quantization unit 304 quantizes the sub-band data for each wavelet coefficient using the Q value, which is the quantization coefficient input from the quantization coefficient determination unit 307. Note that the larger the Q value is, the more the amount of code is reduced, but the more noticeable the degradation in image quality becomes. Details of the operation of the quantization coefficient determination unit 307 will be described later.

[0024] The image data quantized by the quantization unit 304 is entropy coded by an entropy coding unit 305 and output from an output terminal 306. The output of the entropy coding unit 305 is input to a code amount calculation unit 309, which calculates the code amount for each subband. The calculated code amount data is input to a quantization control unit 308.

[0025] The quantization control unit 308 performs quantization control in picture units and rectangular blocks, which are quantization units. In picture units, a quantization coefficient (initQ value) that is optimal for the next picture is generated from the picture target code amount. In rectangular block units, a ratio calculation is performed from the Q value of the basic subband to calculate the Q value of each subband corresponding to the rectangular block. In this embodiment, the RAW data is divided into plain data, and then the quantization coefficient is determined for each rectangular block obtained by dividing the RAW data (picture) by a predetermined rectangular size, and quantization is performed for each subband using the determined quantization coefficient. Therefore, one rectangular block includes the transform coefficients of multiple subbands, and the number of transform coefficients (rectangle size for each subband) of the subbands corresponding to one rectangular block differs for each decomposition level.

[0026] In this embodiment, the quantization coefficient determination unit 307 and the quantization control unit 308 are configured separately, but it is also possible to configure the quantization control unit 308 to perform the functions of the quantization coefficient determination unit 307 without providing a separate quantization coefficient determination unit 307.

[0027] In addition, in the quantization unit, the remaining target code amount is calculated by subtracting the encoded code amount from the picture target code amount, and the number of remaining rectangular blocks is calculated from the total number of rectangular blocks and the number of encoded rectangular blocks. The remaining target code amount is divided by the number of remaining rectangular blocks to calculate the remaining rectangular block target code amount, which is compared with the rectangular block target code amount calculated by dividing the target code amount before picture encoding by the number of rectangular blocks, to generate an optimal quantization coefficient (varQ value) that can maintain the target code amount. However, in the first quantization of a picture, the varQ value=initQ value. In this embodiment, the Q value of Lv1HL is set as the varQ value, and is output from the quantization control unit 308.

[0028] Here, a detailed description will be given of the quantization ratio determination process of the quantization coefficient determination unit 307. FIG.

[0029] 5, in step S501, the process of the quantization coefficient determination unit 307 starts, and in step S502, it is determined whether the set bit rate is a low bit rate or not. If it is determined that the set bit rate is not a low bit rate, in step S506, all quantization processes of the picture are set to setting 1, and in step S511, the process ends.

[0030] On the other hand, if it is determined that the set bit rate is a low bit rate, the address (Badr) of the unit rectangular block to be controlled is set to the initial value 0 in step S503.

[0031] Next, in step S504, the DC evaluation value (DCV) of the rectangular block in Badr is obtained. In this embodiment, the average value of R, G1, G2, and B at the same position in each plane is used as the DC evaluation value.

[0032] In step S505, it is determined whether the DCV is smaller than an arbitrarily set threshold (DC_Thr). If the DCV is equal to or larger than DC_Thr, in step S507, the quantization setting of Badr is set to setting 1. If the DCV is smaller than DC_Thr, in step S508, the quantization setting of Badr is set to setting 2.

[0033] After steps S507 and S508, in step S509, it is determined whether Badr is the last block of the picture. If Badr is not the last block of the picture, in step S510, 1 is added to Badr, and the process returns to step S504. If Badr is the last block of the picture, the process ends in step S511.

[0034] In this embodiment, the average value of R, G1, G2, and B at the same position in each plane is used as the DC evaluation value, but the DC evaluation value is not limited to this value.

[0035] Next, we will explain the above settings 1 and 2. In these settings, the relationship between the Q values ​​of the subbands is determined.

[0036] The Q values ​​of the subbands at Lv1 (decomposition level 1: lower decomposition level) in the DWT of FIG. 4 are QLv1LH, QLv1HL, and QLv1HH, and the Q values ​​of the subbands at Lv2 (decomposition level 2: higher decomposition level) are QLv2LL, QLv2LH, QLv2HL, and QLv2HH, and will be used in the following explanation.

[0037] As a premise, the minimum value of each Q value is 1.

[0038] Min(QLv2LH)=1 Min(QLv2HL)=1 Min(QLv2HH)=1 …Equation (1) Min(QLv1LH)=1 Min(QLv1HL)=1 Min(QLv1HH)=1 First, we will explain setting 1. Normally, the ratio of Q values ​​according to the decomposition level is expressed by the following formula.

[0039] QLv2LH:QLv1LH=1:2 QLv2HL:QLv1HL=1:2 … Formula (2) QLv2HH:QLv1HH=1:2 however, QLv2LH=QLv2HL=QLv2HH / 2 … Formula (3) In setting 1, the parameters shown in the above formulas (2) and (3) are used.

[0040] Setting 2 sets the parameters used for dark areas at low bit rates. At low bit rates, the quantization coefficient is large to reduce the amount of generated code. Also, in dark areas, the image signal is small, so the DWT coefficient is small. If the DWT coefficient is small and the quantization coefficient is large, there is a high possibility that the decoded DWT coefficient after quantization and dequantization will be 0.

[0041] For example, if the decoded DWT coefficient of only HL at Level 1 is n (n ≠ 0) at a location where the decoded DWT coefficients of HL / LH / HH ​​at Level 1 are all 0, vertical lines will appear in the image. Even if the vertical lines are not very strong in the original image, after quantization they will appear as only vertical lines, and will be emphasized and noticeable.

[0042] Fig. 6 shows an image in which only one decoded DWT coefficient in the Level 1 subband is other than 0. The short lines in the figure look like degradation of image quality.

[0043] To prevent such degradation in image quality, the quantization coefficient is increased and the decoded DWT coefficient of Lv1 is set to 0. However, if the decoded DWT coefficient of Lv2 also becomes 0, the result will be a state in which only DC components remain, and dark areas will not be resolved, resulting in degradation in image quality. Therefore, it is necessary to prevent the coefficient of Lv2 from becoming 0.

[0044] Fig. 7 is a diagram showing the concept of code amount allocation in a dark area. As shown in Fig. 7, the code amount is allocated so that the quantization coefficient of Lv2 is reduced by increasing the quantization coefficient of Lv1 at the same position so that the coefficient of Lv2 does not become 0. By allocating in this way, it is possible to prevent a large effect on other positions.

[0045] From the above, the ratio of Q values ​​according to the decomposition level of setting 2 is QLv2LH:QLv1LH=1:8 QLv2HL:QLv1HL=1:8 … Formula (4) QLv2HH:QLv1HH=1:8 However, the denominator can be changed arbitrarily, and a ratio that makes the amount of generated code at the same position equal may be obtained by feedback or the like.

[0046] In setting 2, the parameters shown in the above formula (4) and formula (3) are used. Since the above is the ratio of the quantization coefficient, the amount of code between decomposition levels at the same position is not necessarily distributed completely one-to-one, but degradation of image quality can be suppressed.

[0047] In this manner, the quantization ratio of each subband is determined. Based on the optimal Lv1HL quantization coefficient (varQ value) output from the quantization control unit 308, the Q value of the quantization coefficient of each subband is determined.

[0048] In this embodiment, not only the quantization ratio but also the rounding process can be switched between setting 1 and setting 2. Also, in this embodiment, the ratio of the quantization coefficient of each subband is used as the quantization ratio, but the quantization coefficient of each subband may be calculated using the code amount ratio in each subband.

[0049] When performing quantization, rounding is performed. In rounding, the value changes depending on whether the fraction is rounded up or down when dividing by the quantization coefficient. Rounding reduces the quantization error. For this reason, setting 1 performs rounding or a similar rounding process.

[0050] However, when the wavelet coefficient becomes larger than the input value, more high frequency components are generated, resulting in some parts of the image being emphasized more than the input value. The phenomenon shown in Figure 6 occurs even in such cases. For this reason, in setting 2, truncation or a similar rounding process is performed to suppress deterioration of image quality in the high frequency band of dark areas. This concludes the explanation of settings 1 and 2.

[0051] In this way, by suppressing noise that occurs in dark areas at low bit rates, it is possible to record RAW images without degrading image quality.

[0052] Second embodiment In the second embodiment, the block configuration of the encoding device is similar to that of the first embodiment shown in Fig. 1. However, in this embodiment, the processing of the RAW compression encoding unit 104 in Fig. 1 is different from that of the first embodiment, and this part will be described in detail.

[0053] Fig. 8 is a block diagram showing the configuration of the RAW compression encoding unit 104 in this embodiment. The same functional parts as those in Fig. 3 used in the first embodiment are given the same reference numerals. The processing of the RAW compression encoding unit 104 in this embodiment will be described with reference to Fig. 8. Since the overall processing is similar to that in the first embodiment, the plane conversion unit 810 and the quantization coefficient determination unit 307, which are parts whose processing is different, will be described below.

[0054] The plane conversion unit 810 performs color conversion processing on the plane data of each color component output from the plane division unit 302, and separates it into multiple planes consisting of a luminance plane (luminance component) and a chrominance plane (chrominance component). In this embodiment, four planes consisting of luminance Y and chrominances C1, C2, and C3 are generated. For example, the conversion formula is as follows:

[0055] Y=(R+B+G1+G2) / 4 … Equation (5) C1=R-G1 … Formula (6) C2=B-G2 … Formula (7) C3=(R+G1) / 2-(B+G2) / 2 … Formula (8) Each plane data that has been subjected to the above transformation is input to a discrete wavelet transformation unit 303 .

[0056] Furthermore, the process of the quantization coefficient determination unit 307 is the same as that described in the first embodiment with reference to FIG. 5, but the settings are different, so this point will be described.

[0057] An explanation will be given of settings 1 and 2 in this embodiment. In these settings, the relationship between the Q values ​​of the subbands is determined, but the settings differ between the luminance plane and the chrominance plane.

[0058] The Q values ​​of the sub-bands at Lv1 in the DWT of Fig. 4 are QLv1LH, QLv1HL, and QLv1HH, and the Q values ​​of the sub-bands at Lv2 are QLv2LL, QLv2LH, QLv2HL, and QLv2HH, and will be used in the following description. In addition, when the Q values ​​of the luminance plane Y and the chrominance planes C1, C2, and C3 are different, the respective Q values ​​will be described as YQ, C1Q, C2Q, and C3Q. The premise is the same as in the first embodiment, and the minimum value of each Q value is 1 (Equation (1)).

[0059] First, we will explain setting 1. Normally, the ratio of Q values ​​according to the decomposition level is as shown in equations (2) and (3). However, the allocation by plane is different, YQLv1LH:C1QLv1LH:C2QLv1LH:C3QLv1LH =αY:αC1:αC2:αC3 … Equation (9) It becomes. At this time, αY ≦ αC1=αC2 αY ≦ αC3 … Equation (10) It becomes.

[0060] Each parameter αY, αC1, αC2, and αC3 is given arbitrarily, and αY is set to be equal to or less than the quantization coefficients of the other planes. In setting 1, the parameters shown in the above formulas (9), (10), and (3) are used.

[0061] In setting 2, parameters to be used for dark areas at low bit rates are set as in the first embodiment. As in the first embodiment, it is necessary that the coefficient of Lv2 is not 0. The ratio of Q values ​​according to the decomposition levels in setting 2 is as shown in equation (4). In setting 2, the parameters shown in the above equations (4), (9), (10) and (3) are used. By increasing the quantization coefficient of Lv1, the amount of generated code can be reduced, and the quantization coefficient of Lv2 can be reduced accordingly.

[0062] In addition, when αY is reduced in the parameter of equation (10), YQLv2LH:YQLv1LH=1:8 YQLv2HL:YQLv1HL=1:8 … Formula (11) YQLv2HH:YQLv1HH=1:8 and the chrominance plane may be expressed as equation (2).

[0063] In this manner, the quantization ratio of each subband is determined. Based on the optimal Lv1HL quantization coefficient (varQ value) output from the quantization control unit 308, the Q value of the quantization coefficient of each subband is determined. The rounding process is the same as in the first embodiment. This concludes the description of setting 1 and setting 2.

[0064] In this way, even for images that have been subjected to plane conversion, by suppressing noise that occurs in dark areas at low bit rates, it is possible to record RAW images that prevent degradation of image quality.

[0065] Furthermore, in this embodiment, the plane conversion unit 810 has been described using equations (5) to (8), but the YCbCr format, such as BT.601, BT.709, or BT.2020, or other color space conversion formats may be used. In that case, C1=Cb C2=Cr C3=(G1-G2) / 2 It is also possible to use the following.

[0066] (Other embodiments) The present invention can also be realized by a process in which a program for realizing one or more functions of the above-mentioned embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) for realizing one or more functions.

[0067] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0068] 101: imaging optical system, 102: imaging sensor unit, 103: sensor signal processing unit, 104: RAW compression encoding unit, 105: buffer, 106: recording data control unit, 107: output terminal, 301: input terminal, 302: plane division unit, 303: discrete wavelet transform unit, 304: quantization unit, 305: entropy encoding unit, 306: output terminal, 307: quantization coefficient determination unit, 308: quantization control unit, 309: code amount calculation unit, 810: plane conversion unit

Claims

1. A conversion means for converting frequency of data based on raw data of an image; a quantization means for quantizing the transform coefficients of the plurality of frequency components output by the transform means based on a quantization coefficient; A control means for determining, for each block, a quantization coefficient of a plurality of frequency components included in the block; the control means, when a predetermined condition that the brightness of the block is a dark area lower than a predetermined threshold is satisfied, determines the quantization coefficient of the block such that the quantization coefficient of the low frequency component is smaller and the quantization coefficient of the high frequency component is larger than when the predetermined condition is not satisfied.

13. An encoding device comprising:

2. The encoding device according to claim 1, characterized in that the control means determines the quantization coefficients so that, in the case of a low bit rate, when the brightness of a block satisfies the specified condition, the quantization coefficient of the low-frequency components of the block is smaller and the quantization coefficient of the high-frequency components of the block is larger than when the specified condition is not satisfied.

3. The control means determining a quantization coefficient for each of the plurality of frequency components based on a quantization ratio corresponding to the plurality of frequency components; The encoding device according to claim 1 or 2, characterized in that, when the brightness of a block satisfies the specified condition, the quantization ratio of the block is changed so that the quantization coefficient of the low-frequency components of the block is smaller and the quantization coefficient of the high-frequency components of the block is larger than when the specified condition is not satisfied.

4. The transforming means performs a wavelet transform on data based on raw data of an image to generate transform coefficients of a plurality of subbands; The encoding device according to any one of claims 1 to 3, characterized in that, when the brightness of a block satisfies the specified condition, the control means determines the quantization coefficients so that the quantization coefficients of the subbands of high-frequency components of a higher-order decomposition level of the block are smaller and the quantization coefficients of the subbands of high-frequency components of a lower-order decomposition level of the block are larger when the brightness of the block satisfies the specified condition, compared to when the specified condition is not satisfied.

5. The encoding device according to claim 4, characterized in that the control means determines the quantization coefficients so that, when the brightness of a block satisfies the specified condition, the quantization coefficients of the subband of high-frequency components of the block at decomposition level 2 are smaller and the quantization coefficients of the subband of high-frequency components of the block at decomposition level 1 are larger than when the brightness of the block does not satisfy the specified condition.

6. The transforming means performs a wavelet transform on data based on raw data of an image to generate transform coefficients of a plurality of subbands; The control means determines quantization coefficients for a plurality of subbands included in a block based on quantization ratios of the plurality of subbands; the control means determines a quantization coefficient of each subband of the block using a first quantization ratio when the brightness of the block satisfies the predetermined condition, and determines a quantization coefficient of each subband of the block using a second quantization ratio when the brightness of the block does not satisfy the predetermined condition; 3. The encoding device according to claim 1, wherein the first quantization ratio is a ratio in which the quantization coefficients of high frequency components at decomposition level 2 are smaller than the second quantization ratio, and the quantization coefficients of high frequency components at decomposition level 1 are larger than the second quantization ratio.

7. 7. The encoding device according to claim 1, wherein the data based on the RAW data is RAW data.

8. 7. The encoding device according to claim 1, wherein the data based on the raw data is data obtained by converting the raw data into a luminance component and a color difference component.

9. 9. The encoding device according to claim 1, wherein the quantization means performs rounding in the quantization of the dark areas by truncation or a similar rounding process in a high frequency band.

10. 10. The encoding device according to claim 1, wherein whether or not the brightness satisfies the predetermined condition is determined using an average value of each color component.

11. 10. The encoding device according to claim 1, wherein whether or not the brightness satisfies the predetermined condition is determined using a luminance component.

12. A conversion step of frequency converting data based on raw data of an image; a quantization step of quantizing the transform coefficients of the plurality of frequency components output in the transform step based on a quantization coefficient; A control step of determining, for each block, a quantization coefficient of a plurality of frequency components included in the block; In the control step, when a predetermined condition that the brightness of the block is a dark area lower than a predetermined threshold is satisfied, the quantization coefficient of the block is determined so that the quantization coefficient of the low frequency component is smaller and the quantization coefficient of the high frequency component is larger than when the predetermined condition is not satisfied.

13. An encoding method comprising:

13. A program for causing a computer to function as each of the means of the encoding device according to any one of claims 1 to 11.

14. A computer-readable storage medium storing a program for causing a computer to function as each of the means of the encoding device according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Image encoding device

    JP1995255054A

  • Image processing apparatus

    JP2004194121A

  • Image compressing device and method

    JP2009010612A

  • Imaging device and control method therefor

    JP2017126859A

  • Image coding device and control method

    JP2017224965A