WO2018173895A1 - Dispositif de génération d'image prédite, dispositif de décodage vidéo et dispositif de codage vidéo - Google Patents

Dispositif de génération d'image prédite, dispositif de décodage vidéo et dispositif de codage vidéo Download PDF

Info

Publication number
WO2018173895A1
WO2018173895A1 PCT/JP2018/010058 JP2018010058W WO2018173895A1 WO 2018173895 A1 WO2018173895 A1 WO 2018173895A1 JP 2018010058 W JP2018010058 W JP 2018010058W WO 2018173895 A1 WO2018173895 A1 WO 2018173895A1
Authority
WO
WIPO (PCT)
Prior art keywords
prediction
unit
image
matching
template
Prior art date
Application number
PCT/JP2018/010058
Other languages
English (en)
Japanese (ja)
Inventor
知宏 猪飼
友子 青野
Original Assignee
シャープ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by シャープ株式会社 filed Critical シャープ株式会社
Publication of WO2018173895A1 publication Critical patent/WO2018173895A1/fr

Links

Images

Definitions

  • Embodiments described herein relate generally to a predicted image generation device, a moving image decoding device, and a moving image encoding device.
  • a moving image encoding device that generates encoded data by encoding the moving image, and a moving image that generates a decoded image by decoding the encoded data
  • An image decoding device is used.
  • the moving image encoding method include a method proposed in H.264 / AVC and HEVC (High-Efficiency Video Coding).
  • an image (picture) constituting a moving image is a slice obtained by dividing the image, a coding unit obtained by dividing the slice (coding unit (Coding Unit : CU)), and a hierarchical structure consisting of a prediction unit (PU) and a transform unit (TU) that are obtained by dividing a coding unit. Decrypted.
  • a predicted image is usually generated based on a local decoded image obtained by encoding / decoding an input image, and the predicted image is generated from the input image (original image).
  • a prediction residual obtained by subtraction (sometimes referred to as “difference image” or “residual image”) is encoded. Examples of the method for generating a predicted image include inter-screen prediction (inter prediction) and intra-screen prediction (intra prediction).
  • Non-Patent Document 1 using matching motion deriving technology (template matching (TM) and bilateral matching (BM)) for deriving a motion vector on the decoder side can be cited as a moving image encoding and decoding technology in recent years.
  • Non-Patent Document 2 bilateral template matching (BTM) that corrects a motion vector by matching is described in the name of Decoder-side motion vector refinement (DMVR) as a similar technique to the matching motion derivation technology. .
  • BTM bilateral template matching
  • Non-Patent Documents 1 and 2 above show a configuration that effectively uses the matching cost of prediction image candidates (motion compensated images and interpolated images) derived in bilateral template matching or template matching. Absent.
  • the present invention is to provide a predicted image generation device, a moving image decoding device, and a moving image encoding device that can effectively use the matching cost of the predicted image candidate (motion compensation image).
  • a predicted image generation apparatus is a predicted image generation apparatus that generates a predicted image used for encoding or decoding of a moving image, and includes a bilateral template matching (BTM ) Or template matching (TM) is used to perform matching processing, a matching processing unit for deriving the cost of the predicted image candidate derived from the template in a plurality of reference pictures and the template, and prediction for each reference picture
  • BTM bilateral template matching
  • TM template matching
  • a prediction unit for deriving a prediction image from a plurality of prediction image candidates.
  • the prediction unit sets a weighting coefficient for each prediction image candidate according to the cost of the template and the prediction image candidate. Then, the predicted image is derived using the weighted predicted image candidates.
  • a predicted image generation apparatus is a predicted image generation apparatus that generates a predicted image used for encoding or decoding of a moving image, and includes a bilateral template matching (BTM ) And a matching processing unit for deriving the cost of predicted image candidates predicted from templates in a plurality of reference pictures and the template, and a gradient correction term for bilateral template matching (BTM)
  • BTM bilateral template matching
  • a motion compensation unit that performs motion compensation by bi-predictive gradient change (BIO) prediction that performs motion compensation by applying the motion compensation unit, and the motion compensation unit predicts the predicted image candidate predicted from a template in a plurality of reference pictures. ON / OFF of BIO prediction is controlled according to the ratio of the cost to the template.
  • the bilateral template matching or the matching cost of the predicted image candidate derived in the template matching can be effectively used for deriving the predicted image.
  • FIG. 1 It is a figure which shows the hierarchical structure of the data of the encoding stream which concerns on this embodiment. It is a figure which shows the pattern of PU division
  • (A) to (h) respectively show the partition shapes when the PU partitioning modes are 2Nx2N, 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and NxN.
  • (A) And (b) is a conceptual diagram which shows an example of a reference picture and a reference picture list. It is a block diagram which shows the structure of the image coding apparatus which concerns on this embodiment. It is the schematic which shows the structure of the image decoding apparatus which concerns on this embodiment.
  • (A), (b) is a figure which shows the outline
  • (A), (b) is a figure which shows the outline
  • (A) to (b) is a diagram for explaining a motion vector deriving process in the matching motion deriving mode. It is a block diagram which shows an example of the principal part structure of the inter estimated image generation part in other embodiment of this invention. It is a figure which shows the example of the weight which the weight estimation part in other embodiment of this invention derives.
  • FIG. 1 It is a block diagram which shows another example of the principal part structure of the inter estimated image generation part in other embodiment of this invention. It is a figure which shows an example of the pseudo code which shows the process of the motion compensation part in other embodiment of this invention. It is the figure shown about the structure of the transmitter which mounts the image coding apparatus which concerns on this embodiment, and the receiver which mounts an image decoding apparatus.
  • (A) shows a transmission device equipped with an image encoding device, and (b) shows a reception device equipped with an image decoding device. It is the figure shown about the structure of the recording device carrying the image coding apparatus which concerns on this embodiment, and the reproducing
  • (A) shows a recording device equipped with an image encoding device, and (b) shows a playback device equipped with an image decoding device. It is the schematic which shows the structure of the image transmission system which concerns on this embodiment.
  • FIG. 28 is a schematic diagram showing the configuration of the image transmission system 1 according to the present embodiment.
  • the image transmission system 1 is a system that transmits a code obtained by encoding an encoding target image, decodes the transmitted code, and displays an image.
  • the image transmission system 1 includes an image encoding device (moving image encoding device) 11, a network 21, an image decoding device (moving image decoding device) 31, and an image display device 41.
  • the image encoding device 11 receives an image T indicating a single layer image or a plurality of layers.
  • a layer is a concept used to distinguish a plurality of pictures when there are one or more pictures constituting a certain time. For example, when the same picture is encoded with a plurality of layers having different image quality and resolution, scalable encoding is performed, and when a picture of a different viewpoint is encoded with a plurality of layers, view scalable encoding is performed.
  • inter-layer prediction, inter-view prediction When prediction is performed between pictures of a plurality of layers (inter-layer prediction, inter-view prediction), encoding efficiency is greatly improved. Further, even when prediction is not performed (simultaneous casting), encoded data can be collected.
  • the network 21 transmits the encoded stream Te generated by the image encoding device 11 to the image decoding device 31.
  • the network 21 is the Internet, a wide area network (WAN: Wide Area Network), a small network (LAN: Local Area Network), or a combination thereof.
  • the network 21 is not necessarily limited to a bidirectional communication network, and may be a unidirectional communication network that transmits broadcast waves such as terrestrial digital broadcasting and satellite broadcasting.
  • the network 21 may be replaced with a storage medium that records an encoded stream Te such as a DVD (Digital Versatile Disc) or a BD (Blue-ray Disc).
  • the image decoding device 31 decodes each of the encoded streams Te transmitted by the network 21, and generates one or a plurality of decoded images Td decoded.
  • the image display device 41 displays all or part of one or more decoded images Td generated by the image decoding device 31.
  • the image display device 41 includes, for example, a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display.
  • a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display.
  • a high-quality enhancement layer image is displayed and only a lower processing capability is provided. Displays a base layer image that does not require higher processing capability and display capability as an extension layer.
  • X? Y: z is a ternary operator that takes y when x is true (non-zero) and takes z when x is false (0).
  • FIG. 1 is a diagram showing a hierarchical structure of data in the encoded stream Te.
  • the encoded stream Te illustratively includes a sequence and a plurality of pictures constituting the sequence.
  • (A) to (f) of FIG. 1 respectively show an encoded video sequence defining a sequence SEQ, an encoded picture defining a picture PICT, an encoded slice defining a slice S, and an encoded slice defining a slice data
  • the encoded video sequence In the encoded video sequence, a set of data referred to by the image decoding device 31 for decoding the sequence SEQ to be processed is defined. As shown in FIG. 1A, the sequence SEQ includes a video parameter set (Video Parameter Set), a sequence parameter set SPS (Sequence Parameter Set), a picture parameter set PPS (Picture Parameter Set), a picture PICT, and an addition. Includes SEI (Supplemental Enhancement Information). Here, the value indicated after # indicates the layer ID.
  • FIG. 1 shows an example in which encoded data of # 0 and # 1, that is, layer 0 and layer 1, exists, the type of layer and the number of layers are not dependent on this.
  • the video parameter set VPS is a set of encoding parameters common to a plurality of moving images, a plurality of layers included in the moving image, and encoding parameters related to individual layers in a moving image composed of a plurality of layers.
  • a set is defined.
  • the sequence parameter set SPS defines a set of encoding parameters that the image decoding device 31 refers to in order to decode the target sequence. For example, the width and height of the picture are defined. A plurality of SPSs may exist. In that case, one of a plurality of SPSs is selected from the PPS.
  • a set of encoding parameters referred to by the image decoding device 31 in order to decode each picture in the target sequence is defined.
  • a quantization width reference value (pic_init_qp_minus26) used for picture decoding and a flag (weighted_pred_flag) indicating application of weighted prediction are included.
  • the picture PICT includes slices S0 to S NS-1 (NS is the total number of slices included in the picture PICT).
  • the coded slice In the coded slice, a set of data referred to by the image decoding device 31 for decoding the slice S to be processed is defined. As shown in FIG. 1C, the slice S includes a slice header SH and slice data SDATA.
  • the slice header SH includes an encoding parameter group that is referred to by the image decoding device 31 in order to determine a decoding method of the target slice.
  • Slice type designation information (slice_type) for designating a slice type is an example of an encoding parameter included in the slice header SH.
  • I slice using only intra prediction at the time of encoding (2) P slice using unidirectional prediction or intra prediction at the time of encoding, (3) B-slice using unidirectional prediction, bidirectional prediction, or intra prediction at the time of encoding may be used.
  • the slice header SH may include a reference (pic_parameter_set_id) to the picture parameter set PPS included in the encoded video sequence.
  • the slice data SDATA includes a coding tree unit (CTU) as shown in FIG.
  • a CTU is a block of a fixed size (for example, 64x64) that constitutes a slice, and is sometimes called a maximum coding unit (LCU: Large Coding Unit).
  • Encoding tree unit As shown in (e) of FIG. 1, a set of data referred to by the image decoding device 31 in order to decode the encoding tree unit to be processed is defined.
  • the coding tree unit is divided by recursive quadtree division.
  • a tree-structured node obtained by recursive quadtree partitioning is referred to as a coding node (CN).
  • An intermediate node of the quadtree is an encoding node, and the encoding tree unit itself is defined as the highest encoding node.
  • the CTU includes a split flag (cu_split_flag), and when cu_split_flag is 1, it is split into four coding nodes CN.
  • the coding node CN is not divided and has one coding unit (CU: Coding Unit) as a node.
  • CU Coding Unit
  • the encoding unit CU is a terminal node of the encoding node and is not further divided.
  • the encoding unit CU is a basic unit of the encoding process.
  • the size of the coding tree unit CTU is 64 ⁇ 64 pixels
  • the size of the coding unit can be any of 64 ⁇ 64 pixels, 32 ⁇ 32 pixels, 16 ⁇ 16 pixels, and 8 ⁇ 8 pixels.
  • the encoding unit As shown in (f) of FIG. 1, a set of data referred to by the image decoding device 31 in order to decode an encoding unit to be processed is defined.
  • the encoding unit includes a prediction tree, a conversion tree, and a CU header CUH.
  • the CU header defines a prediction mode, a division method (PU division mode), and the like.
  • prediction information (a reference picture index, a motion vector, etc.) of each prediction unit (PU) obtained by dividing the coding unit into one or a plurality is defined.
  • the prediction unit is one or a plurality of non-overlapping areas constituting the encoding unit.
  • the prediction tree includes one or a plurality of prediction units obtained by the above-described division.
  • a prediction unit obtained by further dividing the prediction unit is referred to as a “sub-block”.
  • the sub block is composed of a plurality of pixels.
  • the number of sub-blocks in the prediction unit is one.
  • the prediction unit is larger than the size of the sub-block, the prediction unit is divided into sub-blocks. For example, when the prediction unit is 8 ⁇ 8 and the sub-block is 4 ⁇ 4, the prediction unit is divided into four sub-blocks that are divided into two horizontally and two vertically.
  • the prediction process may be performed for each prediction unit (sub block).
  • Intra prediction is prediction within the same picture
  • inter prediction refers to prediction processing performed between different pictures (for example, between display times and between layer images).
  • the division method is encoded by the PU division mode (part_mode) of encoded data, 2Nx2N (same size as the encoding unit), 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and NxN etc.
  • 2NxN and Nx2N indicate 1: 1 symmetrical division, 2NxnU, 2NxnD and nLx2N, nRx2N show a 1: 3, 3: 1 asymmetric partitioning.
  • the PUs included in the CU are expressed as PU0, PU1, PU2, and PU3 in this order.
  • FIG. 2 specifically illustrate the shape of the partition (the position of the boundary of the PU partition) in each PU partition mode.
  • 2A shows a 2Nx2N partition
  • FIGS. 2B, 2C, and 2D show 2NxN, 2NxnU, and 2NxnD partitions (horizontal partitions), respectively.
  • E), (f), and (g) show partitions (vertical partitions) in the case of Nx2N, nLx2N, and nRx2N, respectively, and (h) shows an NxN partition.
  • the horizontal partition and the vertical partition are collectively referred to as a rectangular partition
  • 2Nx2N and NxN are collectively referred to as a square partition.
  • the encoding unit is divided into one or a plurality of conversion units, and the position and size of each conversion unit are defined.
  • a transform unit is one or more non-overlapping areas that make up a coding unit.
  • the conversion tree includes one or a plurality of conversion units obtained by the above division.
  • the division in the conversion tree includes a case where an area having the same size as that of the encoding unit is assigned as a conversion unit, and a case where recursive quadtree division is used, as in the case of the CU division described above.
  • Conversion processing is performed for each conversion unit.
  • the prediction parameter includes prediction list use flags predFlagL0 and predFlagL1, reference picture indexes refIdxL0 and refIdxL1, and motion vectors mvL0 and mvL1.
  • the prediction list use flags predFlagL0 and predFlagL1 are flags indicating whether or not reference picture lists called L0 list and L1 list are used, respectively, and a reference picture list corresponding to a value of 1 is used.
  • flag indicating whether or not it is XX when “flag indicating whether or not it is XX” is described, when the flag is not 0 (for example, 1) is XX, 0 is not XX, and logical negation, logical product, etc. 1 is treated as true and 0 is treated as false (the same applies hereinafter).
  • flag when the flag is not 0 (for example, 1) is XX, 0 is not XX, and logical negation, logical product, etc. 1 is treated as true and 0 is treated as false (the same applies hereinafter).
  • other values can be used as true values and false values in an actual apparatus or method.
  • Syntax elements for deriving inter prediction parameters included in the encoded data include, for example, PU partition mode part_mode, merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx, There is a difference vector mvdLX.
  • the reference picture list is a list including reference pictures stored in the reference picture memory 306.
  • FIG. 3 is a conceptual diagram illustrating an example of a reference picture and a reference picture list.
  • a rectangle is a picture
  • an arrow is a picture reference relationship
  • a horizontal axis is time
  • I, P, and B in the rectangle are intra pictures
  • uni-predictive pictures bi-predictive pictures
  • numbers in the rectangles are decoded. Indicates the order.
  • the decoding order of pictures is I0, P1, B2, B3, and B4
  • the display order is I0, B3, B2, B4, and P1.
  • FIG. 3B shows an example of the reference picture list.
  • the reference picture list is a list representing candidate reference pictures, and one picture (slice) may have one or more reference picture lists.
  • the target picture B3 has two reference picture lists, an L0 list RefPicList0 and an L1 list RefPicList1.
  • the reference pictures are I0, P1, and B2, and the reference picture has these pictures as elements.
  • refIdxLX the reference picture index
  • the figure shows an example in which reference pictures P1 and B2 are referenced by refIdxL0 and refIdxL1.
  • the prediction parameter decoding (encoding) method includes a merge prediction (merge) mode and an AMVP (Adaptive Motion Vector Prediction) mode.
  • the merge flag merge_flag is a flag for identifying these.
  • the merge prediction mode is a mode that uses prediction parameters of already processed neighboring PUs without including the prediction list use flag predFlagLX (or inter prediction identifier inter_pred_idc), reference picture index refIdxLX, and motion vector mvLX in the encoded data.
  • the mode is a mode in which the inter prediction identifier inter_pred_idc, the reference picture index refIdxLX, and the motion vector mvLX are included in the encoded data.
  • the motion vector mvLX is encoded as a prediction vector index mvp_LX_idx for identifying the prediction vector mvpLX and a difference vector mvdLX.
  • the inter prediction identifier inter_pred_idc is a value indicating the type and number of reference pictures, and takes one of PRED_L0, PRED_L1, and PRED_BI.
  • PRED_L0 and PRED_L1 indicate that reference pictures managed by the reference picture lists of the L0 list and the L1 list are used, respectively, and that one reference picture is used (single prediction).
  • PRED_BI indicates that two reference pictures are used (bi-prediction BiPred), and reference pictures managed by the L0 list and the L1 list are used.
  • the prediction vector index mvp_LX_idx is an index indicating a prediction vector
  • the reference picture index refIdxLX is an index indicating a reference picture managed in the reference picture list.
  • LX is a description method used when L0 prediction and L1 prediction are not distinguished from each other. By replacing LX with L0 and L1, parameters for the L0 list and parameters for the L1 list are distinguished.
  • the merge index merge_idx is an index that indicates whether one of the prediction parameter candidates (merge candidates) derived from the processed PU is used as the prediction parameter of the decoding target PU.
  • the motion vector mvLX indicates a shift amount between blocks on two different pictures.
  • a prediction vector and a difference vector related to the motion vector mvLX are referred to as a prediction vector mvpLX and a difference vector mvdLX, respectively.
  • Inter prediction identifier inter_pred_idc and prediction list use flag predFlagLX The relationship between the inter prediction identifier inter_pred_idc and the prediction list use flags predFlagL0 and predFlagL1 is as follows and can be converted into each other.
  • the flag biPred as to whether it is a bi-prediction BiPred can be derived depending on whether the two prediction list use flags are both 1. For example, it can be derived by the following formula.
  • the flag biPred can also be derived depending on whether or not the inter prediction identifier is a value indicating that two prediction lists (reference pictures) are used. For example, it can be derived by the following formula.
  • FIG. 5 is a schematic diagram illustrating a configuration of the image decoding device 31 according to the present embodiment.
  • the image decoding device 31 includes an entropy decoding unit 301, a prediction parameter decoding unit (prediction image decoding device) 302, a loop filter 305, a reference picture memory 306, a prediction parameter memory 307, a prediction image generation unit (prediction image generation device) 308, and inversely.
  • a quantization / inverse transform unit 311 and an adder 312 are included.
  • the prediction parameter decoding unit 302 includes an inter prediction parameter decoding unit 303 and an intra prediction parameter decoding unit 304.
  • the predicted image generation unit 308 includes an inter predicted image generation unit 309 and an intra predicted image generation unit 310.
  • the entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside, and separates and decodes individual codes (syntax elements).
  • the separated codes include prediction information for generating a prediction image and residual information for generating a difference image.
  • the entropy decoding unit 301 outputs a part of the separated code to the prediction parameter decoding unit 302.
  • Some of the separated codes are, for example, a prediction mode predMode, a PU partition mode part_mode, a merge flag merge_flag, a merge index merge_idx, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, and a difference vector mvdLX.
  • Control of which code is decoded is performed based on an instruction from the prediction parameter decoding unit 302.
  • the entropy decoding unit 301 outputs the quantized coefficient to the inverse quantization / inverse transform unit 311. This quantized coefficient is a coefficient obtained by performing transform (Discrete Cosine Transform, discrete cosine transform) on the residual signal and quantizing in the encoding process.
  • the inter prediction parameter decoding unit 303 decodes the inter prediction parameter with reference to the prediction parameter stored in the prediction parameter memory 307 based on the code input from the entropy decoding unit 301.
  • the inter prediction parameter decoding unit 303 outputs the decoded inter prediction parameter to the prediction image generation unit 308 and stores it in the prediction parameter memory 307. Details of the inter prediction parameter decoding unit 303 will be described later.
  • the intra prediction parameter decoding unit 304 refers to the prediction parameter stored in the prediction parameter memory 307 on the basis of the code input from the entropy decoding unit 301 and decodes the intra prediction parameter.
  • the intra prediction parameter is a parameter used in a process of predicting a CU within one picture, for example, an intra prediction mode IntraPredMode.
  • the intra prediction parameter decoding unit 304 outputs the decoded intra prediction parameter to the prediction image generation unit 308 and stores it in the prediction parameter memory 307.
  • the intra prediction parameter decoding unit 304 may derive different intra prediction modes depending on luminance and color difference.
  • the intra prediction parameter decoding unit 304 decodes the luminance prediction mode IntraPredModeY as the luminance prediction parameter and the color difference prediction mode IntraPredModeC as the color difference prediction parameter.
  • the luminance prediction mode IntraPredModeY is a 35 mode, and corresponds to planar prediction (0), DC prediction (1), and direction prediction (2 to 34).
  • the color difference prediction mode IntraPredModeC uses one of the planar prediction (0), the DC prediction (1), the direction prediction (2 to 34), and the LM mode (35).
  • the intra prediction parameter decoding unit 304 decodes a flag indicating whether IntraPredModeC is the same mode as the luminance mode. If the flag indicates that the mode is the same as the luminance mode, IntraPredModeC is assigned to IntraPredModeC, and the flag is luminance. If the mode is different from the mode, planar prediction (0), DC prediction (1), direction prediction (2 to 34), and LM mode (35) may be decoded as IntraPredModeC.
  • the loop filter 305 applies filters such as a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the decoded image of the CU generated by the adding unit 312.
  • filters such as a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the decoded image of the CU generated by the adding unit 312.
  • the reference picture memory 306 stores the decoded image of the CU generated by the loop filter 305 at a predetermined position for each decoding target picture and CU.
  • the prediction parameter memory 307 stores the prediction parameter in a predetermined position for each decoding target picture and prediction unit (or sub-block, fixed-size block, pixel). Specifically, the prediction parameter memory 307 stores the inter prediction parameter decoded by the inter prediction parameter decoding unit 303, the intra prediction parameter decoded by the intra prediction parameter decoding unit 304, and the prediction mode predMode separated by the entropy decoding unit 301. .
  • the stored inter prediction parameters include, for example, a prediction list utilization flag predFlagLX (inter prediction identifier inter_pred_idc), a reference picture index refIdxLX, and a motion vector mvLX.
  • the prediction image generation unit 308 receives the prediction mode predMode input from the entropy decoding unit 301 and the prediction parameter from the prediction parameter decoding unit 302. Further, the predicted image generation unit 308 reads a reference picture from the reference picture memory 306. The prediction image generation unit 308 generates a prediction image of the PU using the input prediction parameter and the read reference picture in the prediction mode indicated by the prediction mode predMode.
  • the inter prediction image generation unit 309 uses the inter prediction parameter input from the inter prediction parameter decoding unit 303 and the read reference picture to perform prediction of the PU by inter prediction. Is generated.
  • the inter prediction image generation unit 309 performs a motion vector on the basis of the decoding target PU from the reference picture indicated by the reference picture index refIdxLX for a reference picture list (L0 list or L1 list) having a prediction list use flag predFlagLX of 1.
  • the reference picture block at the position indicated by mvLX is read from the reference picture memory 306.
  • the inter prediction image generation unit 309 performs prediction based on the read reference picture block to generate a prediction image of the PU.
  • the inter prediction image generation unit 309 outputs the generated prediction image of the PU to the addition unit 312.
  • the intra predicted image generation unit 310 When the prediction mode predMode indicates the intra prediction mode, the intra predicted image generation unit 310 performs intra prediction using the intra prediction parameter input from the intra prediction parameter decoding unit 304 and the read reference picture. Specifically, the intra predicted image generation unit 310 reads, from the reference picture memory 306, neighboring PUs that are pictures to be decoded and are in a predetermined range from the decoding target PUs among the PUs that have already been decoded.
  • the predetermined range is, for example, one of the left, upper left, upper, and upper right adjacent PUs when the decoding target PU sequentially moves in the so-called raster scan order, and differs depending on the intra prediction mode.
  • the raster scan order is an order in which each row is sequentially moved from the left end to the right end in each picture from the upper end to the lower end.
  • the intra predicted image generation unit 310 performs prediction in the prediction mode indicated by the intra prediction mode IntraPredMode for the read adjacent PU, and generates a predicted image of the PU.
  • the intra predicted image generation unit 310 outputs the generated predicted image of the PU to the adding unit 312.
  • the intra prediction image generation unit 310 performs planar prediction (0), DC prediction (1), direction according to the luminance prediction mode IntraPredModeY.
  • Prediction image of luminance PU is generated by any of prediction (2 to 34), and planar prediction (0), DC prediction (1), direction prediction (2 to 34), LM mode according to color difference prediction mode IntraPredModeC
  • a predicted image of the color difference PU is generated by any of (35).
  • the inverse quantization / inverse transform unit 311 inversely quantizes the quantized coefficient input from the entropy decoding unit 301 to obtain a transform coefficient.
  • the inverse quantization / inverse transform unit 311 performs inverse transform (Inverse Discrete Cosine Transform) on the obtained transform coefficient to calculate a residual signal.
  • the inverse quantization / inverse transform unit 311 outputs the calculated residual signal to the adder 312.
  • the addition unit 312 adds the prediction image of the PU input from the inter prediction image generation unit 309 or the intra prediction image generation unit 310 and the residual signal input from the inverse quantization / inverse conversion unit 311 for each pixel, Generate a decoded PU image.
  • the loop filter 305 stores the generated decoded image of the PU in the reference picture memory 306, and outputs a decoded image Td obtained by integrating the generated decoded image of the PU for each picture to the outside.
  • FIG. 12 is a schematic diagram illustrating a configuration of the inter prediction parameter decoding unit 303 according to the present embodiment.
  • the inter prediction parameter decoding unit 303 includes an inter prediction parameter decoding control unit 3031, an AMVP prediction parameter derivation unit 3032, an addition unit 3035, a merge prediction parameter derivation unit 3036, a sub-block prediction parameter derivation unit 3037, and a BTM processing unit 3038. Composed.
  • the inter prediction parameter decoding control unit 3031 instructs the entropy decoding unit 301 to decode a code (syntax element) related to inter prediction, and a code (syntax element) included in the encoded data, for example, PU partition mode part_mode , Merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx, and difference vector mvdLX are extracted.
  • the inter prediction parameter decoding control unit 3031 first extracts a merge flag merge_flag.
  • the inter prediction parameter decoding control unit 3031 expresses that a certain syntax element is to be extracted, it means that the entropy decoding unit 301 is instructed to decode a certain syntax element, and the corresponding syntax element is read from the encoded data. To do.
  • the inter prediction parameter decoding control unit 3031 uses the entropy decoding unit 301 to extract the AMVP prediction parameter from the encoded data.
  • AMVP prediction parameters include an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, and a difference vector mvdLX.
  • the AMVP prediction parameter derivation unit 3032 derives a prediction vector mvpLX from the prediction vector index mvp_LX_idx. Details will be described later.
  • the inter prediction parameter decoding control unit 3031 outputs the difference vector mvdLX to the addition unit 3035.
  • the adding unit 3035 adds the prediction vector mvpLX and the difference vector mvdLX to derive a motion vector.
  • the inter prediction parameter decoding control unit 3031 extracts the merge index merge_idx as a prediction parameter related to merge prediction.
  • the inter prediction parameter decoding control unit 3031 outputs the extracted merge index merge_idx to the merge prediction parameter derivation unit 3036 (details will be described later), and outputs the sub-block prediction mode flag subPbMotionFlag to the sub-block prediction parameter derivation unit 3037.
  • the subblock prediction parameter deriving unit 3037 divides the PU into a plurality of subblocks according to the value of the subblock prediction mode flag subPbMotionFlag, and derives a motion vector in units of subblocks.
  • the prediction block is predicted in units of blocks as small as 4x4 or 8x8.
  • a sub-block prediction mode is used for a method in which a CU is divided into a plurality of partitions (PUs such as 2NxN, Nx2N, and NxN) and the syntax of prediction parameters is encoded in units of partitions. Since a plurality of sub-blocks are grouped into a set and the syntax of the prediction parameter is encoded for each set, motion information of a large number of sub-blocks can be encoded with a small amount of code.
  • the sub-block prediction parameter derivation unit 3037 performs at least one of a spatio-temporal sub-block prediction unit 30371, an affine prediction unit 30372, and a matching motion derivation unit 30373 that perform sub-block prediction in the sub-block prediction mode. Prepare.
  • Subblock prediction mode flag a method for deriving a sub-block prediction mode flag subPbMotionFlag indicating whether or not a prediction mode of a certain PU is a sub-block prediction mode in the image encoding device 11 (details will be described later) will be described.
  • the image encoding device 11 derives a sub-block prediction mode flag subPbMotionFlag based on which of later-described spatial sub-block prediction SSUB, temporal sub-block prediction TSUB, affine prediction AFFINE, and matching motion derivation MAT is used. For example, when the prediction mode selected by a certain PU is N (for example, N is a label indicating the selected merge candidate), the sub-block prediction mode flag subPbMotionFlag may be derived by the following equation.
  • the above equation may be appropriately changed according to the type of sub-block prediction mode performed by the image encoding device 11. That is, when the image encoding device 11 is configured to perform spatial subblock prediction SSUB and affine prediction AFFINE, the subblock prediction mode flag subPbMotionFlag may be derived as follows.
  • the subPbMotionFlag may be set to 1.
  • the sub-block prediction mode subPbMotionFlag may be derived as follows.
  • means that subPbMotionFlag may be derived by a sum operation (OR) with another condition. That is, subPbMotionFlag may be derived by the sum operation of determination of prediction mode N and small PU size determination as follows (the same applies hereinafter).
  • CU size is 8x8
  • the division type is NxN
  • subPbMotionFlag may be derived as follows.
  • a case where the PU width or height is 4 may be included as a case of determining sub-block prediction. That is, the sub-block prediction mode flag subPbMotionFlag may be derived as follows.
  • the sub-block prediction parameter deriving unit 3037 of the image decoding device 31 derives a sub-block prediction mode from the subPbMotionFlag by a method reverse to that described above.
  • the spatio-temporal sub-block prediction unit 30371 calculates the target PU from the motion vector of the PU on the reference image temporally adjacent to the target PU (for example, the immediately preceding picture) or the motion vector of the PU spatially adjacent to the target PU.
  • the motion vector of the sub-block obtained by dividing is derived.
  • (xPb, yPb) is the upper left coordinate of the target PU
  • nPbW, nPbH are the size of the target PU
  • nSbW, nSbH are the sizes of the sub-blocks.
  • the above-described temporal sub-block prediction candidate TSUB and spatial sub-block prediction candidate SSUB are selected as one mode (merge candidate) of the merge mode.
  • the affine prediction unit 30372 derives the affine prediction parameters of the target PU.
  • motion vectors (mv0_x, mv0_y) (mv1_x, mv1_y) of two control points (V0, V1) of the target PU are derived as affine prediction parameters.
  • the motion vector of each control point may be derived by prediction from the motion vector of the adjacent PU of the target PU, and further, the prediction vector and the encoded data derived as the motion vector of the control point
  • the motion vector of each control point may be derived from the sum of the difference vectors derived from.
  • FIG. 13 shows an example of deriving the motion vector spMvLX of each sub-block constituting the target PU (nPbW ⁇ nPbH) from the motion vector (mv0_x, mv0_y) of the control point V0 and the motion vector (mv1_x, mv1_y) of V1.
  • the motion vector spMvLX of each subblock is derived as a motion vector for each point located at the center of each subblock, as shown in FIG.
  • xPb and yPb are the upper left coordinates of the target PU
  • nPbW and nPbH are the width and height of the target PU
  • nSbW and nSbH are the width and height of the sub-block.
  • the matching motion deriving unit 30373 derives a motion vector spMvLX of the sub-blocks constituting the PU by performing either bilateral matching or template matching.
  • FIG. 14 is a diagram for explaining (a) bilateral matching and (b) template matching.
  • the matching motion derivation mode is selected as one merge candidate (matching candidate) in the merge mode.
  • the matching motion deriving unit 30373 derives a motion vector by matching regions in a plurality of reference images, assuming that the object moves at a constant velocity.
  • bilateral matching it is assumed that a certain object passes through a certain region of the reference image A, a target PU of the target picture Cur_Pic, and a certain region of the reference image B with constant velocity motion, and matching between the reference images A and B To derive the motion vector of the target PU.
  • a motion vector is derived by matching the adjacent region Temp_Cur of the target PU with the adjacent region Temp_L0 of the reference block on the reference picture.
  • (MV0_x, MV0_y) is determined so that the matching cost between Block_A and Block_B is minimized.
  • the (MV0_x, MV0_y) derived in this way is a motion vector assigned to the sub-block.
  • (b) of FIG. 14 is a figure for demonstrating a template matching (Template
  • one reference picture is referred to at a time in order to derive a motion vector of the sub-block Cur_block in the target picture Cur_Pic. That is, processing is performed for each reference picture.
  • the reference block Block_A having the upper left coordinates (xPos, yPos) specified by is specified.
  • (xCur, yCur) is the upper left coordinate of the sub-block Cur_block.
  • a template region Temp_Cur adjacent to the sub-block Cur_block in the target picture Cur_Pic and a template region Temp_L0 adjacent to the Block_A in the reference picture A are set.
  • the template region Temp_Cur is composed of a region adjacent to the upper side of the sub-block Cur_block and a region adjacent to the left side of the sub-block Cur_block.
  • the template area Temp_L0 is composed of an area adjacent to the upper side of Block_A and an area adjacent to the left side of Block_A.
  • the matching motion deriving unit 30373 may perform the same processing as the reference image Ref0 on the reference image Ref1 different from the reference image Ref0.
  • the reference block Block_A having the upper left coordinates (xPos, yPos) specified by is specified.
  • a template area Temp_L1 adjacent to Block_A in the reference picture A is set.
  • (MV1_x, MV1_y) that minimizes the matching cost between Temp_Cur and TempL1 is determined, and (MV1_x, MV1_y) becomes the motion vector spMvL1 assigned to the sub-block.
  • the matching motion derivation unit 30373 may process the two reference images Ref0 and Ref1 in the template matching. In this case, the matching motion deriving unit 30373 sequentially performs the matching of one reference image Ref0 and the matching of one reference image Ref1 described above.
  • FIG. 7 is a schematic diagram illustrating the configuration of the merge prediction parameter deriving unit 3036 according to the present embodiment.
  • the merge prediction parameter derivation unit 3036 includes a merge candidate derivation unit 30361, a merge candidate selection unit 30362, and a merge candidate storage unit 30363.
  • the merge candidate storage unit 30363 stores the merge candidates input from the merge candidate derivation unit 30361.
  • the merge candidate includes a prediction list use flag predFlagLX, a motion vector mvLX, and a reference picture index refIdxLX.
  • an index is assigned to the stored merge candidate according to a predetermined rule.
  • the merge candidate derivation unit 30361 derives a merge candidate using the motion vector of the adjacent PU that has already been decoded and the reference picture index refIdxLX as they are.
  • merge candidates may be derived using affine prediction. This method is described in detail below.
  • the merge candidate derivation unit 30361 may use affine prediction for a spatial merge candidate derivation process, a temporal merge candidate derivation process, a combined merge candidate derivation process, and a zero merge candidate derivation process described later. Affine prediction is performed in units of sub-blocks, and prediction parameters are stored in the prediction parameter memory 307 for each sub-block. Alternatively, the affine prediction may be performed on a pixel basis.
  • the merge candidate derivation unit 30361 reads and reads the prediction parameters (prediction list use flag predFlagLX, motion vector mvLX, reference picture index refIdxLX) stored in the prediction parameter memory 307 according to a predetermined rule.
  • the predicted parameters are derived as merge candidates.
  • the prediction parameter to be read is a prediction parameter related to each of the PUs within a predetermined range from the decoding target PU (for example, all or part of the PUs in contact with the lower left end, the upper left end, and the upper right end of the decoding target PU, respectively). is there.
  • the merge candidates derived by the merge candidate deriving unit 30361 are stored in the merge candidate storage unit 30363.
  • the merge candidate derivation unit 30361 reads the prediction parameter of the PU in the reference image including the lower right coordinate of the decoding target PU from the prediction parameter memory 307 and sets it as a merge candidate.
  • the reference picture designation method may be, for example, the reference picture index refIdxLX designated in the slice header, or may be designated using the smallest reference picture index refIdxLX of the PU adjacent to the decoding target PU.
  • the merge candidates derived by the merge candidate deriving unit 30361 are stored in the merge candidate storage unit 30363.
  • the merge candidate derivation unit 30361 uses two different derived merge candidate motion vectors and reference picture indexes already derived and stored in the merge candidate storage unit 30363 as the motion vectors of L0 and L1, respectively. Combined merge candidates are derived by combining them. The merge candidates derived by the merge candidate deriving unit 30361 are stored in the merge candidate storage unit 30363.
  • the merge candidate derivation unit 30361 derives a merge candidate in which the reference picture index refIdxLX is 0 and both the X component and the Y component of the motion vector mvLX are 0.
  • the merge candidates derived by the merge candidate deriving unit 30361 are stored in the merge candidate storage unit 30363.
  • the merge candidate selection unit 30362 selects, from the merge candidates stored in the merge candidate storage unit 30363, a merge candidate to which an index corresponding to the merge index merge_idx input from the inter prediction parameter decoding control unit 3031 is assigned. As an inter prediction parameter.
  • the merge candidate selection unit 30362 stores the selected merge candidate in the prediction parameter memory 307 and outputs it to the prediction image generation unit 308.
  • FIG. 8 is a schematic diagram showing the configuration of the AMVP prediction parameter derivation unit 3032 according to this embodiment.
  • the AMVP prediction parameter derivation unit 3032 includes a vector candidate derivation unit 3033, a vector candidate selection unit 3034, and a vector candidate storage unit 3039.
  • the vector candidate derivation unit 3033 reads the already processed PU motion vector mvLX stored in the prediction parameter memory 307 based on the reference picture index refIdx, derives a prediction vector candidate, and sends the prediction vector candidate to the vector candidate storage unit 3039. Store in candidate list mvpListLX [].
  • the vector candidate selection unit 3034 selects the motion vector mvpListLX [mvp_LX_idx] indicated by the prediction vector index mvp_LX_idx from the prediction vector candidates in the prediction vector candidate list mvpListLX [] as the prediction vector mvpLX.
  • the vector candidate selection unit 3034 outputs the selected prediction vector mvpLX to the addition unit 3035.
  • a prediction vector candidate is a PU for which decoding processing has been completed, and is derived by scaling a motion vector of a PU (for example, an adjacent PU) within a predetermined range from the decoding target PU.
  • the adjacent PU includes a PU that is spatially adjacent to the decoding target PU, for example, the left PU and the upper PU, and an area that is temporally adjacent to the decoding target PU, for example, the same position as the decoding target PU. It includes areas obtained from prediction parameters of PUs with different times.
  • the addition unit 3035 adds the prediction vector mvpLX input from the AMVP prediction parameter derivation unit 3032 and the difference vector mvdLX input from the inter prediction parameter decoding control unit 3031 to calculate a motion vector mvLX.
  • the adding unit 3035 outputs the calculated motion vector mvLX to the predicted image generation unit 308 and the prediction parameter memory 307.
  • the motion vector derived by the merge prediction parameter deriving unit 3036 or the motion vector derived by the matching motion deriving unit 30373 is not directly output to the inter-predicted image generation unit 309 but is output via the BTM processing unit 3038. May be.
  • the BTM processing unit 3038 uses the predicted image generated using the motion vector derived by the merge prediction parameter deriving unit 3036 or the matching motion deriving unit 30373 as a template, and executes bilateral template matching (BTM) processing.
  • BTM bilateral template matching
  • a highly accurate motion vector is derived. Details of the BTM processing will be described later.
  • BTM is also called Decoder-side motion vector refinement (DMVR).
  • FIG. 11 is a schematic diagram illustrating a configuration of an inter predicted image generation unit 309 included in the predicted image generation unit 308 according to the present embodiment.
  • the inter prediction image generation unit 309 includes a motion compensation unit (prediction image generation device) 3091 and a weight prediction unit 3094.
  • the motion compensation unit 3091 receives the reference picture index refIdxLX from the reference picture memory 306 based on the inter prediction parameters (prediction list use flag predFlagLX, reference picture index refIdxLX, motion vector mvLX) input from the inter prediction parameter decoding unit 303.
  • an interpolation image motion compensated image, predicted image candidate
  • predSamplesLX is generated by reading out a block at a position shifted by the motion vector mvLX starting from the position of the decoding target PU.
  • a motion compensation image is generated by applying a filter for generating a pixel at a decimal position called a motion compensation filter.
  • the weight prediction unit 3094 generates a predicted image of the PU by multiplying the input motion compensated image (interpolated image, predicted image candidate) predSamplesLX by a weight coefficient.
  • the input motion compensated image predSamplesLX (LX is L0 or L1) is represented by the number of pixel bits bitDepth The following equation is processed to match
  • predSamples [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesLX [x] [y] + offset1) >> shift1)
  • shift1 14 ⁇ bitDepth
  • offset1 1 ⁇ (shift1-1).
  • predSamples [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x] [y] + predSamplesL1 [x] [y] + offset2) >> shift2)
  • shift2 15-bitDepth
  • offset2 1 ⁇ (shift2-1).
  • the weight prediction unit 3094 when performing weight prediction, derives the weight prediction coefficient w0 and the offset o0 from the encoded data, and performs the processing of the following equation.
  • predSamples [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, ((predSamplesLX [x] [y] * w0 + 2 ⁇ (log2WD-1)) >> log2WD) + o0)
  • log2WD is a variable indicating a predetermined shift amount.
  • the weight prediction unit 3094 when performing weight prediction, derives weight prediction coefficients w0, w1, o0, o1 from the encoded data, and performs the processing of the following equation.
  • predSamples [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x] [y] * w0 + predSamplesL1 [x] [y] * w1 + ((o0 + o1 + 1) ⁇ log2WD)) >> (log2WD + 1)) ⁇ Motion vector decoding process> Below, with reference to FIG. 9, the motion vector decoding process which concerns on this embodiment is demonstrated concretely.
  • the motion vector decoding process includes a process of decoding syntax elements related to inter prediction (also referred to as motion syntax decoding process) and a process of deriving a motion vector ( Motion vector derivation process).
  • FIG. 9 is a flowchart illustrating a flow of inter prediction syntax decoding processing performed by the inter prediction parameter decoding control unit 3031. In the following description of FIG. 9, each process is performed by the inter prediction parameter decoding control unit 3031 unless otherwise specified.
  • merge_flag! 0 is true (Y in S102)
  • merge index merge_idx is decoded in S103, and the motion vector derivation process (S111) in the merge mode is executed.
  • inter_pred_idc is other than PRED_L1 (PRED_L0 or PRED_BI)
  • the reference picture index refIdxL0, the difference vector parameter mvdL0, and the prediction vector index mvp_L0_idx are decoded in S105, S106, and S107, respectively.
  • inter_pred_idc is other than PRED_L0 (PRED_L1 or PRED_BI)
  • the reference picture index refIdxL1 is decoded in S108, S109, and S110.
  • a motion vector derivation process (S112) in the AMVP mode is executed.
  • FIG. 15 is a flowchart showing an outline of the motion prediction mode determination flow.
  • the motion prediction mode determination flow is executed by the inter prediction parameter decoding unit 303.
  • the motion prediction mode is a mode for determining a method for deriving a motion vector used for motion compensation prediction.
  • TM template matching
  • the BTM processing unit 3038 determines whether or not to perform bilateral template matching (BTM) processing (S1413), and determines that BTM processing is performed (YES in S1413). , BTM processing is executed (S1414).
  • BTM bilateral template matching
  • Whether or not to perform BTM processing is determined to perform BTM processing if a motion vector is derived by bi-directional prediction in the merge mode, and is determined not to perform BTM processing unless bi-directional prediction is performed. .
  • the BTM process is not performed even in bidirectional prediction.
  • FIG. 16A is a diagram showing a relationship between a reference image and a template in BTM processing
  • FIG. 16B is a diagram showing a processing flow
  • FIG. 17 is a diagram for explaining the details of the template in the BTM processing.
  • the BTM processing unit 3038 first generates a prediction block of the target block Cur ⁇ ⁇ ⁇ ⁇ block from a plurality of reference images Ref0 and Ref1 derived by the merge prediction parameter deriving unit 3036. This is used as a template.
  • the processing is the same as the processing of the weight prediction unit 3094, the motion compensated image predSamplesL0 [] [] derived from the reference image Ref0 and the motion vector mvL0, and the motion derived from the reference image Ref1 and the motion vector mvL1.
  • the weight prediction image predSamples [] [] derived from the compensation image predSamplesL1 [] [] is defined as a template predBTM [] [].
  • predBTM [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x] [y] + predSamplesL1 [x] [y] + offset2) >> shift2)
  • the coefficients of predSamplesL0 [x] [y] and predSamplesL1 [x] [y] are 1. That is, it can be said that the template predBTM [x] [y] is derived from the average value of predSamplesL0 [x] [y] and predSamplesL1 [x] [y].
  • the BTM processing unit 3038 sets motion vector candidates in a range centered on mvL0 or mvL1 (initial vector) for each of the reference image Ref0 and the reference image Ref1, Deriving the matching cost with the template. Then, the motion vectors mvL0 and mvL1 are updated to the vectors mvL0 ′ and mvL1 ′ that minimize the matching cost.
  • the BTM processing unit 3038 first derives a template (S501).
  • the template is a prediction block derived from a plurality of motion vectors (for example, mvL0 and mvL1) derived by the merge prediction parameter deriving unit 3036.
  • the BTM processing unit 3038 performs a local search (S502).
  • the local search is performed in the order of the L0 search process (S503) for the reference image Ref0 and the L1 search process (S504) for the reference image Ref1.
  • an optimum vector bestMV that minimizes the matching cost is searched.
  • the matching cost for the optimal vector the matching cost for the reference image Ref0 is called costL0, and the matching cost for the reference image Ref1 is called costL1.
  • the matching cost for the reference image RefX is also expressed as costLX.
  • the inter prediction image generation unit 309 obtains the motion compensated image predSamplesL0 [x] [y] derived using the motion vector mvL0 obtained from the L0 search processing by the BTM processing unit 3038 and the L1 search processing by the BTM processing unit 3038.
  • the final predicted image predSamples [x] [y] is derived from the motion compensated image predSamplesL1 [x] [y] derived using the motion vector mvL1 obtained.
  • the method described above may be used. The method described may be used.
  • FIG. 18A and 18B are diagrams showing an outline of template matching.
  • the L0 matching process (S801) related to the reference image Ref0 and the L1 matching process (S802) related to the reference image Ref1 are sequentially performed.
  • a block search (S811, S821) and a sub-block search (S812, S822) are performed.
  • the matching motion derivation unit 30373 searches for the optimum vector bestMV that minimizes the matching cost.
  • costL0 the matching cost for the reference image Ref0 when it is an optimal vector
  • costL1 the matching cost for the reference image Ref1
  • the motion vector correction or derivation in the reference image RefX is called “LX search processing” and TM is “LX matching processing”, but both use a template for the reference image RefX. Matching process. That is, except for the fact that the matching area (template) and the initial vector are different between BTM and TM, these are almost the same processing.
  • the inter prediction image generation unit 309 performs the motion compensated image predSamplesL0 [x] [y] based on the motion vector mvL0 obtained from the L0 matching process and the motion compensated image predSamplesL1 based on the motion vector mvL1 obtained from the L1 matching process.
  • the final predicted image predSamples [x] [y] is derived from [x] [y].
  • the method described above may be used. The method described may be used.
  • FIG. 19B In bilateral matching, L0 / L1 matching processing (S901) is performed. In the L0 / L1 matching process, a block search (S911) and a sub-block search (S912) are performed.
  • FIG. 20 is a flowchart showing the flow of motion vector derivation processing in the matching motion derivation mode (template matching, bilateral matching).
  • FIG. 21 is a diagram for explaining motion vector derivation processing in the matching motion derivation mode.
  • steps S1051 to S1054 are block searches executed at the block level. That is, as shown in (a) of FIG. 21, a motion vector in a target block (CU or PU) unit is derived.
  • steps S1055 to S1060 are a sub-block search executed at the sub-block level. That is, as shown in (b) of FIG. 21, a motion vector is derived in units of subblocks constituting the target block. Note that the size of the sub-block is 1/8 both vertically and horizontally with respect to the target block. However, the minimum size of the sub-block is 4 ⁇ 4 pixels.
  • FRUC_MODE is a variable indicating the type of matching motion derivation mode, and corresponds to the fruc_mode_idx already described.
  • the process proceeds to step S1053.
  • step S1053 a block-level initial vector in the target block is derived (initial vector search).
  • the initial vector is a motion vector that serves as a base for the search.
  • a limited motion vector candidate spatial merge candidate, temporal merge candidate, combined merge candidate, zero vector, ATMVP vector of the target block, etc.
  • the vector that minimizes is derived as the initial vector.
  • the initial vector candidate is a motion vector derived based on the motion vector of the processed reference point.
  • the ATMVP vector is a vector derived from the average (or weighted average, median) of the motion vector around the target block and the motion vector of the reference image.
  • the initial vector search does not include a step search that repeats the search recursively according to the searched result and a raster search that searches a continuous region. These searches are called local searches.
  • step S1054 a block level local search (local search) in the target block is performed.
  • a local region centered on the initial vector derived in step S1051 is further searched to search for a vector having a minimum matching cost, and set as a final vector.
  • the local search may be a step search, raster search, or spiral search. Details of the local search will be described later.
  • an initial vector of a sub-block in the target block is derived (initial vector search).
  • vector candidates target block selection vector, zero vector, center collocation vector of the subblock, lower right collocation vector of the subblock, ATMVP vector of the subblock, upper adjacent vector of the subblock, the sub
  • the vector having the smallest matching cost among the left adjacent vectors of the block is set as the initial vector of the sub-block.
  • the vector candidates used for the initial vector search of the sub-block are not limited to the vectors described above.
  • step S1059 a local search centering on the initial vector of the sub-block selected in S1058 is performed. Then, the matching cost of vector candidates near the initial vector of the sub-block is derived, and the minimum vector is derived as the sub-block motion vector.
  • FIG. 4 is a block diagram illustrating a configuration of the image encoding device 11 according to the present embodiment.
  • the image encoding device 11 includes a predicted image generation unit 101, a subtraction unit 102, a transform / quantization unit 103, an entropy encoding unit 104, an inverse quantization / inverse transform unit 105, an addition unit 106, a loop filter 107, and a prediction parameter memory.
  • the prediction parameter encoding unit 111 includes an inter prediction parameter encoding unit 112 and an intra prediction parameter encoding unit 113.
  • the predicted image generation unit 101 generates, for each picture of the image T, a predicted image P of the prediction unit PU for each encoding unit CU that is an area obtained by dividing the picture.
  • the predicted image generation unit 101 reads a decoded block from the reference picture memory 109 based on the prediction parameter input from the prediction parameter encoding unit 111.
  • the prediction parameter input from the prediction parameter encoding unit 111 is, for example, a motion vector in the case of inter prediction.
  • the predicted image generation unit 101 reads a block at a position on the reference image indicated by the motion vector with the target PU as a starting point.
  • the prediction parameter is, for example, an intra prediction mode.
  • a pixel value of an adjacent PU used in the intra prediction mode is read from the reference picture memory 109, and a predicted image P of the PU is generated.
  • the predicted image generation unit 101 generates a predicted image P of the PU using one prediction method among a plurality of prediction methods for the read reference picture block.
  • the predicted image generation unit 101 outputs the generated predicted image P of the PU to the subtraction unit 102.
  • FIG. 6 is a schematic diagram illustrating a configuration of an inter predicted image generation unit 1011 included in the predicted image generation unit 101.
  • the inter prediction image generation unit 1011 includes a motion compensation unit 10111 and a weight prediction unit 10112. Since the motion compensation unit 10111 and the weight prediction unit 10112 have the same configurations as the motion compensation unit 3091 and the weight prediction unit 3094 described above, description thereof is omitted here. Further, the configuration of the inter predicted image generation unit 1011 may include the same configuration as the inter predicted image generation unit 309 described in the second and third embodiments described later. In this case, the configuration of the inter prediction parameter encoding unit 112 may include the same configuration as that of the inter prediction parameter decoding unit 303.
  • the prediction image generation unit 101 generates a prediction image P of the PU based on the pixel value of the reference block read from the reference picture memory, using the parameter input from the prediction parameter encoding unit.
  • the predicted image generated by the predicted image generation unit 101 is output to the subtraction unit 102 and the addition unit 106.
  • the subtraction unit 102 subtracts the signal value of the predicted image P of the PU input from the predicted image generation unit 101 from the pixel value of the corresponding PU of the image T, and generates a residual signal.
  • the subtraction unit 102 outputs the generated residual signal to the transform / quantization unit 103.
  • the transformation / quantization unit 103 performs transformation on the residual signal input from the subtraction unit 102 and calculates a transformation coefficient.
  • the transform / quantization unit 103 quantizes the calculated transform coefficient to obtain a quantized coefficient.
  • the transform / quantization unit 103 outputs the obtained quantization coefficient to the entropy coding unit 104 and the inverse quantization / inverse transform unit 105.
  • the entropy encoding unit 104 receives the quantization coefficient from the transform / quantization unit 103 and receives the encoding parameter from the prediction parameter encoding unit 111.
  • Examples of input encoding parameters include codes such as a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, a difference vector mvdLX, a prediction mode predMode, and a merge index merge_idx.
  • the entropy encoding unit 104 generates an encoded stream Te by entropy encoding the input quantization coefficient and encoding parameter, and outputs the generated encoded stream Te to the outside.
  • the inverse quantization / inverse transform unit 105 inversely quantizes the quantization coefficient input from the transform / quantization unit 103 to obtain a transform coefficient.
  • the inverse quantization / inverse transform unit 105 performs inverse transform on the obtained transform coefficient to calculate a residual signal.
  • the inverse quantization / inverse transform unit 105 outputs the calculated residual signal to the addition unit 106.
  • the addition unit 106 adds the signal value of the prediction image P of the PU input from the prediction image generation unit 101 and the signal value of the residual signal input from the inverse quantization / inverse conversion unit 105 for each pixel, and performs decoding. Generate an image.
  • the adding unit 106 stores the generated decoded image in the reference picture memory 109.
  • the loop filter 107 performs a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) on the decoded image generated by the adding unit 106.
  • SAO sample adaptive offset
  • ALF adaptive loop filter
  • the prediction parameter memory 108 stores the prediction parameter generated by the encoding parameter determination unit 110 at a predetermined position for each encoding target picture and CU.
  • the reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined position for each picture to be encoded and each CU.
  • the encoding parameter determination unit 110 selects one set from among a plurality of sets of encoding parameters.
  • the encoding parameter is a parameter to be encoded that is generated in association with the above-described prediction parameter or the prediction parameter.
  • the predicted image generation unit 101 generates a predicted image P of the PU using each of these encoding parameter sets.
  • the encoding parameter determination unit 110 calculates a cost value indicating the amount of information and the encoding error for each of a plurality of sets.
  • the cost value is, for example, the sum of a code amount and a square error multiplied by a coefficient ⁇ .
  • the code amount is the information amount of the encoded stream Te obtained by entropy encoding the quantization error and the encoding parameter.
  • the square error is the sum between pixels regarding the square value of the residual value of the residual signal calculated by the subtracting unit 102.
  • the coefficient ⁇ is a real number larger than a preset zero.
  • the encoding parameter determination unit 110 selects a set of encoding parameters that minimizes the calculated cost value.
  • the entropy encoding unit 104 outputs the selected set of encoding parameters to the outside as the encoded stream Te, and does not output the set of unselected encoding parameters.
  • the encoding parameter determination unit 110 stores the determined encoding parameter in the prediction parameter memory 108.
  • the prediction parameter encoding unit 111 derives a format for encoding from the parameters input from the encoding parameter determination unit 110 and outputs the format to the entropy encoding unit 104. Deriving the format for encoding is, for example, deriving a difference vector from a motion vector and a prediction vector. Also, the prediction parameter encoding unit 111 derives parameters necessary for generating a prediction image from the parameters input from the encoding parameter determination unit 110 and outputs the parameters to the prediction image generation unit 101.
  • the parameter necessary for generating the predicted image is, for example, a motion vector in units of sub-blocks.
  • the inter prediction parameter encoding unit 112 derives an inter prediction parameter such as a difference vector based on the prediction parameter input from the encoding parameter determination unit 110.
  • the inter prediction parameter encoding unit 112 derives parameters necessary for generating a prediction image to be output to the prediction image generating unit 101, and an inter prediction parameter decoding unit 303 (see FIG. 5 and the like) derives inter prediction parameters.
  • Some of the configurations are the same as the configuration to be performed. The configuration of the inter prediction parameter encoding unit 112 will be described later.
  • the intra prediction parameter encoding unit 113 derives a format (for example, MPM_idx, rem_intra_luma_pred_mode) for encoding from the intra prediction mode IntraPredMode input from the encoding parameter determination unit 110.
  • a format for example, MPM_idx, rem_intra_luma_pred_mode
  • the inter prediction parameter encoding unit 112 is a unit corresponding to the inter prediction parameter decoding unit 303 in FIG. 12, and the configuration is shown in FIG.
  • the inter prediction parameter encoding unit 112 includes an inter prediction parameter encoding control unit 1121, an AMVP prediction parameter derivation unit 1122, a subtraction unit 1123, a sub-block prediction parameter derivation unit 1125, and a partition mode derivation unit and a merge flag derivation unit (not shown).
  • An inter prediction identifier deriving unit, a reference picture index deriving unit, a vector difference deriving unit, etc., and a split mode deriving unit, a merge flag deriving unit, an inter prediction identifier deriving unit, a reference picture index deriving unit, and a vector difference deriving unit Respectively derive a PU partition mode part_mode, a merge flag merge_flag, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, and a difference vector mvdLX.
  • the inter prediction parameter encoding unit 112 outputs the motion vector (mvLX, subMvLX), the reference picture index refIdxLX, the PU partition mode part_mode, the inter prediction identifier inter_pred_idc, or information indicating these to the prediction image generating unit 101. Also, the inter prediction parameter encoding unit 112 entropy PU partition mode part_mode, merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx, difference vector mvdLX, sub-block prediction mode flag subPbMotionFlag. The data is output to the encoding unit 104.
  • the inter prediction parameter encoding control unit 1121 includes a merge index deriving unit 11211 and a vector candidate index deriving unit 11212.
  • the merge index derivation unit 11211 compares the motion vector and reference picture index input from the encoding parameter determination unit 110 with the motion vector and reference picture index of the merge candidate PU read from the prediction parameter memory 108, and performs merge An index merge_idx is derived and output to the entropy encoding unit 104.
  • a merge candidate is a reference PU (for example, a reference PU that touches the lower left end, upper left end, and upper right end of the encoding target block) within a predetermined range from the encoding target CU to be encoded.
  • the PU has been processed.
  • the vector candidate index deriving unit 11212 derives a prediction vector index mvp_LX_idx.
  • the sub-block prediction parameter derivation unit 1125 When the encoding parameter determination unit 110 determines to use the sub-block prediction mode, the sub-block prediction parameter derivation unit 1125 performs spatial sub-block prediction, temporal sub-block prediction, affine prediction, and matching motion derivation according to the value of subPbMotionFlag.
  • a motion vector and a reference picture index for any sub-block prediction are derived. As described in the description of the image decoding apparatus, the motion vector and the reference picture index are derived by reading out the motion vector and the reference picture index such as the adjacent PU and the reference picture block from the prediction parameter memory 108.
  • the AMVP prediction parameter derivation unit 1122 has the same configuration as the AMVP prediction parameter derivation unit 3032 (see FIG. 12).
  • the motion vector mvLX is input from the encoding parameter determination unit 110 to the AMVP prediction parameter derivation unit 1122.
  • the AMVP prediction parameter derivation unit 1122 derives a prediction vector mvpLX based on the input motion vector mvLX.
  • the AMVP prediction parameter derivation unit 1122 outputs the derived prediction vector mvpLX to the subtraction unit 1123. Note that the reference picture index refIdx and the prediction vector index mvp_LX_idx are output to the entropy encoding unit 104.
  • the subtraction unit 1123 subtracts the prediction vector mvpLX input from the AMVP prediction parameter derivation unit 1122 from the motion vector mvLX input from the coding parameter determination unit 110 to generate a difference vector mvdLX.
  • the difference vector mvdLX is output to the entropy encoding unit 104.
  • a part of the image encoding device 11 and the image decoding device 31 in the above-described embodiment for example, the entropy decoding unit 301, the prediction parameter decoding unit 302, the loop filter 305, the predicted image generation unit 308, the inverse quantization / inverse transformation.
  • the prediction parameter encoding unit 111 may be realized by a computer.
  • the program for realizing the control function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read by a computer system and executed.
  • the “computer system” is a computer system built in either the image encoding device 11 or the image decoding device 31 and includes hardware such as an OS and peripheral devices.
  • the “computer-readable recording medium” refers to a storage device such as a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a hard disk built in a computer system.
  • the “computer-readable recording medium” is a medium that dynamically holds a program for a short time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line,
  • a volatile memory inside a computer system serving as a server or a client may be included and a program that holds a program for a certain period of time.
  • the program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
  • Template matching for deriving a motion vector by matching a surrounding template of a target block with a motion compensated image derived from a reference image.
  • BM Bilateral matching
  • BTM Bilateral template matching
  • TM when the matching motion deriving unit 30373 selects an optimal motion vector candidate, matching between a template and a motion compensated image derived from the reference image (Ref0, Ref1) is performed. Cost (costL0, costL1) is calculated. Similarly for the BTM, the BTM processing unit 3038 derives a matching cost (costL0, costL1) between the template and the motion compensated image derived from the reference images (Ref0, Ref1). The matching cost is a cost corresponding to the goodness of matching (error amount, difference). In BM, the matching cost for each of the motion compensated images derived from the two reference images is not derived.
  • the matching motion deriving unit 30373 derives costL0 and costL1 by the following expressions.
  • costL0
  • on template image [x] [y] -Ref0 costL1
  • is an operation that takes the sum of x and y in the above range.
  • the sum of the costs in each template may be used as the matching cost (costL0 of the reference image Ref0 of the motion compensated image predSamplesL0 [x] [y]) , CostL1 of the reference image Ref1 of the motion compensated image predSamplesL1 [x] [y]).
  • the template image and the motion compensated images Ref0 and Ref1 may be stored once in a one-dimensional temporal buffer and then compared. In this case, the above summation is performed not on the subscripts x and y but on a one-dimensional buffer position (for example, i).
  • costL0 and costL1 are derived in BTM. Since the BTM template image is predBTM [] [] described above, the BTM processing unit 3038 derives costL0 and costL1 according to the following equations.
  • costL0
  • on template image predBTM [x] [y] -Ref0 costL1
  • is an operation that takes the sum of x and y in the above range.
  • square error sum SSD (Sum of Square Differenec) or SATD (Sum of Absolute Transformed Differences) may be used in addition to SAD.
  • SAD Sum of Absolute Difference
  • SATD Sud of Absolute Transformed Differences
  • costLX
  • ) w is a predetermined constant.
  • w 4 is appropriate, but another value may be used.
  • the weight prediction unit 3094 converts the weight prediction image predSamples [x] [y], the motion compensation image predSamplesL0 [x] [y], and the motion compensation image predSamplesL1 [ Derived from the average value of x] [y].
  • the weight prediction unit 3094 derives a weight prediction image without considering the matching cost of each motion compensation image.
  • the weight prediction unit 3094 derives weight prediction images predSamples [x] [y] in TM and BTM in consideration of the matching cost of each motion compensation image.
  • the weight prediction unit 3094 can derive weight prediction images predSamples [x] [y] with high accuracy reflecting the matching cost of each motion compensation image.
  • the BTM processing unit (matching processing unit) 3038 and the matching motion derivation unit (matching processing unit) 30373 perform matching processing using bilateral template matching (BTM) or template matching (TM), and A difference (matching cost) between a predicted image candidate (motion compensation image and interpolation image) derived from a reference picture and a template is derived.
  • the weight prediction unit 3094 derives a predicted image from a plurality of predicted image candidates predicted for each reference picture.
  • the weight prediction unit 3094 sets a weighting coefficient (weight) for each prediction image candidate according to the difference between the template and the prediction image candidate, and derives the prediction image using the weighted prediction image candidate. To do.
  • the matching cost of the predicted image candidate derived in bilateral template matching or template matching can be effectively used for deriving the predicted image.
  • FIG. 22 is a block diagram illustrating an example of a main configuration of the inter predicted image generation unit 309 according to the present embodiment.
  • the inter predicted image generation unit 309 includes a motion compensation unit 3091 and a weight prediction unit 3094. Since the motion compensation unit 3091 has the same configuration as that described in the first embodiment, detailed description thereof is omitted here.
  • the weight prediction unit 3094 receives the matching cost (costL0, costL1) derived in the BTM from the BTM processing unit 3038.
  • the weight prediction unit 3094 weights the motion compensated images (predSamplesL0 [x] [y], predSamplesL1 [x] [y]) according to the matching costs (costL0, costL1).
  • the weight prediction unit 3094 derives the weight prediction image predSamples [x] [y] using the weighted motion compensation images (predSamplesL0 [x] [y], predSamplesL1 [x] [y]).
  • Weight derivation example and prediction image generation Here, an example of the weight (weight) derived by the weight prediction unit 3094 will be described.
  • the weight prediction unit 3094 compares costL0 and costL1.
  • the weight prediction unit 3094 uses the weight w0 of predSamplesL0 [x] [y] from the weight w1 of predSamplesL1 [x] [y] Also make it bigger.
  • the weight prediction unit 3094 uses the weight w1 of predSamplesL1 [x] [y] as the weight of predSamplesL0 [x] [y]. Make it larger than w0.
  • the weight prediction unit 3094 sets a larger value of the weighting coefficient to the motion compensation image having a smaller difference from the template than the motion compensation image having a larger difference (matching cost) from the template.
  • the predicted image generation device can derive a predicted image with high accuracy.
  • the weight prediction unit 3094 sets the weight w1 of predSamplesL1 [x] [y] and the weight w0 of predSamplesL0 [x] [y] to the same size.
  • the weight prediction unit 3094 weights the motion compensated image using the derived weight and derives the weight predicted image predSamples [X] [Y].
  • predSamples [x] [y] Clip3 (0, (1 ⁇ bitDepth)-1, (predSamplesL0 [x] [y] * w0 + predSamplesL1 [x] [y] * w1 + ((o0 + o1 + 1) ⁇ log2WD)) >> (log2WD + 1)) (Other examples of weights) Another example of the weight (weight) derived by the weight prediction unit 3094 will be described.
  • the weight prediction unit 3094 sets a weighting coefficient for the motion compensation image according to the ratio of the matching cost of the motion compensation image.
  • the inter prediction image generation unit 309 (prediction image generation device) can derive a prediction image with high accuracy.
  • the weight prediction unit 3094 derives a weight from the cost ratio between costL0 and costL1.
  • the details of the weight derivation example using the cost ratio are shown below.
  • the weight prediction unit 3094 derives a weight according to the cost ratio as shown in the following equation. For example, the weight prediction unit 3094 derives the weight so that the weight of the reference image with the smaller cost out of the costL0 of the reference image Ref0 and the costL1 of the reference image Ref1 is larger than the weight of the reference image with the larger cost. To do. That is, when costL0 is smaller than costL1, weights w0 and w1 are derived so that weight w0 ⁇ weight w1. For example, the ratio of costL0 to total costL0 and costL1 is used.
  • Example 2 Similar to Example 1, the weight prediction unit 3094 derives a weight according to the cost ratio as shown in the following equation. However, the division of “(costL0 / (costL0 + costL1)” in Example 1 is a table division.
  • the weight prediction unit 3094 adds a constant C to the numerator and denominator in “costL0 * InvTbl [(costL0 + costL1)]” in Example 2 rather than weight derivation according to the cost ratio. Determine the weight ratio at a moderate rate.
  • the weight prediction unit 3094 derives the ratio K between the numerator and the denominator of “costL0 * InvTbl [(costL0 + costL1)]” in Example 3, and then performs weighting by table subtraction (mapping) from K. Determine the ratio.
  • FIG. 23 is a pseudo code showing an example of a weight derivation process by the weight prediction unit 3094.
  • the weight prediction unit 3094 sets the weighting coefficient set to the motion compensation image to a constant value when the sum of the matching costs of the motion compensation image is smaller than a predetermined value.
  • the inter prediction image generation unit 309 can derive a prediction image with high accuracy.
  • the weight prediction unit 3094 may always set the weight ratio between w0 and w1 to 1: 1.
  • FIG. 24 is a block diagram illustrating an example of a main configuration of the inter predicted image generation unit 309 according to the present embodiment.
  • the inter predicted image generation unit 309 includes a motion compensation unit 3091 and a weight prediction unit 3094. Since the motion compensation unit 3091 has the same configuration as that described in the first embodiment, detailed description thereof is omitted here.
  • the weight prediction unit 3094 receives the matching cost (costL0, costL1) derived in the TM from the matching motion derivation unit 30373.
  • the weight prediction unit 3094 weights the motion compensated images (predSamplesL0 [x] [y], predSamplesL1 [x] [y]) according to the matching costs (costL0, costL1).
  • the weight prediction unit 3094 derives the weight prediction image predSamples [x] [y] using the weighted motion compensation images (predSamplesL0 [x] [y], predSamplesL1 [x] [y]) as shown in the following equation. .
  • predSamples [x] [y] (w0 * predSamplesL0 [x] [y] + w1 + predSamplesL1 [x] [y] + roundoffset) >> shift Note that the derivation example described in the above “derivation of weight prediction image using matching cost in BTM” can be applied to the weight derivation performed by the weight prediction unit 3094. Omitted.
  • the motion compensation unit 3091 performs motion compensation using Bi-directional optical flow (bi-predictive gradient change: BIO) prediction that performs motion correction by applying a gradient correction term to bi-prediction (BiPred). It has a mode to do.
  • Bi-directional optical flow bi-predictive gradient change: BIO
  • the motion compensation unit 3091 performs BIO prediction ON / OFF control according to the matching cost in BTM. For example, the motion compensation unit 3091 receives the matching cost (costL0, costL1) from the BTM processing unit 3038. The motion compensation unit 3091 controls ON / OF of BIO prediction according to the cost ratio between costL0 and costL1.
  • the BTM processing unit 3038 performs a matching process using bilateral template matching (BTM), and derives a difference (matching cost) between the motion compensated image predicted from the template in a plurality of reference pictures and the template. .
  • BTM bilateral template matching
  • the motion compensation unit 3091 performs motion compensation by bi-predictive gradient change (BIO) prediction that performs motion compensation by applying a gradient correction term to bilateral template matching (BTM).
  • BIO bi-predictive gradient change
  • BTM bilateral template matching
  • the motion compensation unit 3091 controls ON / OFF of BIO prediction according to a ratio of a difference (matching cost) between a motion compensated image predicted from a template in a plurality of reference pictures and the template.
  • the matching cost of the motion compensated image derived in the bilateral template matching can be effectively used for deriving the predicted image. Then, ON / OFF of the BIO prediction can be controlled according to the matching cost ratio of the motion compensation image.
  • FIG. 25 is a diagram illustrating an example of pseudo code indicating processing of the motion compensation unit 3091.
  • the motion compensation unit 3091 turns off BIO prediction when the cost ratio is large, and turns on BIO prediction in other cases.
  • the determination of the cost ratio may be performed, for example, by comparing costL0 and costL1 as shown in the following equation.
  • the motion compensation unit 3091 controls the BIO prediction to be OFF when the matching cost ratio is larger than a predetermined value.
  • BIO prediction is inappropriate.
  • the BIO prediction when the matching cost ratio is larger than a predetermined value, the BIO prediction can be controlled to be OFF.
  • the motion compensation unit 3091 may turn on the BIO even if the cost ratio is large.
  • the following formula may be used for determining that the cost is large, using the block width and height as blkW and blkH.
  • the motion compensation unit 3091 controls BIO prediction to be ON when the sum of matching costs is smaller than a predetermined value.
  • BIO prediction is preferred.
  • the BIO prediction when the sum of the matching costs is smaller than a predetermined value, the BIO prediction can be controlled to be ON.
  • the image coding apparatus 11 may implement
  • LSI Large Scale Integration
  • Each functional block of the image encoding device 11 and the image decoding device 31 may be individually made into a processor, or a part or all of them may be integrated into a processor.
  • the method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, in the case where an integrated circuit technology that replaces LSI appears due to progress in semiconductor technology, an integrated circuit based on the technology may be used.
  • the image encoding device 11 and the image decoding device 31 described above can be used by being mounted on various devices that perform transmission, reception, recording, and reproduction of moving images.
  • the moving image may be a natural moving image captured by a camera or the like, or an artificial moving image (including CG and GUI) generated by a computer or the like.
  • the image encoding device 11 and the image decoding device 31 described above can be used for transmission and reception of moving images.
  • FIG. 26 is a block diagram showing a configuration of a transmission device PROD_A in which the image encoding device 11 is mounted.
  • the transmission apparatus PROD_A modulates a carrier wave with an encoding unit PROD_A1 that obtains encoded data by encoding a moving image, and with the encoded data obtained by the encoding unit PROD_A1.
  • a modulation unit PROD_A2 that obtains a modulation signal and a transmission unit PROD_A3 that transmits the modulation signal obtained by the modulation unit PROD_A2 are provided.
  • the above-described image encoding device 11 is used as the encoding unit PROD_A1.
  • Transmission device PROD_A as a source of moving images to be input to the encoding unit PROD_A1, a camera PROD_A4 that captures moving images, a recording medium PROD_A5 that records moving images, an input terminal PROD_A6 for inputting moving images from the outside, and An image processing unit A7 that generates or processes an image may be further provided.
  • FIG. 26A illustrates a configuration in which the transmission apparatus PROD_A includes all of these, but some of them may be omitted.
  • the recording medium PROD_A5 may be a recording of a non-encoded moving image, or a recording of a moving image encoded by a recording encoding scheme different from the transmission encoding scheme. It may be a thing. In the latter case, a decoding unit (not shown) for decoding the encoded data read from the recording medium PROD_A5 in accordance with the recording encoding method may be interposed between the recording medium PROD_A5 and the encoding unit PROD_A1.
  • FIG. 26 is a block diagram illustrating a configuration of the receiving device PROD_B in which the image decoding device 31 is mounted.
  • the receiving device PROD_B includes a receiving unit PROD_B1 that receives a modulated signal, a demodulating unit PROD_B2 that obtains encoded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a demodulator.
  • a decoding unit PROD_B3 that obtains a moving image by decoding the encoded data obtained by the unit PROD_B2.
  • the above-described image decoding device 31 is used as the decoding unit PROD_B3.
  • the receiving device PROD_B is a display destination PROD_B4 for displaying a moving image, a recording medium PROD_B5 for recording a moving image, and an output terminal for outputting the moving image to the outside as a supply destination of the moving image output by the decoding unit PROD_B3 PROD_B6 may be further provided.
  • FIG. 26B illustrates a configuration in which the reception apparatus PROD_B includes all of these, but a part of the configuration may be omitted.
  • the recording medium PROD_B5 may be used for recording a non-encoded moving image, or is encoded using a recording encoding method different from the transmission encoding method. May be. In the latter case, an encoding unit (not shown) for encoding the moving image acquired from the decoding unit PROD_B3 according to the recording encoding method may be interposed between the decoding unit PROD_B3 and the recording medium PROD_B5.
  • the transmission medium for transmitting the modulation signal may be wireless or wired.
  • the transmission mode for transmitting the modulated signal may be broadcasting (here, a transmission mode in which the transmission destination is not specified in advance) or communication (here, transmission in which the transmission destination is specified in advance). Refers to the embodiment). That is, the transmission of the modulation signal may be realized by any of wireless broadcasting, wired broadcasting, wireless communication, and wired communication.
  • a terrestrial digital broadcast broadcasting station (broadcasting equipment, etc.) / Receiving station (such as a television receiver) is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by wireless broadcasting.
  • a broadcasting station (such as broadcasting equipment) / receiving station (such as a television receiver) of cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by cable broadcasting.
  • a server workstation, etc.
  • Client television receiver, personal computer, smartphone, etc.
  • VOD Video On Demand
  • video sharing service using the Internet is a transmission device that transmits and receives modulated signals via communication.
  • PROD_A / receiving device PROD_B normally, either a wireless or wired transmission medium is used in a LAN, and a wired transmission medium is used in a WAN.
  • the personal computer includes a desktop PC, a laptop PC, and a tablet PC.
  • the smartphone also includes a multi-function mobile phone terminal.
  • the video sharing service client has a function of encoding a moving image captured by the camera and uploading it to the server. That is, the client of the video sharing service functions as both the transmission device PROD_A and the reception device PROD_B.
  • FIG. 27A is a block diagram showing a configuration of a recording apparatus PROD_C in which the above-described image encoding device 11 is mounted.
  • the recording apparatus PROD_C includes an encoding unit PROD_C1 that obtains encoded data by encoding a moving image, and the encoded data obtained by the encoding unit PROD_C1 on a recording medium PROD_M.
  • the above-described image encoding device 11 is used as the encoding unit PROD_C1.
  • the recording medium PROD_M may be of a type built into the recording device PROD_C, such as (1) HDD (Hard Disk Drive) or SSD (Solid State Drive), or (2) SD memory. It may be of the type connected to the recording device PROD_C, such as a card or USB (Universal Serial Bus) flash memory, or (3) DVD (Digital Versatile Disc) or BD (Blu-ray Disc: registration) Or a drive device (not shown) built in the recording device PROD_C.
  • HDD Hard Disk Drive
  • SSD Solid State Drive
  • SD memory such as a card or USB (Universal Serial Bus) flash memory, or (3) DVD (Digital Versatile Disc) or BD (Blu-ray Disc: registration) Or a drive device (not shown) built in the recording device PROD_C.
  • the recording device PROD_C is a camera PROD_C3 that captures moving images as a source of moving images to be input to the encoding unit PROD_C1, an input terminal PROD_C4 for inputting moving images from the outside, and a reception for receiving moving images
  • a unit PROD_C5 and an image processing unit PROD_C6 for generating or processing an image may be further provided.
  • FIG. 27A illustrates a configuration in which the recording apparatus PROD_C includes all of these, but some of them may be omitted.
  • the receiving unit PROD_C5 may receive a non-encoded moving image, or may receive encoded data encoded by a transmission encoding scheme different from the recording encoding scheme. You may do. In the latter case, a transmission decoding unit (not shown) that decodes encoded data encoded by the transmission encoding method may be interposed between the reception unit PROD_C5 and the encoding unit PROD_C1.
  • Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, an HDD (Hard Disk Drive) recorder, and the like (in this case, the input terminal PROD_C4 or the receiver PROD_C5 is a main source of moving images). .
  • a camcorder in this case, the camera PROD_C3 is a main source of moving images
  • a personal computer in this case, the receiving unit PROD_C5 or the image processing unit C6 is a main source of moving images
  • a smartphone this In this case, the camera PROD_C3 or the reception unit PROD_C5 is a main source of moving images
  • the like is also an example of such a recording apparatus PROD_C.
  • FIG. 27 is a block diagram showing a configuration of a playback device PROD_D equipped with the image decoding device 31 described above.
  • the playback device PROD_D reads a moving image by decoding a read unit PROD_D1 that reads encoded data written on the recording medium PROD_M and a read unit PROD_D1 that reads the encoded data. And a decoding unit PROD_D2 to obtain.
  • the above-described image decoding device 31 is used as the decoding unit PROD_D2.
  • the recording medium PROD_M may be of the type built into the playback device PROD_D, such as (1) HDD or SSD, or (2) such as an SD memory card or USB flash memory. It may be of the type connected to the playback device PROD_D, or (3) may be loaded into a drive device (not shown) built in the playback device PROD_D, such as a DVD or BD. Good.
  • the playback device PROD_D has a display unit PROD_D3 that displays a moving image as a supply destination of the moving image output by the decoding unit PROD_D2, an output terminal PROD_D4 that outputs the moving image to the outside, and a transmission unit that transmits the moving image.
  • PROD_D5 may be further provided.
  • FIG. 27B illustrates a configuration in which the playback apparatus PROD_D includes all of these, but some of them may be omitted.
  • the transmission unit PROD_D5 may transmit a non-encoded moving image, or transmits encoded data encoded by a transmission encoding scheme different from the recording encoding scheme. You may do. In the latter case, it is preferable to interpose an encoding unit (not shown) that encodes a moving image using a transmission encoding method between the decoding unit PROD_D2 and the transmission unit PROD_D5.
  • Examples of such a playback device PROD_D include a DVD player, a BD player, and an HDD player (in this case, an output terminal PROD_D4 to which a television receiver or the like is connected is a main moving image supply destination). .
  • a television receiver in this case, the display PROD_D3 is a main supply destination of moving images
  • a digital signage also referred to as an electronic signboard or an electronic bulletin board
  • the display PROD_D3 or the transmission unit PROD_D5 is the main supply of moving images
  • Desktop PC in this case, output terminal PROD_D4 or transmission unit PROD_D5 is the main video source
  • laptop or tablet PC in this case, display PROD_D3 or transmission unit PROD_D5 is video
  • a smartphone which is a main image supply destination
  • a smartphone in this case, the display PROD_D3 or the transmission unit PROD_D5 is a main moving image supply destination
  • the like are also examples of such a playback device PROD_D.
  • Each block of the image decoding device 31 and the image encoding device 11 described above may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip), or may be a CPU (Central Processing Unit). You may implement
  • IC chip integrated circuit
  • CPU Central Processing Unit
  • each of the above devices includes a CPU that executes instructions of a program that realizes each function, a ROM (Read Memory) that stores the program, a RAM (RandomAccess Memory) that develops the program, the program, and various data.
  • a storage device such as a memory for storing the.
  • the object of the embodiment of the present invention is a record in which the program code (execution format program, intermediate code program, source program) of the control program for each of the above devices, which is software that realizes the above-described functions, is recorded in a computer-readable manner This can also be achieved by supplying a medium to each of the above devices, and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU).
  • Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, CD-ROMs (Compact Disc Read-Only Memory) / MO discs (Magneto-Optical discs).
  • tapes such as magnetic tapes and cassette tapes
  • magnetic disks such as floppy (registered trademark) disks / hard disks
  • CD-ROMs Compact Disc Read-Only Memory
  • MO discs Magnetic-Optical discs
  • IC cards including memory cards
  • Cards such as optical cards
  • Semiconductor memories such as flash ROM, or PLD (Programmable logic device ) Or FPGA (Field Programmable Gate Gate Array) or the like.
  • each of the above devices may be configured to be connectable to a communication network, and the program code may be supplied via the communication network.
  • the communication network is not particularly limited as long as it can transmit the program code.
  • Internet intranet, extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value-Added Network), CATV (Community Area Antenna / television / Cable Television), Virtual Private Network (Virtual Private Network) Network), telephone line network, mobile communication network, satellite communication network, and the like.
  • the transmission medium constituting the communication network may be any medium that can transmit the program code, and is not limited to a specific configuration or type.
  • IEEE Institute of Electrical and Electronic Engineers 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, etc. wired such as IrDA (Infrared Data Association) or remote control , BlueTooth (registered trademark), IEEE802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (Digital Living Network Alliance: registered trademark), mobile phone network, satellite line, terrestrial digital broadcasting network, etc. It can also be used wirelessly.
  • the embodiment of the present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

