Image processing device, image processing method, encoder, decoder, image processing program, and image processing system
The image processing device enhances AC component prediction in image compression by calculating saddle-shaped AC components from child block luminance values, improving prediction accuracy and compression efficiency.
Patent Information
- Application Number
- JP2023031477
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-03-02
AI Technical Summary
Existing image compression technologies struggle to improve the prediction accuracy of alternating current (AC) components, particularly the brightness values in images, which affects the overall compression rate.
An image processing device that calculates the predicted value of a saddle-shaped AC component by determining directional AC components based on the luminance values of 2x2 child blocks, using a method that estimates the AC components without relying on the DC components of some child blocks, and performs Hadamard transforms to enhance prediction accuracy.
This approach improves the accuracy of predicting AC components in images, reducing the prediction residual and enhancing compression efficiency by accurately estimating AC components without relying on all available DC components.
Smart Images

Figure 2024123792000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a technique for processing images such as still images and moving images. [Background technology]
[0002] Conventionally, image compression processing has been performed to reduce the volume of image data. For example, AC component prediction is known as a component technology of image compression processing.
[0003] AC component prediction is a process of predicting AC components on a target block by referring to DC components of the target block and its surrounding blocks among blocks set on an image plane. The AC components predicted by AC component prediction can be used to generate child blocks existing on the target block. This is described, for example, in Non-Patent Document 1.
[0004] In addition, Non-Patent Document 2 discloses a method for improving prediction accuracy by sequentially using information of already obtained child blocks for predicting a current block. In addition, Non-Patent Document 3 discloses a method for predicting AC components based on information of surrounding blocks.
[0005] Furthermore, Patent Document 1 discloses a technique for improving prediction accuracy by predicting AC components orthogonal to the horizontal and vertical directions.
[0006] Here, there are four bases in the Hadamard transform of a 2×2 block. In this specification, the four definitions are called M basis (DC basis), α basis (horizontal basis), β basis (vertical basis), and γ basis (saddle-shaped basis), respectively, and the components according to each basis are called DC component, α component, β component, and γ component. Here, the α component, β component, and γ component are AC components. For example, AC component prediction for predicting the γ component is disclosed in Patent Document 2. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2011-239191 A [Patent Document 2] JP 2013-51609 A [Non-patent literature]
[0008] [Non-Patent Document 1] Ryuji Tokunaga, Fractals and Image Processing - Fundamentals and Applications of Differential Dynamics, Corona Publishing, 2002 [Non-Patent Document 2] Yusuke Hoshizuki, Hidetomo Tanaka, Kazuki Kyakuno, Ryuji Tokunaga, "Improvement of AC Component Prediction by Block Center Value Correction and DC Component Preserving Filter," IEICE Transactions on Information and Communication Engineers (A), Vol. J-92-A, No.1, pp. 62-66 (2009). [Non-Patent Document 3] Yuki Kojima, Kazuyoshi Moriya, Yusuke Hoshizuki, Kazuki Kyakuno, Ryuji Tokunaga, "Improvement of Mean-Preserving Image Filters Based on AC Component Prediction: Analysis Using One-Coefficient Family," IEICE Transactions on Information and Communication Engineers (A), Vol. J-92-A, No.12, pp. 999-1008 (2009). Summary of the Invention [Problem to be solved by the invention]
[0009] In image compression processing, there is a demand for improving the compression rate of images, and it is important to improve the prediction accuracy of the luminance values of images. In particular, it is necessary to improve the prediction accuracy of AC components (e.g., components of each basis used in the Hadamard transform) for the luminance values in an image.
[0010] The present invention has been made in consideration of the above circumstances, and has an object to provide a technique for improving the prediction accuracy of AC components for luminance values in an image. [Means for solving the problem]
[0011] In order to achieve the above-mentioned object, an image processing device according to a first aspect is an image processing device that calculates a predicted value of a saddle-shaped AC component in a predetermined target block in a predetermined image, the saddle-shaped AC component being a difference in luminance between a pair of two child blocks facing each other with respect to a center of the target block when the target block is divided into 2 × 2 child blocks, and the image processing device includes: a first direction AC component calculation unit that calculates a first direction AC component of the first direction length halving blocks of the target block based on luminance values of the first direction length halving blocks obtained by dividing the target block and each of the blocks lined up in a first direction in half in a second direction orthogonal to the first direction; and a first saddle-shaped AC component estimation unit that estimates a first saddle-shaped AC component based on the difference in first direction AC components of the two first direction length halving blocks of the target block. Effect of the Invention
[0012] According to the present invention, it is possible to improve the prediction accuracy of AC components for luminance values in an image. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing the overall configuration of an image processing system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a block and a child block according to an embodiment. [Diagram 3] FIG. 3 is a diagram for explaining the notation of blocks according to one embodiment. [Figure 4] FIG. 4 is a diagram illustrating the notation of a vertically long half-block according to one embodiment. [Diagram 5] FIG. 5 is a diagram illustrating the notation of a horizontally long half-block according to one embodiment. [Figure 6] FIG. 6 is a diagram illustrating gamma component prediction in sequential processing according to an embodiment. [Figure 7] FIG. 7 is a flowchart of an encoding process according to an embodiment. [Figure 8] FIG. 8 is a flowchart of a decoding process according to an embodiment. [Figure 9] FIG. 9 is a diagram illustrating a configuration of a computer device according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] The following embodiments will be described with reference to the drawings. Note that the following embodiments do not limit the scope of the invention, and not all of the elements and combinations thereof described in the embodiments are necessarily essential to the solution of the invention.
[0015] First, an image processing system according to an embodiment will be described.
[0016] FIG. 1 is a diagram showing the overall configuration of an image processing system according to an embodiment.
[0017] The image processing system 1 includes an encoder 10 as an example of an image processing device, and a decoder 30 as an example of an image processing device. The encoder 10 and the decoder 30 are connected via a network 50. The network 50 is, for example, a Local Area Network (LAN) or a Wide Area Network (WAN).
[0018] The encoder 10 includes a target image input unit 11, a DC conversion unit 12, a Hadamard transform unit 13, an AC component prediction unit 14, a prediction residual calculation unit 15, an encoding unit 16, and a compressed data output unit 17. Here, the AC component prediction unit 14 is an example of a first direction AC component calculation unit, a second direction AC component calculation unit, a first saddle-type AC component estimating unit, a second saddle-type AC component estimating unit, a first child block luminance prediction unit, and a predicted value determining unit.
[0019] The target image input unit 11 inputs an image to be compressed (target image). The target image may be, for example, a still image or a one-frame image of a moving image. The target image may be acquired from an auxiliary storage device 106 (see FIG. 9) in the encoder 10, or may be acquired from an imaging device (not shown).
[0020] The DC conversion unit 12 generates a DC component (also called an M component) in a block (target block) to be processed in the target image based on the luminance value of each pixel in the target image. For example, the block in the highest hierarchy (first hierarchy) is 16 pixels x 16 pixels. As for the blocks in the hierarchy below the first hierarchy, the block in the second hierarchy is 8 pixels x 8 pixels, the block in the third hierarchy is 4 pixels x 4 pixels, and the block in the fourth hierarchy is 2 pixels x 2 pixels. The DC component in the target block is, for example, an average value of the luminance values of the pixels included in the target block. In the following processing, if the other functional units are configured to support random access, the target block in the blocks in the target image may be arbitrarily determined, or multiple target blocks may be selected and processed in parallel. On the other hand, if the other functional units are configured to support sequential access to blocks in the target image in a predetermined order, the target block is determined according to a predetermined order. In the case of sequential access, for example, blocks in the horizontal direction from the bottom left in the image are sequentially set as target blocks, and after all blocks in the horizontal direction have been set as target blocks, blocks one level above are similarly sequentially set as target blocks. Note that the order of the target blocks is not limited to this, and any order that can be commonly recognized with the decoder 30 side may be used. In addition, the DC conversion unit 12 calculates the DC component of each child block based on the luminance value of each pixel for multiple child blocks that constitute the target block.
[0021] Here, the relationship between each block and its child blocks, and the notation of blocks in this specification will be described.
[0022] FIG. 2 is a diagram illustrating a block and a child block according to an embodiment.
[0023] Here, the block 60 is represented as B[x, y]. Here, [x, y] indicates the center position of the block. Here, when the block 60 is the target block, its center position is set to [0, 0], which is the origin, and is represented as B[0, 0]. The block 60 includes, for example, 4 child blocks divided into 2×2 equal parts. The child blocks of B[0, 0] are represented as b[-1 / 4, 1 / 4], b[-1 / 4, -1 / 4], b[1 / 4, 1 / 4], and b[1 / 4, -1 / 4]. For the child blocks, the value in [] also indicates the center position of the child block (the position in the coordinate system with the center of the target block as the origin). Here, the DC component (luminance value) of the block B[] is represented as M[], and the DC component of the child block b[] is represented as μ[].
[0024] FIG. 3 is a diagram for explaining the notation of blocks according to one embodiment.
[0025] As shown in FIG. 3, the blocks around the target block B[0,0] are expressed as B[x, y] using the coordinates of the center position when the center of the target block of each block is the origin. Note that x indicates the position in the horizontal axis direction (second direction), and y indicates the position in the vertical direction (first direction). Note that the horizontal direction is the second direction and the vertical direction is the first direction, but the horizontal direction may be the first direction and the vertical direction may be the second direction. For example, the block to the left of B[0,0] is B[-1,0], the block to the right is B[1,0], the block directly above is B[0,1], and the block directly below is B[0,-1]. Note that there may be cases where no corresponding block exists in the image, such as when the target block B[0,0] is at the edge of the image, and in this case, a virtual block may be assumed. In this case, the value of the direct current component of the virtual block may be a predetermined value, for example, a value corresponding to black or the same value as the edge of the image.
[0026] FIG. 4 is a diagram illustrating the notation of a vertically long half-block according to one embodiment.
[0027] Block B is divided horizontally (in the second direction) into two vertically long blocks (half blocks: first direction long half blocks), H It is written as [x,y]. Here, [x,y] indicates the center position of the two-part block. For example, the two-part block obtained by dividing B[0,0] horizontally is B H [-1 / 4,0], B H It is written as [1 / 4,0], and the two-part block obtained by dividing B[0,1] horizontally in half is B H [-1 / 4,1], B H It is written as [1 / 4,1]. Here, block B H The DC component (brightness value) of [] is M H It is written as [ ].
[0028] FIG. 5 is a diagram illustrating the notation of a horizontally long half-block according to one embodiment.
[0029] Block B is divided vertically (in the first direction) into two horizontally long blocks (half blocks: blocks long in the second direction), V It is written as [x,y]. Here, [x,y] indicates the center position of the two-part block. For example, the two-part block obtained by dividing B[0,0] vertically is B V [0,1 / 4], B V It is written as [0,-1 / 4], and the two-part block obtained by dividing B[1,0] vertically is B V [1,1 / 4], B V It is written as [1,-1 / 4]. Here, block B V The DC component (brightness value) of [] is M V It is written as [ ].
[0030] Returning to the explanation of Fig. 1, the Hadamard transform unit 13 performs a Hadamard transform to calculate the DC component M of the target block, an α component (second direction AC component) which is an AC component in the horizontal direction, a β component (first direction AC component) which is an AC component in the vertical direction, and a γ component (saddle-shaped AC component) which is an AC component in a diagonal direction. Note that the DC component M is the same as the DC component of the target block, so there is no need to calculate it by calculation.
[0031] Here, the DC component M[0,0], AC component α[0,0], AC component β[0,0], and AC component γ[0,0] of the target block B[0,0] can be expressed as shown in the following formula (1) using the DC components μ[-1 / 4,1 / 4], μ[-1 / 4,-1 / 4], μ[1 / 4,1 / 4], and μ[1 / 4,-1 / 4] of the child blocks b[-1 / 4,1 / 4], b[-1 / 4,-1 / 4], b[1 / 4,1 / 4], and b[1 / 4,-1 / 4] of the target block. Note that the γ component can be said to be the difference in luminance between a pair of two child blocks facing each other with respect to the center of the target block when the target block is divided into 2×2 child blocks.
[0032]
number
[0033] The AC component prediction unit 14 predicts AC components of the target block B[0,0] by AC component prediction, and calculates the predicted values α ~ [0,0], β ~ [0,0], γ ~ Calculate [0,0] where α ~ is the same as a symbol with "~" placed immediately above it. Here, AC component prediction is a technique for predicting each AC component when at least a part of the DC components μ[-1 / 4,1 / 4], μ[-1 / 4,-1 / 4], μ[1 / 4,1 / 4], μ[1 / 4,-1 / 4] of the child blocks of the target block are unknown.
[0034] The AC component prediction unit 14 predicts an AC component prediction value α ~ [0,0], β ~ [0,0] is predicted by a known technique using the DC components of multiple blocks.
[0035] The AC component prediction unit 14 also calculates a predicted value γ of the γ component for the target block B[0,0]. ~Predict [0,0]. There are two methods for predicting the AC component of the gamma component: a method for calculating without using the DC components of some child blocks that can be grasped at the time of encoding (first prediction method), and a method for calculating using the DC components of some child blocks that can be grasped at the time of encoding (second prediction method).
[0036] <Method of calculating predicted values of gamma components without using DC components of some graspable child blocks (first prediction method)> First, a method for calculating a predicted value of a gamma component without using DC components of some child blocks that can be grasped will be described.
[0037] <<Prediction of DC components in vertically long two-minute blocks>> The AC component prediction unit 14 divides the block B[0,y] in half in the horizontal direction into vertically long half blocks B H [-1 / 4,y] and B H M, which is the predicted value of the DC component with [1 / 4,y] ~ H [-1 / 4,y] and M ~ H [1 / 4,y] is predicted using the DC components of blocks arranged in the horizontal direction. For example, the AC component prediction unit 14 predicts M ~ H [-1 / 4,y] and M ~ H [1 / 4,y] is predicted by the following formulas (2) and (3). Here, y is a range used in the following processing, and in this example, is an integer between -2 and 2. Note that the prediction method is not limited to this, and for example, the second term on the right side of formulas (2) and (3) may be replaced with (M[1,y]-M[-1,y]) / 8.
[0038]
number
[0039] Here, α in Equation (2) and Equation (3) ~ Hθ [0,y] is as shown in equation (4) below.
[0040]
number
[0041] Here, α ~ H1 [0,y] is as shown in the following equation (5), and θ ~ H1 [0, y] is as shown in formula (6), sign(x) is as shown in formula (7), min() is a function that returns the smallest value, and max() is a function that returns the largest value.
[0042]
number
[0043] Here, M in Eq. (2) ~ H [-1 / 4,y] is the DC component V of the child block in equation (10) of Non-Patent Document 3. UL And, V BL Based on these relationships, α ~ H1 [0, y] is expressed as shown in formula (5). Note that κ is the strength of AC component prediction, and corresponds to λ in Non-Patent Document 3. In this embodiment, κ is a value smaller than 1, and may be, for example, 1 / 4. Also, M in formula (3) ~ H [1 / 4,y] is the DC component V of the child block in equation (10) of Non-Patent Document 3. UR And, V BR Based on these relationships, we can calculate the average of ~ H1 It can be expressed as [0,y]. Equation (5) is M ~ H This is an example of a method for predicting the difference between [-1 / 4,y] and M[0,y].
[0044] In addition, equation (6) calculates the larger of the difference in DC components between B[-2,y] and B[-1,y] on the left side of B[0,y] and the difference in DC components between B[-1,y] and B[0,y], and the larger of the difference in DC components between B[2,y] and B[1,y] on the right side of B[0,y] and the difference in DC components between B[1,y] and B[0,y], and the smaller of these values is θ ~ H1 [0,y]. By using formula (6), the value of the part where the difference in the DC component in the horizontally aligned blocks appears extremely is limited, and the influence of the difference in the DC component appearing extremely can be suppressed. Formula (6) is M ~ H This is another example of how to predict the difference between [-1 / 4,y] and M[0,y].
[0045] Also, according to equation (4), α ~ H1 [0,y] and θ ~ H1 The smaller value of [0,y] is taken as α ~ H1 By making it the same sign as [0,y], α ~ Hθ [0,y]. This allows M ~ H This means that of the two methods for predicting the difference between [-1 / 4,y] and M[0,y], the value of the prediction method that produces the least significant difference is selected.
[0046] <<Prediction of DC component of child block based on predicted value of DC component of vertically long two-part block>> Next, the AC component prediction unit 14 predicts the bipartite block B H [-1 / 4,y] and B H M, which is the predicted value of the DC component with [1 / 4,y] ~ H [-1 / 4,y] and M ~ H Using [1 / 4,y], the predicted value μ of the DC component of each child block b[-1 / 4,1 / 4], b[-1 / 4,-1 / 4], b[1 / 4,1 / 4], b[1 / 4,-1 / 4] ~ H [-1 / 4,1 / 4], μ~ H [-1 / 4,-1 / 4], μ ~ H [1 / 4,1 / 4], μ ~ H [1 / 4, -1 / 4] is predicted. In this embodiment, the AC component prediction unit 14 calculates a predicted value of the DC component of each child block by the following equations (8) to (11).
[0047]
number
[0048] Here, β in equations (8) to (11) ~ Hθ [x, 0] is as shown in the following formula (12). Also, β in formula (12) ~ H1 [x,0] is as shown in the following formula (13), and θ ~ H1 [x,0] is as shown in equation (14).
[0049]
number
[0050] Here, equation (13) corresponds to a process similar to equation (5) performed vertically using two-part blocks, and equation (14) corresponds to a process similar to equation (6) performed vertically using two-part blocks.
[0051] <<Calculation of predicted value of gamma component using vertically long two-part blocks>> Next, the AC component prediction unit 14 calculates the predicted value μ ~ H [-1 / 4,1 / 4], μ ~ H [-1 / 4,-1 / 4], μ ~ H [1 / 4,1 / 4], μ ~ H By substituting [1 / 4,-1 / 4] into equation (1), we obtain the predicted value of the γ component, γ~ H Calculates [0,0].
[0052] Here, γ ~ H [0,0] can be expressed as shown in the following equation (15).
[0053]
number
[0054] For example, substituting equations (8) to (11) into equation (15), γ ~ H [0,0] can be expressed as shown in the following equation (16).
[0055]
number
[0056] Referring to equation (16), the predicted value of the γ component, γ ~ H [0,0] is β ~ Hθ [-1 / 4,0] and β ~ Hθ It can be seen that this can be calculated from [1 / 4,0]. Therefore, the AC component prediction unit 14 calculates β ~ Hθ [-1 / 4,0] and β ~ Hθ [1 / 4,0] is calculated, and γ ~ H It is also possible to calculate [0,0].
[0057] <<Prediction of DC components in horizontally long two-minute blocks>> Next, the AC component prediction unit 14 predicts the DC component of each child block b[-1 / 4,1 / 4], b[-1 / 4,-1 / 4], b[1 / 4,1 / 4], and b[1 / 4,-1 / 4] by a method different from the above AC component prediction. Here, the DC components of each child block predicted by the following method are expressed as μ ~V [-1 / 4,1 / 4], μ ~ V [-1 / 4,-1 / 4], μ ~ V [1 / 4,1 / 4], μ ~ V It is written as [1 / 4,-1 / 4].
[0058] Here, the AC component prediction described below is a method of performing the same processing as the AC component prediction described above, but by switching the vertical and horizontal relationships in the processing, that is, by rotating the coordinate system by 90 degrees.
[0059] Therefore, the AC component prediction unit 14 divides the block B[0,y] vertically into two horizontally long blocks B V [x,-1 / 4] and B V M, which is the predicted value of the DC component with [x,1 / 4] ~ V [x,-1 / 4] and M ~ V [x, 1 / 4] is predicted by the following formulas (17) and (18). Here, x is a range used in the subsequent processing, and is an integer from -2 to 2 in this example.
[0060]
number
[0061] Here, β in Equation (17) and Equation (18) ~ Vθ [x,0] is as shown in the following equation (19).
[0062]
number
[0063] Here, β ~ V1 [x,0] is as shown in the following formula (20), and θ ~ V1 [x,0] is as shown in equation (21).
[0064]
number
[0065] <<Prediction of DC component of child block based on predicted value of DC component of horizontally long two-part block>> Next, the AC component prediction unit 14 predicts the bipartite block B V [x,-1 / 4] and B V M, which is the predicted value of the DC component with [x,1 / 4] ~ V [x,-1 / 4] and M ~ V Using [x,1 / 4], the predicted value μ of the DC component of each child block b[-1 / 4,1 / 4], b[-1 / 4,-1 / 4], b[1 / 4,1 / 4], b[1 / 4,-1 / 4] ~ V [-1 / 4,1 / 4], μ ~ V [-1 / 4,-1 / 4], μ ~ V [1 / 4,1 / 4], μ ~ V [1 / 4, -1 / 4] is predicted. In this embodiment, the AC component prediction unit 14 calculates a predicted value of the DC component of each child block by the following equations (22) to (25).
[0066]
number
[0067] Here, α in equations (22) to (25) ~ Vθ [0,y] is as shown in the following equation (26). ~ Vθ [] is the predicted value of the α component of B[]. Also, α in Eq. (26) ~ V1 [0,y] is as shown in the following equation (27), and θ ~ V1 [0,y] is as shown in equation (28).
[0068]
number
[0069] Here, equation (27) corresponds to a process similar to equation (20) performed horizontally using two-part blocks, and equation (28) corresponds to a process similar to equation (21) performed horizontally using two-part blocks.
[0070] <<Calculation of predicted value of gamma component using horizontally long two-part blocks>> Next, the AC component prediction unit 14 calculates the predicted value μ ~ V [-1 / 4,1 / 4], μ ~ V [-1 / 4,-1 / 4], μ ~ V [1 / 4,1 / 4], μ ~ V By substituting [1 / 4,-1 / 4] into equation (1), we obtain the predicted value of the γ component, γ ~ V Calculate [0,0]. Specifically, γ ~ V [0,0] is calculated using the following formula (29).
[0071]
number
[0072] Here, by substituting equations (22) to (25) into equation (29), γ ~ V [0,0] can be expressed as shown in the following equation (30).
[0073]
number
[0074] As can be seen from equation (30), γ ~ V [0,0] is the predicted value of the α component, α ~Vθ [0,-1 / 4] and α ~ Vθ [0, 1 / 4]. Therefore, the AC component prediction unit 14 calculates γ ~ V It is also possible to calculate [0,0].
[0075] Next, the AC component prediction unit 14 calculates γ ~ H [0,0] and γ ~ V Based on [0,0], the final gamma component prediction value γ ~ For example, the AC component prediction unit 14 may perform the calculation by a simple average as shown in the following formula (31), or may determine γ ~ H [0,0] and γ ~ V It may also be calculated by a weighted average with different weights for [0,0].
[0076]
number
[0077] According to the above-mentioned method of calculating the predicted value of the gamma component without using the DC components of some of the child blocks that can be grasped, it is possible to calculate the predicted value of the gamma component of the target block even if the DC components of the child blocks have not been calculated. Therefore, it is possible to process each block in the image randomly, or to process multiple blocks in parallel.
[0078] <Method of calculating a predicted value of the gamma component using DC components of some child blocks that can be grasped (second prediction method)> Next, a method for calculating a predicted value of a gamma component using DC components of some graspable child blocks will be described. Here, a graspable child block means a child block for which a DC component has been calculated by performing processing before calculating a predicted value of a gamma component of a target block during encoding.
[0079] First, the order of processing of a target block in sequential processing for decoding and encoding compressed data of a target image and the DC components of child blocks grasped by the processing will be described.
[0080] FIG. 6 is a diagram for explaining DC components of child blocks that can be grasped when processing a target block in sequential processing according to one embodiment.
[0081] In sequential processing, for example, the target block is changed from the bottom left block of the image to the right side, and when the right end is processed, the leftmost block of the next level above is processed as the target block. In this case, for example, when processing the target block B[0,0], the DC components of the child blocks b[-1 / 4,-3 / 4] and b[1 / 4,-3 / 4] of the lower block B[0,-1] and the child blocks b[-3 / 4,1 / 4] and b[-3 / 4,-1 / 4] of the left side B[-1,0] can be grasped even during decoding. In this example, the DC components of the graspable child blocks b[-1 / 4,-3 / 4], b[1 / 4,-3 / 4], b[-3 / 4,1 / 4], and b[-3 / 4,-1 / 4] are used to predict the predicted value of the gamma component.
[0082] Next, a method of calculating predicted values of the α and β components using DC components of some child blocks that can be grasped will be described.
[0083] When the technique described in Non-Patent Document 2 is used, the predicted value μ ~ [-1 / 4,-1 / 4], μ ~ [-1 / 4,1 / 4], μ ~ [1 / 4,-1 / 4], μ ~ [1 / 4, 1 / 4] can be expressed using some of the child blocks that can be grasped, as shown in the following equations (32) to (35). Here, M'[-1, 0] and M'[-1, 0] are the luminance values of the blocks expressed using the DC components of the child blocks that can be grasped, and are expressed as shown in equations (36) and (37).
[0084]
number
[0085] Substituting equations (32) to (35) into equation (1) and applying the Hadamard transform, we obtain the predicted value α of the α component, ~ [0,0] is expressed as shown in the following equation (38), and the predicted value β of the β component is ~ [0,0] is expressed as shown in the following equation (39).
[0086]
number
[0087] Here, the luminance coefficients of child blocks b[-3 / 4,-1 / 4] and b[-3 / 4,1 / 4] are equal, so the binary block B H The luminance value of [-3 / 4, 0] is expressed as shown in the following equation (40).
[0088]
number
[0089] Therefore, the predicted value of the α component, α ~ [0,0] can be expressed as shown in equation (41) by converting equation (38) using equation (40).
[0090]
number
[0091] In addition, the luminance coefficients of child blocks b[-1 / 4,-3 / 4] and b[1 / 4,-3 / 4] are equal, so the binary block B V The luminance value of [0, -3 / 4] is expressed as shown in the following equation (42).
[0092]
number
[0093] Therefore, the predicted value of the β component, β ~ [0,0] can be expressed as shown in equation (43) by converting equation (39) using equation (42).
[0094]
number
[0095] Therefore, the AC component prediction unit 14 calculates α ~ Calculate [0,0] and use equation (43) to find β ~ Calculates [0,0].
[0096] <<Gamma component prediction>> <<<Prediction of DC components in vertically long two-minute blocks>>> The AC component prediction unit 14 divides the block B[0,y] in half in the horizontal direction into vertically long half blocks B H [-1 / 4,y] and B H M, which is the predicted value of the DC component with [1 / 4,y] ~ H [-1 / 4,y] and M ~ H [1 / 4,y] is predicted using the DC components of the horizontally aligned blocks. H [-1 / 4,y] and B H The prediction of the DC component with respect to [1 / 4,y] may be the same as the first prediction method, or may be a different method.
[0097] <<Prediction of the DC component of a child block based on the predicted value of the DC component of a vertically long two-part block and the DC component of a graspable child block>> Next, the AC component prediction unit 14 predicts the bipartite block B H [-1 / 4,y] and B H M, which is the predicted value of the DC component with [1 / 4,y] ~ H [-1 / 4,y] and M ~ HUsing [1 / 4,y] and the DC components μ[-1 / 4,-3 / 4] and μ[1 / 4,-3 / 4] of the child blocks b[-1 / 4,-1 / 4] and b[1 / 4,-3 / 4] that can be grasped, the predicted values μ of the DC components of each child block b[-1 / 4,-1 / 4], b[1 / 4,-1 / 4], b[-1 / 4,1 / 4], and b[1 / 4,1 / 4] are calculated. ~ H [-1 / 4,-1 / 4], μ ~ H [1 / 4,-1 / 4], μ ~ H [-1 / 4,1 / 4], μ ~ H [1 / 4, 1 / 4] is predicted. In this embodiment, the AC component prediction unit 14 calculates a predicted value of the DC component of each child block by the following equations (44) to (47).
[0098]
number
[0099] Next, the AC component prediction unit 14 predicts the predicted value of the γ component, γ ~ H Calculates [0,0].
[0100] <<Prediction of DC components in horizontally long two-minute blocks>> The AC component prediction unit 14 divides the block B[x,0] vertically into two horizontally long blocks B V [x,-1 / 4] and B V M, which is the predicted value of the DC component with [x,1 / 4] ~ V [x,-1 / 4] and M ~ V [x, 1 / 4] is predicted using the DC components of the vertically aligned blocks. V [x,-1 / 4] and B V The prediction of the DC component of [x, 1 / 4] may be the same as the first prediction method, or may be a different method.
[0101] <<<<Prediction of the DC component of a child block based on the predicted value of the DC component of a horizontally long two-part block and the DC component of a graspable child block>> Next, the AC component prediction unit 14 predicts the bipartite block B V [x,-1 / 4] and B V M, which is the predicted value of the DC component with [x,1 / 4] ~ V [x,-1 / 4] and M ~ V Using [x,1 / 4] and the DC components μ[-3 / 4,-1 / 4] and μ[-3 / 4,1 / 4] of the child blocks b[-3 / 4,-1 / 4] and b[-3 / 4,1 / 4] that can be grasped, the predicted values μ of the DC components of each child block b[-1 / 4,1 / 4], b[-1 / 4,-1 / 4], b[1 / 4,-1 / 4], and b[1 / 4,1 / 4] are calculated. ~ V [-1 / 4,-1 / 4], μ ~ V [1 / 4,-1 / 4], μ ~ V [-1 / 4,1 / 4], μ ~ V [1 / 4, 1 / 4] is predicted. In this embodiment, the AC component prediction unit 14 calculates a predicted value of the DC component of each child block by the following equations (48) to (51).
[0102]
number
[0103] Next, the AC component prediction unit 14 predicts the predicted value of the γ component, γ ~ V Calculates [0,0].
[0104] Next, the AC component prediction unit 14 predicts γ ~ H [0,0] and gamma ~ V Based on [0,0], the final gamma component is predicted as gamma ~ Calculates [0,0].
[0105] According to the method of calculating a predicted value of the gamma component using the DC components of some of the child blocks that can be grasped as described above, the actual DC components of the child blocks that can be grasped are used, so that the gamma component can be predicted with greater accuracy.
[0106] The prediction residual calculation unit 15 calculates the prediction residuals e for each AC component for each target block in each hierarchy. In this embodiment, the prediction residuals e for the α component, β component, and γ component for each target block are calculated as α , e β , e γ is calculated using the following equations (52), (53), and (54). Note that the prediction residual e β The process of calculating the prediction residual e for the α component is α A similar process may be performed with the coordinate system in the process of calculating the coordinates rotated by 90 degrees. Prediction residual e α [0,0]=α[0,0]-α ~ [0,0] (52) Prediction residual e β [0,0]=β[0,0]-β ~ [0,0] (53) Prediction residual e γ [0,0]=γ[0,0]-γ ~ [0,0] (54)
[0107] The encoding unit 16 converts the prediction residuals e α , e β , e γ The image data is subjected to a lossy transformation such as quantization, and then to entropy coding such as Huffman coding or arithmetic coding, thereby generating compressed data for the target block.
[0108] In this embodiment, the encoding unit 16 encodes the prediction residual e α , e β , e γ , and the DC component M are applied with a function Q(x) shown in the following equation (55) to obtain quantized values (α· [0,0], β · [0,0], γ · [0,0]) and the quantized value M of the DC component M shown in equation (59) · You get [0,0].
[0109]
number
[0110] Here, q is a quantization parameter that adjusts the compression ratio.
[0111] α · [0,0] = Q(e α [0,0]) (56) β · [0,0] = Q(e β [0,0]) (57) Gamma · [0,0] = Q(e γ [0,0]) (58) M · [0,0]=Q(M[0,0]) (59)
[0112] Next, the encoding unit 16 calculates the α · [0,0], β · [0,0], γ · [0,0] is entropy-encoded to generate compressed data. The encoding unit 16 also quantizes the DC component M of each top block to generate M · Compressed data is generated for [0,0] using a known compression technique.
[0113] The compressed data output unit 17 outputs the compressed data generated by the encoding unit 16 to the decoder 30. The compressed data includes the DC component M of each block at the top level, and the prediction residuals e of the α, β, and γ components of each block at each layer. α , e β , e γ It contains compressed data for the quantized values of and .
[0114] The decoder 30 includes a compressed data input unit 31, a decoding unit 32, an AC component prediction unit 33, an AC component calculation unit 34, an inverse Hadamard transform unit 35, and an image display unit 36. Here, the AC component prediction unit 33 is an example of a first directional AC component calculation unit, a second directional AC component calculation unit, a first saddle-type AC component estimating unit, a second saddle-type AC component estimating unit, a first child block luminance prediction unit, a saddle-type AC component calculation unit, and a predicted value determination unit.
[0115] The compressed data input unit 31 inputs compressed data transmitted from the encoder 10 via the network 50. The decoding unit 32 decodes the compressed data input by the compressed data input unit 31 by executing decoding corresponding to the encoding by the encoding unit 18. Next, the encoding unit 18 decodes the quantized value (α · [0,0], β · [0,0], γ · [0,0], M · [0,0]), the inverse quantization (Q -1 ) to obtain e α '[0,0],e β '[0,0],e γ We obtain M'[0,0], M'[0,0]. Here, the formula for inverse quantization is, for example, Q -1 (x) = xq. This allows the DC component M of each top-level block and the prediction residuals e of the α, β, and γ components of each block in each hierarchy to be calculated. α , e β , e γ The reproducibility value of can be obtained.
[0116] The AC component prediction unit 33 executes the same process as the AC component prediction unit 14 .
[0117] The AC component calculation unit 34 calculates the α, β, and γ components for the target block. Specifically, the AC component calculation unit 34 calculates the reproduction values α'[0,0], β'[0,0], and γ'[0,0] of the α, β, and γ components according to the following equations (60), (61), and (62). α'[0,0]=e α '[0,0]+α ~ [0,0] (60) β'[0,0]=e β '[0,0]+β ~ [0,0] (61) γ'[0,0]=e γ '[0,0]+γ ~ [0,0] (62)
[0118] The inverse Hadamard transform unit 35 is an example of a luminance value calculation unit, and performs an inverse Hadamard transform to calculate a DC component of each child block included in the target block, based on the α component, β component, γ component, and DC component M of the target block calculated by the AC component calculation unit 34. Specifically, the inverse Hadamard transform unit 35 applies equation (63) to α'[0,0], β'[0,0], γ'[0,0], and M'[0,0] to calculate reproduction values μ'[-1 / 4,-1 / 4], μ'[1 / 4,-1 / 4], μ'[-1 / 4,1 / 4], and μ'[1 / 4,1 / 4] of the DC components of each child block included in the target block.
[0119]
number
[0120] Furthermore, when the target block is the lowest-order target block, the inverse Hadamard transform unit 35 calculates the DC component of each pixel included in the target block based on the α component, β component, γ component, and DC component M of the target block. In this manner, the DC component of each pixel in the target image is calculated by the processing of the inverse Hadamard transform unit 35.
[0121] The image display unit 36 displays an image on the display device 108 (see FIG. 9) based on the DC component of the luminance of each pixel in the target image calculated by the inverse Hadamard transform unit 35.
[0122] Next, the processing operation in the image processing system 1 will be described.
[0123] First, the encoding process by the encoder 10 will be described.
[0124] FIG. 7 is a flowchart of an encoding process according to an embodiment.
[0125] In the encoding process, first, the target image input unit 11 inputs an image to be encoded (target image), and the DC conversion unit 12 calculates the DC component of the luminance of the child block of the target block (step S11). Note that when step S11 is executed for the first time, the process is executed with the block in the highest hierarchy as the target block.
[0126] Next, the Hadamard transform unit 13 performs a Hadamard transform to calculate AC components (α, β, γ components) and DC component M of the luminance of the target block (step S12).
[0127] Next, the AC component prediction unit 14 calculates predicted values of the AC components (α, β, γ components) for the target block (step S13). In this embodiment, the processes from step S13 onwards are first performed on the α component of the target block, then on the β component, and then on the γ component.
[0128] Next, the prediction residual calculation unit 15 calculates the prediction residual e (e α , e β , or e γ ) (step S14). Specifically, the prediction residual calculation unit 15 calculates the prediction residual e in accordance with the above-mentioned equations (52), (53), and (54).
[0129] Next, the encoding unit 16 performs a lossy transformation, such as quantization, on the prediction residual e calculated by the prediction residual calculation unit 15, and further performs entropy coding, such as Huffman coding or arithmetic coding, to generate compressed data for the prediction residual e of the target block (step S15).
[0130] Next, the DC conversion unit 12 judges whether all blocks in the layer currently being processed have been processed (step S16), and if all blocks in the layer have not been processed (step S16: N), the process proceeds to step S11 to process the next target block. Here, the next target block may be any block when the prediction value of the γ component is calculated without using the DC components of some child blocks that the prediction residual calculation unit 15 can grasp, and is a block according to a predetermined order when the prediction value of the γ component is calculated using the DC components of some child blocks that the prediction residual calculation unit 15 can grasp. On the other hand, if all blocks in the layer have been processed (step S16: Y), the DC conversion unit 12 judges whether there is a block in the layer one level lower (step S17).
[0131] As a result, if there is a block in the next lower layer (step S17: Y), the DC conversion unit 12 changes the layer to be processed to the lower layer (step S18), advances the process to step S11, and executes the process on the block in the lower layer.
[0132] On the other hand, if there is no block in the next lower layer (step S17: N), the DC conversion unit 12 ends the process. As a result, first, compressed data for the α component is generated.
[0133] Next, the encoder 10 executes the above-mentioned encoding process on the β component to generate compressed data for the β component.
[0134] Next, the encoder 10 executes the above-mentioned encoding process with the γ component as the processing target, thereby generating compressed data for the γ component.
[0135] Next, the encoder 10 executes a process of generating compressed data for the DC component M for each block in the highest hierarchy (the DC component M of the block in the highest hierarchy). The process of generating the compressed data for the DC component M can use a known technique.
[0136] Thereafter, the compressed data output unit 20 collects the compressed data for the α, β, γ components and the DC component M for each block in the highest hierarchy, includes them in the compressed data of the target image, and outputs (transmits) them to the decoder 30.
[0137] In this encoding process, since the gamma component prediction is performed, it is possible to improve the prediction accuracy, thereby making it possible to reduce the value of the prediction residual and improve the compression efficiency for the luminance prediction residual.
[0138] Next, the decoding process by the decoder 30 will be described.
[0139] FIG. 8 is a flowchart of a decoding process according to an embodiment.
[0140] The compressed data input unit 31 inputs the compressed data transmitted from the encoder 10 via the network 50 (step S31).
[0141] Next, the decoding unit 32 decodes the compressed data input by the compressed data input unit 31 (step S32). As a result, the DC component M of each block at the top level and the prediction residuals e α , e β , e γ You can get the following.
[0142] Next, the AC component prediction unit 33 calculates a predicted value of the α component for the target block by a process similar to the AC component prediction executed by the encoder 10 (step S33). Here, the target block may be any block if the predicted value of the α component is calculated without using the DC components of some child blocks that the prediction residual calculation unit 15 can grasp, and is selected in the same order as the execution order of the processes in the encoder 10 if the predicted value of the α component is calculated using the DC components of some child blocks that the prediction residual calculation unit 15 can grasp.
[0143] Next, the AC component calculation unit 34 calculates the α component for the target block (step S34).
[0144] Next, the decoder 30 calculates the β component and the γ component (step S35). Specifically, the β component can be calculated by the same process as in steps S33 to S34. The γ component can be calculated by the same process as in steps S33 to S34.
[0145] Next, the AC component prediction unit 33 determines whether all blocks in the layer being processed have been processed (step S36), and if all blocks in the layer have not been processed (step S36: N), the process proceeds to step S33 to process the next target block. On the other hand, if all blocks in the layer have been processed (step S36: Y), the inverse Hadamard transform unit 35 performs an inverse Hadamard transform to calculate the DC component of each child block included in the target block based on the α component, β component, γ component, and DC component M of the target block calculated by the AC component calculation unit 34 (step S37). Note that if the target block is the lowest target block, that is, a block of 2 pixels x 2 pixels, the inverse Hadamard transform unit 35 calculates the DC component of each pixel included in the target block based on the α component, β component, γ component, and DC component M of the target block.
[0146] Next, AC component prediction unit 33 determines whether or not there is a block in the next lower layer (step S38). As a result, if there is a block in the next lower layer (step S38: Y), AC component prediction unit 33 changes the layer to be processed to the lower layer (step S39), and proceeds to step S33 to execute the process on the block in the lower layer.
[0147] On the other hand, if there is no block in the next lower layer (step S38: N), the image display unit 36 displays an image on the display device 108 based on the DC component of the luminance of each pixel in the target image calculated by the inverse Hadamard transform unit 35 (step S40), and terminates the processing.
[0148] According to the above-mentioned decoding process, an image can be appropriately displayed based on the compressed data created by the encoder 10.
[0149] The above-mentioned encoder 10 and decoder 30 can each be configured by a computer device.
[0150] Fig. 9 is a configuration diagram of a computer device according to an embodiment. In this embodiment, the encoder 10 and the decoder 30 are configured as separate computer devices, but these computer devices may have the same configuration. Therefore, in the following description, for convenience, the computer device shown in Fig. 9 will be used to describe the computer device that configures the encoder 10 and the decoder 30.
[0151] The computer device 100 includes, for example, a central processing unit (CPU) 101, a main memory 102, a graphics processing unit (GPU) 103, a reader / writer 104, a communication interface (communication I / F) 105, an auxiliary storage device 106, an input / output interface (input / output I / F) 107, a display device 108, and an input device 109. The CPU 101, the main memory 102, the GPU 103, the reader / writer 104, the communication I / F 105, the auxiliary storage device 106, the input / output I / F 107, and the display device 108 are connected via a bus 110. The encoder 10 and the decoder 30 are each configured by appropriately selecting a part or all of the components described in the computer device 100.
[0152] In the computer device 100 constituting the encoder 10, a CPU 101 executes an image processing program stored in an auxiliary storage device 106 to constitute, for example, a target image input unit 11, a DC conversion unit 12, a Hadamard transform unit 13, an AC component prediction unit 14, a prediction residual calculation unit 15, an encoding unit 16, and a compressed data output unit 17.
[0153] In the computer device 100 constituting the decoder 30, a CPU 101 executes an image processing program stored in an auxiliary storage device 106 to constitute, for example, a compressed data input unit 31, a decoding unit 32, an AC component prediction unit 33, an AC component calculation unit 34, an inverse Hadamard transform unit 35, and an image display unit 36.
[0154] The main memory 102 is, for example, a RAM, a ROM, etc., and stores programs (processing programs, etc.) executed by the CPU 101 and various information. The auxiliary storage device 106 is, for example, a non-temporary storage device (non-volatile storage device) such as a Hard Disk Drive (HDD) or a Solid State Drive (SSD), and stores the programs executed by the CPU 101 and various information.
[0155] The GPU 103 is a processor suitable for executing a specific process such as image processing, and is suitable for executing processes performed in parallel. In this embodiment, the GPU 103 executes a predetermined process according to an instruction from the CPU 101.
[0156] The reader / writer 104 is detachably attached to the recording medium 111, and reads data from the recording medium 111 and writes data to the recording medium 111. The recording medium 111 may be, for example, a non-temporary recording medium (non-volatile recording medium) such as an SD memory card, an FD (floppy disk: registered trademark), a CD, a DVD, a BD (registered trademark), or a flash memory. In this embodiment, a processing program may be stored in the recording medium 111, and the reader / writer 104 may read and use the processing program. In the computer device 100 constituting the encoder 10, image data to be processed may be stored in the recording medium 111, and the reader / writer 104 may read and use the processing program. In the computer device 100 constituting the encoder 10, the reader / writer 104 may store compressed data in the recording medium 111. In the computer device 100 constituting the decoder 30, the reader / writer 104 may read and use the compressed data from the recording medium 111.
[0157] The communication I / F 105 is connected to a network 50 , and transmits and receives data to and from other devices connected to the network 50 .
[0158] The input / output I / F 107 is connected to an input device 109 such as a mouse or a keyboard. In the computer device 100 constituting the encoder 10, the input / output I / F 107 accepts operation input by a user of the encoder 10 using the input device 109. Also, in the computer device 100 constituting the decoder 30, the input / output I / F 107 accepts operation input by a user of the decoder 30 using the input device 109.
[0159] The display device 108 is, for example, a display device such as a liquid crystal display, and displays and outputs various information. The display device 108 is used, for example, in the decoder 30, for displaying images by the image display unit 39.
[0160] The present invention is not limited to the above-described embodiment and modified examples, and can be appropriately modified and implemented without departing from the spirit of the present invention.
[0161] For example, in the above embodiment, the γ component prediction according to the embodiment is performed when compressing an image, but for example, when enlarging an image, the γ component prediction can also be used as shown below. In this case, the target block B[0,0] is processed as one pixel. First, the α ~ [0,0], b ~ [0,0], γ ~ Calculates [0,0]. α ~ [0,0] and b ~ [0,0] may be predicted using existing technology, and may be calculated, for example, using the following equations (64) and (65).
[0162]
number
[0163] Prediction value of gamma component γ ~ [0,0] is calculated, for example, by using the method (first prediction method) of calculating the predicted value of the gamma component without using the DC components of some graspable child blocks in the above embodiment.
[0164] Then, M[0,0], α ~ [0,0], b ~ [0,0], γ ~ By substituting [0,0] into equation (63), the luminance value of the child block of the target block B is calculated. Here, since the target block B is a pixel, the child block is the luminance value of the 2×2 partial pixel contained in the pixel. Therefore, by performing the same process on all pixels, the luminance of the 2×2 partial pixel for each pixel can be obtained. By creating an image in which these partial pixels are treated as one pixel, the original image can be enlarged to four times its original size.
[0165] In the above embodiment, γ ~H [0,0] and γ ~ V Based on [0,0], the final gamma component prediction value γ ~ [0,0] was decided, but γ ~ H [0,0] and γ ~ V [0,0] or the final gamma component prediction value γ ~ It can also be [0,0].
[0166] In the above embodiment, the prediction residual e α , e β , e γ In the past, the decoder would quantize and then encode the block B[x,y], but in this case, the decoder may calculate the DC component M'[x,y] of the block B[x,y] reproduced in advance and use M'[x,y] instead of M[x,y] used to calculate the prediction residual. In this way, the encoder can calculate the prediction residual in the same state as the decoder, improving the prediction accuracy of the prediction residual.
[0167] In addition, in step S33 of the above-mentioned decoding process, when the prediction value of the gamma component is calculated using the DC components of some of the child blocks that the prediction residual calculation unit 15 can grasp, an example has been shown in which the prediction values are selected in the same order as the order in which the processing is executed in the encoder 10. However, for example, when the alpha component is predicted using the DC components of a block of the same size as the target block, there is no need to refer to the DC components of the child blocks, and it is sufficient to use the DC components of the blocks that are already available, so the target block may be any block.
[0168] In the second prediction method in the above embodiment, the AC component prediction unit 14 predicts the luminance value of each child block of the target block and predicts the γ component. ~ Hθ Alternatively, [x, 0] (x is -1 / 4, 1 / 4) may be calculated, and the γ component may be calculated using equation (16).
[0169]
number
[0170] Here, formula (66) is obtained by comparing formulas (44) to (47) with formulas (8) to (11). β ~ Hθ As can be seen from equation (66), [x,0] can be predicted using the luminance value of the child block that can be grasped. Similarly, even when the coordinate system is rotated by 90 degrees, α in equation (30) can be predicted by performing the same process as equation (66). ~ Vθ [0,-1 / 4] and α ~ Vθ [0, 1 / 4] can be calculated, and the gamma component can be predicted using the luminance values of the child blocks that can be grasped.
[0171] In the above embodiment, the prediction residual e α , e β , e γ was quantized and then encoded, but the prediction residual e α , e β , e γ may be encoded without being quantized.
[0172] In addition, in the above embodiment, in the encoding and decoding processes, similar processing is performed on blocks of all hierarchical levels to encode or decode them, but the present invention is not limited to this, and it is also possible to encode or decode each of the hierarchical levels using different processing.
[0173] In the above embodiment, an example has been shown in which the computer device 100 includes either the encoder 10 or the decoder 30. The present invention is not limited to this, and the computer device 100 may include both the encoder 10 and the decoder 30. [Explanation of symbols]
[0174] 1...image processing system, 10...encoder, 11...target image input unit, 12...DC conversion unit, 13...Hadamard transform unit, 14...AC component prediction unit, 15...prediction residual calculation unit, 16...encoding unit, 17...compressed data output unit, 30...decoder, 31...compressed data input unit, 32...decoding unit, 33...AC component prediction unit, 34...AC component calculation unit, 35...inverse Hadamard transform unit, 36...image display unit, 50...network, 100...computer device, 101...CPU, 102...main memory, 108...display device, 111...recording medium
Claims
1. 1. An image processing device that calculates a predicted value of a saddle-shaped AC component in a predetermined target block in a predetermined image, comprising: the saddle-shaped AC component is a luminance difference between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks, a first direction AC component calculation unit that calculates a first direction AC component of a plurality of first direction length halving blocks of the target block, the first direction AC component being calculated based on luminance values of the first direction length halving blocks obtained by dividing the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; a first saddle-type AC component estimating unit that estimates a first saddle-type AC component based on a difference between the first-direction AC components of the two first-direction length half blocks of the target block; An image processing device comprising:
2. The first direction AC component calculation unit estimates luminance values of the plurality of first direction length half blocks based on luminance values of blocks aligned in the second direction of the target block. The image processing device according to claim 1 .
3. The first direction AC component calculation unit determines, as the luminance value of the first direction length halving block, a luminance value estimated by an estimation method that reduces a difference between the estimated luminance value of the first direction length halving block and the luminance of a block to which the first direction length halving block belongs, among a plurality of estimation methods for estimating the luminance of the first direction length halving block. The image processing device according to claim 1 .
4. The first-direction AC component calculation unit calculates a first-direction AC component of the first-direction length half blocks of the target block based on luminance values of the plurality of first-direction length half blocks and luminance values of some child blocks of blocks adjacent to the target block that can be grasped when processing the target block in an encoding process. The image processing device according to claim 2 .
5. a second direction AC component calculation unit that calculates a second direction AC component of a plurality of second direction length halving blocks of the target block, the second direction length halving blocks being obtained by dividing the target block and each of the blocks arranged in the second direction in half in the first direction, based on luminance values of the plurality of second direction length halving blocks; a second saddle-shaped AC component estimating unit that calculates a second saddle-shaped AC component based on a difference between the second direction AC components of the two second direction length half blocks of the target block; a predicted value determination unit that determines a predicted value of the saddle-type AC component of the target block based on the first saddle-type AC component and the second saddle-type AC component; The image processing device according to claim 1 , further comprising:
6. 1. An image processing device that calculates a predicted value of a saddle-shaped AC component in a predetermined target block in a predetermined image, comprising: the saddle-shaped AC component is a luminance difference between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks, a first child block luminance prediction unit that predicts a luminance value of each child block of the target block based on luminance values of a plurality of first direction length halving blocks obtained by dividing the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; a first saddle-type AC component estimating unit that estimates a first saddle-type AC component based on a luminance value of each of the child blocks; An image processing device comprising:
7. The first child block luminance prediction unit estimates luminance values of the plurality of first-direction length half blocks based on luminance values of blocks arranged in the second direction of the target block. The image processing device according to claim 6.
8. The first child block luminance prediction unit predicts a luminance value of each child block of the target block based on luminance values of the plurality of first direction length halving blocks and luminance values of some child blocks of blocks adjacent to the target block that can be grasped when processing the target block in an encoding process.
8. The image processing device according to claim 6 or 7.
9. An encoder for generating compressed data for a target image, comprising: a first direction AC component calculation unit that calculates a first direction AC component of a first direction length halving block of a target image, the first direction AC component being calculated based on luminance values of a plurality of first direction length halving blocks obtained by dividing each of the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; a saddle-shaped AC component estimation unit that estimates a saddle-shaped AC component that is a difference in luminance between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks based on a difference in the first direction AC components of the two first-direction length half blocks of the target block; a prediction residual calculation unit that calculates a prediction residual for the saddle-shaped AC component in each of the target blocks by subtracting the estimated saddle-shaped AC component from a saddle-shaped AC component for each of the target blocks; Data including the luminance of the top target block in the target image and the prediction residual for the saddle-shaped AC component of each target block is compressed and output as compressed data. A compressed data output unit; Equipped Encoder.
10. A decoder for decompressing compressed data of a target image, comprising: a compressed data input unit for inputting the compressed data; a decoding unit for decoding the compressed data; a first direction AC component calculation unit that calculates a first direction AC component of a plurality of first direction length halving blocks of the target block based on luminance values of the first direction length halving blocks obtained by dividing each of the target blocks and the blocks arranged in the first direction in the target image included in the decoded data in half in a second direction perpendicular to the first direction; a saddle-shaped AC component estimation unit that estimates a saddle-shaped AC component that is a difference in luminance between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks based on a difference in the first direction AC components of the two first-direction length half blocks of the target block; a saddle-shaped AC component calculation unit that calculates a saddle-shaped AC component of each of the target blocks based on a predicted value of the saddle-shaped AC component of each of the target blocks and a prediction residual for the saddle-shaped AC component of each of the target blocks restored using the compressed data; a luminance value calculation unit that calculates a luminance value of a child block included in the target block based on the calculated saddle-shaped AC component; Equipped decoder.
11. 1. An image processing method for calculating a predicted value of a saddle-shaped AC component in a predetermined target block in a predetermined image, comprising: the saddle-shaped AC component is a luminance difference between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks, calculating a first direction AC component of a plurality of first direction length halving blocks of the target block, the first direction AC component being calculated based on luminance values of the plurality of first direction length halving blocks obtained by dividing the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; A first saddle-shaped AC component is estimated based on a difference between the first direction AC components of the two first direction half-length blocks of the target block. Image processing methods.
12. An image processing program for causing a computer to execute a process for calculating a predicted value of a saddle-shaped AC component in a predetermined target block in a predetermined image, the program comprising: the saddle-shaped AC component is a luminance difference between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks, The computer includes: calculating a first-direction AC component of a plurality of first-direction length halving blocks of the target block, the first-direction length halving blocks being obtained by dividing the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; A first saddle-shaped AC component is estimated based on a difference between the first-direction AC components of two first-direction half-length blocks of the target block. Image processing program.
13. 1. An image processing system comprising: an encoder for generating compressed data of a target image; and a decoder for decompressing the compressed data of the target image, The encoder comprises: a first direction AC component calculation unit that calculates a first direction AC component of a first direction length halving block of a target image, the first direction AC component being calculated based on luminance values of a plurality of first direction length halving blocks obtained by dividing each of the target block and each of the blocks arranged in the first direction in half in a second direction perpendicular to the first direction; a saddle-shaped AC component estimation unit that estimates a saddle-shaped AC component that is a difference in luminance between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks based on a difference in the first direction AC components of the two first-direction length half blocks of the target block; a prediction residual calculation unit that calculates a prediction residual for the saddle-shaped AC component in each of the target blocks by subtracting the estimated saddle-shaped AC component from a saddle-shaped AC component for each of the target blocks; Data including the luminance of the top target block in the target image and the prediction residual for the saddle-shaped AC component of each target block is compressed and output as compressed data. A compressed data output unit, The decoder comprises: a compressed data input unit for inputting the compressed data; a decoding unit for decoding the compressed data; a first direction AC component calculation unit that calculates a first direction AC component of a plurality of first direction length halving blocks of the target block, the first direction AC component being calculated based on luminance values of the first direction length halving blocks obtained by dividing each of the target blocks and the blocks arranged in the first direction in the target image included in the decoded data in half in a second direction perpendicular to the first direction; a saddle-shaped AC component estimation unit that estimates a saddle-shaped AC component that is a difference in luminance between a pair of two child blocks that face each other with respect to a center of the target block when the target block is divided into 2×2 child blocks based on a difference in the first direction AC components of the two first-direction length half blocks of the target block; a saddle-shaped AC component calculation unit that calculates a saddle-shaped AC component of each of the target blocks based on a predicted value of the saddle-shaped AC component of each of the target blocks and a prediction residual for the saddle-shaped AC component of each of the target blocks restored using the compressed data; a luminance value calculation unit that calculates a luminance value of a child block included in the target block based on the calculated saddle-shaped AC component; Equipped Image processing system.
Citation Information
Patent Citations
Ac component prediction system and ac component prediction program
JP2011239191A
Ac component prediction method and image processing apparatus
JP2013051609A