Abstract

Le but de la présente invention est d'utiliser efficacement le coût d'appariement d'une image compensée en mouvement. Une unité de décodage de paramètre de prédiction inter (303) comprend : une unité de traitement BTM (3038) qui effectue un appariement à l'aide d'un BTM ou d'un TM et dérive un coût d'appariement d'une image compensée en mouvement ; et une unité de prédiction de poids (3094) qui définit un coefficient de pondération pour chacune des images compensées en mouvement conformément au coût d'appariement et dérive l'image prédite à l'aide des images compensées en mouvement pondérées.
PCT/JP2018/010058 2017-03-21 2018-03-14 Dispositif de génération d'image prédite, dispositif de décodage vidéo et dispositif de codage vidéo WO2018173895A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017055101 2017-03-21
JP2017-055101 2017-03-21

Publications (1)

Publication Number Publication Date
WO2018173895A1 true WO2018173895A1 (fr) 2018-09-27

Family

ID=63584566

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/010058 WO2018173895A1 (fr) 2017-03-21 2018-03-14 Dispositif de génération d'image prédite, dispositif de décodage vidéo et dispositif de codage vidéo

Country Status (1)

Country Link
WO (1) WO2018173895A1 (fr)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020137643A1 (fr) * 2018-12-28 2020-07-02 ソニー株式会社 Dispositif et procédé de traitement d'image
JPWO2019151284A1 (ja) * 2018-01-30 2021-01-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America 符号化装置、復号装置、符号化方法及び復号方法
CN113170190A (zh) * 2018-12-12 2021-07-23 夏普株式会社 预测图像生成装置、运动图像解码装置、运动图像编码装置以及预测图像生成方法
CN113692743A (zh) * 2019-03-13 2021-11-23 Lg 电子株式会社 基于dmvr的帧间预测方法和设备
JP2022502924A (ja) * 2018-09-26 2022-01-11 ヴィド スケール インコーポレイテッド ビデオコーディングのための双予測
JP2022521748A (ja) * 2019-02-22 2022-04-12 ホアウェイ・テクノロジーズ・カンパニー・リミテッド オプティカルフローの改善の早期終了
US11985320B2 (en) 2019-02-22 2024-05-14 Huawei Technologies Co., Ltd. Early termination for optical flow refinement

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160286229A1 (en) * 2015-03-27 2016-09-29 Qualcomm Incorporated Motion vector derivation in video coding

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160286229A1 (en) * 2015-03-27 2016-09-29 Qualcomm Incorporated Motion vector derivation in video coding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHEN, JIANLE ET AL.: "Algorithm Description of Joint Exploration Test Model 5", JOINT VIDEO EXPLORATION TEAM(JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG11 5TH MEETING, 20 January 2017 (2017-01-20), Geneva, CH, pages 21 - 27 *
ROBERT, A. ET AL.: "High precision FRUC with additional candidates", JOINT VIDEO EXPLORATION TEAM(JVET) OF ITU- T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG11 4TH MEETING, 21 October 2016 (2016-10-21), Chengdu, CN, pages 1 - 7 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7315480B2 (ja) 2018-01-30 2023-07-26 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ 符号化装置、復号装置、符号化方法及び復号方法
JPWO2019151284A1 (ja) * 2018-01-30 2021-01-28 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America 符号化装置、復号装置、符号化方法及び復号方法
US11895322B2 (en) 2018-01-30 2024-02-06 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11895323B2 (en) 2018-01-30 2024-02-06 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11889103B2 (en) 2018-01-30 2024-01-30 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11889105B2 (en) 2018-01-30 2024-01-30 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
US11889104B2 (en) 2018-01-30 2024-01-30 Panasonic Intellectual Property Corporation Of America Encoder, decoder, encoding method, and decoding method
JP2022502924A (ja) * 2018-09-26 2022-01-11 ヴィド スケール インコーポレイテッド ビデオコーディングのための双予測
JP7398442B2 (ja) 2018-09-26 2023-12-14 ヴィド スケール インコーポレイテッド ビデオコーディングのための双予測
CN113170190A (zh) * 2018-12-12 2021-07-23 夏普株式会社 预测图像生成装置、运动图像解码装置、运动图像编码装置以及预测图像生成方法
JP7414008B2 (ja) 2018-12-28 2024-01-16 ソニーグループ株式会社 画像処理装置および方法
WO2020137643A1 (fr) * 2018-12-28 2020-07-02 ソニー株式会社 Dispositif et procédé de traitement d'image
CN114845102B (zh) * 2019-02-22 2023-07-07 华为技术有限公司 光流修正的提前终止
JP7271697B2 (ja) 2019-02-22 2023-05-11 ホアウェイ・テクノロジーズ・カンパニー・リミテッド オプティカルフローの改善の早期終了
CN114845102A (zh) * 2019-02-22 2022-08-02 华为技术有限公司 光流修正的提前终止
JP2022521748A (ja) * 2019-02-22 2022-04-12 ホアウェイ・テクノロジーズ・カンパニー・リミテッド オプティカルフローの改善の早期終了
US11985320B2 (en) 2019-02-22 2024-05-14 Huawei Technologies Co., Ltd. Early termination for optical flow refinement
CN113692743A (zh) * 2019-03-13 2021-11-23 Lg 电子株式会社 基于dmvr的帧间预测方法和设备
CN113692743B (zh) * 2019-03-13 2024-02-23 Lg 电子株式会社 基于dmvr的帧间预测方法和设备

Similar Documents

Publication Publication Date Title
JP7421586B2 (ja) 復号装置および符号化装置
JP7026049B2 (ja) アフィン動きベクトル導出装置、予測画像生成装置、動画像復号装置、および動画像符号化装置
WO2018110203A1 (fr) Appareil de décodage d'images animées et appareil de codage d'images animées
WO2017195554A1 (fr) Dispositif de génération d'image prédite, dispositif de décodage de vidéo et dispositif de codage de vidéo
US11722690B2 (en) Motion vector generation device, a prediction image generation device, a video decoding device and a video coding device
WO2018199001A1 (fr) Dispositif de décodage d'image et dispositif de codage d'image
WO2018230493A1 (fr) Dispositif de décodage vidéo, dispositif de codage vidéo, dispositif de génération d'image de prévision et dispositif de dérivation de vecteur de mouvement
WO2018173895A1 (fr) Dispositif de génération d'image prédite, dispositif de décodage vidéo et dispositif de codage vidéo
WO2017195608A1 (fr) Dispositif de codage d'image animée
WO2018110180A1 (fr) Dispositif de génération de vecteur de mouvement, dispositif de génération d'image prédite, dispositif de décodage d'image animée, et dispositif de codage d'image animée
WO2020184487A1 (fr) Dispositif de décodage d'image dynamique
WO2020116456A1 (fr) Dispositif de décodage d'image mobile
WO2020059877A1 (fr) Dispositif de décodage d'image et dispositif de codage d'image
WO2019139013A1 (fr) Dispositif d'élaboration de vecteurs de mouvement, dispositif de décodage d'images animées, et dispositif de codage d'images animées
WO2017135151A1 (fr) Dispositif de génération d'image prédictive, dispositif de décodage d'image en mouvement et dispositif de codage d'image en mouvement
JP2020043500A (ja) 動画像符号化装置及び動画像復号装置
WO2018173432A1 (fr) Dispositif de génération d'image prédictive, dispositif de décodage d'image en mouvement et dispositif d'encodage d'image en mouvement
JP2020036101A (ja) 画像復号装置および画像符号化装置
JP2020108012A (ja) 画像復号装置および画像符号化装置
JP2020145650A (ja) 画像復号装置および画像符号化装置
JP2020088660A (ja) 動画像符号化装置、動画像復号装置
WO2018061550A1 (fr) Dispositif de décodage d'image et dispositif de codage d'image
JP2020096279A (ja) 予測画像生成装置、動画像復号装置および動画像符号化装置
JP2019201254A (ja) 画像復号装置、および画像符号化装置
WO2018037919A1 (fr) Dispositif de décodage d'image, dispositif de codage d'image, procédé de décodage d'image et procédé de codage d'image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18771988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18771988

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP