WO2019031410A1 - 画像フィルタ装置、画像復号装置、および画像符号化装置 - Google Patents

画像フィルタ装置、画像復号装置、および画像符号化装置 Download PDF

Info

Publication number
WO2019031410A1
WO2019031410A1 PCT/JP2018/029247 JP2018029247W WO2019031410A1 WO 2019031410 A1 WO2019031410 A1 WO 2019031410A1 JP 2018029247 W JP2018029247 W JP 2018029247W WO 2019031410 A1 WO2019031410 A1 WO 2019031410A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
parameter
filter
prediction
cnn
Prior art date
Application number
PCT/JP2018/029247
Other languages
English (en)
French (fr)
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 シャープ株式会社
Priority to JP2019535621A priority Critical patent/JP7260472B2/ja
Priority to CN202310118912.8A priority patent/CN116170590A/zh
Priority to US16/636,669 priority patent/US11631199B2/en
Priority to CN201880051253.8A priority patent/CN111373751B/zh
Publication of WO2019031410A1 publication Critical patent/WO2019031410A1/ja
Priority to JP2023062262A priority patent/JP2023076688A/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/002Image coding using neural networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4046Scaling of whole images or parts thereof, e.g. expanding or contracting using neural networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/117Filters, e.g. for pre-processing or post-processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks

Definitions

  • One aspect of the present invention relates to an image filter device, an image decoding device, and an image coding device.
  • a moving picture coding apparatus that generates coded data by coding a moving picture to efficiently transmit or record a moving picture, and a moving picture that generates a decoded picture by decoding the coded data.
  • An image decoding device is used.
  • HEVC High-Efficiency Video Coding
  • an image (picture) constituting a moving picture is a slice obtained by dividing the image, a coding tree unit obtained by dividing the slice (CTU: Coding Tree Unit)
  • a coding unit obtained by dividing a coding tree unit (sometimes called a coding unit (CU))
  • a prediction unit which is a block obtained by dividing a coding unit It is managed by the hierarchical structure which consists of (PU) and a transform unit (TU), and is encoded / decoded per CU.
  • a predicted picture is usually generated based on a locally decoded picture obtained by coding / decoding an input picture, and the predicted picture is generated from the input picture (original picture).
  • the prediction residual obtained by subtraction (sometimes referred to as "difference image” or "residual image") is encoded.
  • inter prediction inter prediction
  • intra-screen prediction intra prediction
  • Non-Patent Document 1 can be cited as a technology for moving picture encoding and decoding in recent years.
  • Non-Patent Document 2 can be cited as a technique using a neural network called Variable-filter-size Residue-learning CNN (VRCNN).
  • VRCNN Variable-filter-size Residue-learning CNN
  • the filter technology using the above-mentioned neural network only switches the entire network according to the quantization parameter, and there is a problem that the network scale becomes large when applying the filter according to the characteristic of the input image data.
  • a filter suitable for encoding for each area can not be applied.
  • the present invention has been made in view of the above problems, and its object is to realize the application of a filter according to image characteristics while suppressing the network scale to input image data as compared with the conventional configuration. It is in.
  • the image filter device uses one or a plurality of first type input image data whose luminance or color difference is a pixel value, and a reference for generating a prediction image and a difference image.
  • a neural network which receives one or more second type of input image data having a pixel value as a value corresponding to a parameter, and outputs one or more first type of output image data having a luminance or color difference as a pixel value Is equipped.
  • an image filter device concerning the present invention is provided with a plurality of individual neural networks and a common neural network, and the above-mentioned individual neural network is a filter parameter in input image data to the image filter device concerned.
  • the common neural network works in common on the output image data of the individual neural network regardless of the value of the filter parameter .
  • an image filter device includes a plurality of individual neural networks and a common neural network, and the common neural network acts on input image data to the image filter device.
  • the individual neural network selectively acts on the output image data of the common neural network according to the value of the filter parameter in the input image data.
  • a filter according to image characteristics can be applied to input image data.
  • FIG. 1 It is a figure which shows the hierarchical structure of the data of the coding stream which concerns on this embodiment. It is a figure which shows the pattern of PU split mode. (A) to (h) show the partition shapes when the PU division mode is 2Nx2N, 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and NxN, respectively. It 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 1st Embodiment. It is the schematic which shows the structure of the image decoding apparatus which concerns on 1st Embodiment.
  • (A) shows a transmitting apparatus equipped with an image coding apparatus, and (b) shows a receiving apparatus equipped with an image decoding apparatus. It is the figure shown about the recording device carrying the picture coding device concerning this embodiment, and the composition of the reproduction device carrying a picture decoding device.
  • (A) shows a recording apparatus equipped with an image coding apparatus, and (b) shows a reproduction apparatus equipped with an image decoding apparatus.
  • FIG. 33 is a schematic view 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 coding an image to be coded, decodes the transmitted code, and displays the image.
  • the image transmission system 1 includes an image coding device 11, a network 21, an image decoding device 31, and an image display device 41.
  • An image T representing an image of a single layer or a plurality of layers is input to the image coding device 11.
  • a layer is a concept used to distinguish a plurality of pictures when there is one or more pictures that constitute a certain time. For example, if the same picture is encoded by a plurality of layers having different image quality and resolution, it becomes scalable coding, and if a picture of different viewpoints is encoded by a plurality of layers, it becomes view scalable coding.
  • prediction inter-layer prediction, inter-view prediction
  • encoded data can be summarized.
  • 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), a small area network (LAN), or a combination of these.
  • the network 21 is not necessarily limited to a two-way communication network, and may be a one-way communication network for transmitting broadcast waves such as terrestrial digital broadcasting and satellite broadcasting.
  • the network 21 may be replaced by a storage medium recording a coded stream Te such as a DVD (Digital Versatile Disc) or a BD (Blue-ray Disc).
  • the image decoding apparatus 31 decodes each of the encoded streams Te transmitted by the network 21 and generates one or more decoded images Td which are respectively decoded.
  • the image display device 41 displays all or a 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 display device such as a liquid crystal display or an organic EL (Electro-luminescence) display.
  • SNR scalable coding when the image decoding device 31 and the image display device 41 have high processing capabilities, they display enhancement layer images with high image quality and have only lower processing capabilities.
  • the base layer image which does not require the processing capability and the display capability as high as the enhancement layer.
  • X? Y: z is a ternary operator that takes y if x is true (other than 0) and z if x is false (0).
  • FIG. 1 is a diagram showing a hierarchical structure of data in a coded stream Te.
  • the coded stream Te illustratively includes a sequence and a plurality of pictures forming the sequence.
  • (A) to (f) in FIG. 1 respectively represent a coded video sequence defining the sequence SEQ, a coded picture defining the picture PICT, a coding slice defining the slice S, and a coding slice defining slice data.
  • It is a figure which shows a coding tree unit contained in data, coding slice data, and a coding unit (Coding Unit; CU) contained in a coding tree unit.
  • CU coding unit
  • the encoded video sequence In the encoded video sequence, a set of data to which the image decoding device 31 refers in order to decode the sequence SEQ to be processed is defined.
  • 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. It includes supplemental information SEI (Supplemental Enhancement Information).
  • SEI Supplemental Enhancement Information
  • the value shown after # indicates a layer ID.
  • FIG. 1 shows an example in which coded data of # 0 and # 1, that is, layer 0 and layer 1 exist, the type of layer and the number of layers do not depend on this.
  • a video parameter set VPS is a set of coding parameters common to a plurality of moving pictures and a set of coding parameters related to the plurality of layers included in the moving picture and each layer in a moving picture composed of a plurality of layers.
  • a set is defined.
  • sequence parameter set SPS a set of coding parameters to be referred to by the image decoding device 31 for decoding the target sequence is defined.
  • the width and height of the picture are defined.
  • multiple SPS may exist. In that case, one of a plurality of SPSs is selected from PPS.
  • a set of coding parameters to which the image decoding device 31 refers to to decode each picture in the target sequence is defined. For example, a reference value of quantization width (pic_init_qp_minus 26) used for decoding a picture and a flag (weighted_pred_flag) indicating application of weighted prediction are included.
  • multiple PPS may exist. In that case, one of a plurality of PPSs is selected from each picture in the target sequence.
  • the picture PICT includes slices S0 to SNS-1 (NS is the total number of slices included in the picture PICT), as shown in (b) of FIG.
  • the slice S includes a slice header SH and slice data SDATA as shown in (c) of FIG.
  • the slice header SH includes a coding parameter group to which the image decoding device 31 refers in order to determine the decoding method of the target slice.
  • the slice type specification information (slice_type) for specifying a slice type is an example of a coding parameter included in the slice header SH.
  • slice types that can be designated by slice type designation information, (1) I slice using only intra prediction at the time of encoding, (2) P slice using unidirectional prediction at the time of encoding or intra prediction, (3) B-slice using uni-directional prediction, bi-directional prediction, or intra prediction at the time of encoding.
  • 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: Coding Tree Unit), as shown in (d) of FIG.
  • the CTU is a block of a fixed size (for example, 64 ⁇ 64) that configures a slice, and may also be referred to as a largest coding unit (LCU: Largest Coding Unit).
  • Encoding tree unit As shown in (e) of FIG. 1, a set of data to which the image decoding device 31 refers in order to decode a coding 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 division is called a coding node (CN).
  • the intermediate nodes of the quadtree are coding nodes, and the coding tree unit itself is also defined as the top coding node.
  • the CTU includes a split flag (cu_split_flag), and when cu_split_flag is 1, the CTU is split into four coding nodes CN.
  • the coding node CN is not split, and has one coding unit (CU: Coding Unit) as a node.
  • the coding unit CU is an end node of the coding node and is not further divided.
  • the coding unit CU is a basic unit of coding processing.
  • the size of the coding unit can be 64x64 pixels, 32x32 pixels, 16x16 pixels, or 8x8 pixels.
  • a set of data to which the image decoding device 31 refers in order to decode a coding unit to be processed is defined.
  • the coding unit is composed of a prediction tree, a transformation tree, and a CU header CUH.
  • a prediction mode, a division method (PU division mode), and the like are defined.
  • prediction information (reference picture index, motion vector, etc.) of each prediction unit (PU) obtained by dividing the coding unit into one or more is defined.
  • a prediction unit is one or more non-overlapping regions that make up a coding unit.
  • the prediction tree includes one or more prediction units obtained by the above-mentioned division.
  • segmented the prediction unit further is called a "subblock.”
  • the sub block is composed of a plurality of pixels. If the size of the prediction unit and the subblock is equal, there is one subblock in the prediction unit. If the prediction unit is larger than the size of the subblock, the prediction unit is divided into subblocks. For example, when the prediction unit is 8x8 and the subblock is 4x4, the prediction unit is divided into four subblocks, which are horizontally divided into two and vertically divided into two.
  • the prediction process may be performed for each prediction unit (sub block).
  • Intra prediction is prediction in the same picture
  • inter prediction refers to prediction processing performed between mutually different pictures (for example, between display times, between layer images).
  • the division method is encoded according to PU division mode (part_mode) of encoded data, 2Nx2N (the same size as the encoding unit), 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and There are NxN etc.
  • 2NxN and Nx2N indicate 1: 1 symmetric division
  • 2NxnU, 2NxnD and nLx2N and nRx2N indicate 1: 3 and 3: 1 asymmetric division.
  • the PUs included in the CU are expressed as PU0, PU1, PU2, PU3 in order.
  • FIG. 2 specifically illustrate the shapes of partitions (positions of boundaries of PU division) in respective PU division modes.
  • A) of FIG. 2 shows a 2Nx2N partition
  • (b) and (c) and (d) show 2NxN, 2NxnU, and 2NxnD partitions (horizontally long partitions), respectively.
  • (E), (f) and (g) show partitions (vertical partitions) in the case of Nx2N, nLx2N and nRx2N, respectively
  • (h) shows a partition of NxN. Note that the horizontally long partition and the vertically long partition are collectively referred to as a rectangular partition, and 2Nx2N and NxN are collectively referred to as a square partition.
  • the coding unit is divided into one or more transform units, and the position and size of each transform unit are defined.
  • a transform unit is one or more non-overlapping regions that make up a coding unit.
  • the transformation tree includes one or more transformation units obtained by the above-mentioned division.
  • Partitions in the transform tree may be allocated as a transform unit a region of the same size as the encoding unit, or may be based on recursive quadtree partitioning as in the case of CU partitioning described above.
  • a conversion process is performed for each conversion unit.
  • the prediction image of a prediction unit is derived by prediction parameters associated with PU.
  • the prediction parameters include intra prediction prediction parameters or inter prediction prediction parameters.
  • prediction parameters for inter prediction inter prediction (inter prediction parameters) will be described.
  • the inter 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 a reference picture list called an L0 list or an L1 list is used, respectively, and a reference picture list corresponding to a value of 1 is used.
  • a flag indicating whether or not it is XX if the flag is other than 0 (for example, 1) is XX, it is assumed that 0 is not XX; Treat 1 as true, 0 as false, and so on. However, in an actual apparatus or method, other values may be used as true values or false values.
  • Syntax elements for deriving inter prediction parameters included in encoded data include, for example, PU split mode part_mode, merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, predicted vector index mvp_LX_idx, There is a difference vector mvdLX.
  • the reference picture list is a list of reference pictures stored in the reference picture memory 306.
  • FIG. 3 is a conceptual diagram showing an example of a reference picture and a reference picture list.
  • the rectangle is a picture
  • the arrow is a reference of the picture
  • the horizontal axis is time
  • I, P and B in the rectangle are intra pictures, uni-predicted pictures, bi-predicted pictures, and numbers in the rectangle are decoded. Show the order.
  • the decoding order of pictures is I0, P1, B2, B3, B4, and the display order is I0, B3, B2, B4, B1, P1.
  • FIG. 3B shows an example of the reference picture list.
  • the reference picture list is a list representing reference picture candidates, 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.
  • Reference pictures when the target picture is B3 are I0, P1, and B2, and the reference pictures have these pictures as elements.
  • the reference picture index refIdxLX which picture in the reference picture list RefPicListX is actually referred to is designated by the reference picture index refIdxLX.
  • 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 used to be derived from the prediction parameter of the already processed neighboring PU without including the prediction list use flag predFlagLX (or inter prediction identifier inter_pred_idc), the reference picture index refIdxLX, and the motion vector mvLX in the encoded data.
  • the AMVP 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 that identifies the prediction vector mvpLX and a difference vector mvdLX.
  • the inter prediction identifier inter_pred_idc is a value indicating the type and the number of reference pictures, and takes any one of PRED_L0, PRED_L1, and PRED_BI.
  • PRED_L0 and PRED_L1 indicate that reference pictures managed by reference pictures in the L0 list and the L1 list are used, respectively, and indicate that one reference picture is used (uniprediction).
  • PRED_BI indicates using two reference pictures (bi-prediction BiPred), and uses reference pictures managed by the L0 list and the L1 list.
  • the predicted vector index mvp_LX_idx is an index indicating a predicted 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, and parameters for L0 list and parameters for L1 list are distinguished by replacing LX with L0 and L1.
  • Merge index merge_idx is an index which shows whether any prediction parameter is used as a prediction parameter of decoding object PU among the prediction parameter candidates (merge candidate) derived
  • the motion vector mvLX indicates the amount of deviation between blocks on two different pictures.
  • the prediction vector and the difference vector relating 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 usage flag predFlagLX The relationship between the inter prediction identifier inter_pred_idc, and the prediction list use flag predFlagL0, predFlagL1 is as follows, and can be mutually converted.
  • the inter prediction parameter may use a prediction list use flag or may use an inter prediction identifier. Further, the determination using the prediction list use flag may be replaced with the determination using the inter prediction identifier. Conversely, the determination using the inter prediction identifier may be replaced with the determination using the prediction list utilization flag.
  • the flag biPred of bi-prediction BiPred can be derived depending on whether both of the two prediction list use flags are 1. For example, it can be derived by the following equation.
  • the flag biPred can also be derived based 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 equation.
  • PRED_BI a value of 3
  • FIG. 5 is a schematic view showing the 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 (predictive image decoding device) 302, a CNN (Convolutional Neural Network) filter 305, a reference picture memory 306, a prediction parameter memory 307, and a prediction image generation unit A (predicted image generation device) 308, an inverse quantization / inverse transform unit 311, and an addition unit 312 are included.
  • the prediction parameter decoding unit 302 is configured to include 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 encoded stream Te input from the outside to separate and decode 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.
  • the part of the separated code includes, for example, quantization parameter (QP), prediction mode predMode, PU division 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, It is a difference vector mvdLX. Control of which code to decode is performed based on an instruction of the prediction parameter decoding unit 302.
  • the entropy decoding unit 301 outputs the quantization coefficient to the inverse quantization / inverse transform unit 311.
  • this quantization coefficient is applied to the residual signal by DCT (Discrete Cosine Transform, discrete cosine transform), DST (Discrete Sine Transform, discrete sine transform), KLT (Karyhnen Loeve Transform, Karhunen Loeve transform) Are coefficients obtained by performing frequency conversion such as.
  • DCT Discrete Cosine Transform, discrete cosine transform
  • DST Discrete Sine Transform, discrete sine transform
  • KLT Karyhnen Loeve Transform, Karhunen Loeve transform
  • the entropy decoding unit 301 outputs a part of the separated code to the CNN filter 305 described later.
  • the part of the separated code is, for example, a quantization parameter (QP), a prediction parameter, and depth information (division information).
  • 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 the inter prediction parameter in the prediction parameter memory 307.
  • the intra prediction parameter decoding unit 304 decodes the intra 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 intra prediction parameter is a parameter used in a process of predicting a CU in 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 for luminance and chrominance.
  • the intra prediction parameter decoding unit 304 decodes a luminance prediction mode IntraPredModeY as a luminance prediction parameter and a chrominance prediction mode IntraPredModeC as a chrominance prediction parameter.
  • the luminance prediction mode IntraPredModeY is a 35 mode, which corresponds to planar prediction (0), DC prediction (1), and directional prediction (2 to 34).
  • the color difference prediction mode IntraPredModeC uses one of planar prediction (0), DC prediction (1), direction prediction (2 to 34), and LM mode (35).
  • the intra prediction parameter decoding unit 304 decodes a flag indicating whether IntraPredModeC is the same mode as the luminance mode, and if it indicates that the flag is the same mode as the luminance mode, IntraPredModeY is assigned to IntraPredModeC, and the flag indicates the luminance If intra mode is different from the mode, planar prediction (0), DC prediction (1), direction prediction (2 to 34), or LM mode (35) may be decoded as IntraPredModeC.
  • the CNN filter 305 acquires the quantization parameter and the prediction parameter from the entropy decoding unit 301, sets the decoded image of the CU generated by the addition unit 312 as an input image (pre-filter image), processes the unfiltered image, and outputs Output an image (filtered image).
  • the CNN filter 305 has the same function as the CNN filter 107 included in the image coding device 11 described later.
  • the reference picture memory 306 stores the decoded image of the CU generated by the adding unit 312 in a predetermined position for each picture and CU to be decoded.
  • the prediction parameter memory 307 stores prediction parameters in a predetermined position for each picture to be decoded and each 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 inter prediction parameters to be stored include, for example, a prediction list use 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 also receives a prediction parameter from the prediction parameter decoding unit 302. Further, the predicted image generation unit 308 reads the reference picture from the reference picture memory 306. The prediction image generation unit 308 generates a prediction image of a PU or a sub block using the input prediction parameter and the read reference picture (reference picture block) in the prediction mode indicated by the prediction mode predMode.
  • the inter prediction image generation unit 309 performs inter prediction using the inter prediction parameter input from the inter prediction parameter decoding unit 303 and the read reference picture (reference picture block). Generates a predicted image of PU or subblock according to.
  • the inter-predicted image generation unit 309 uses the reference picture index refIdxLX for the reference picture list (L0 list or L1 list) in which the prediction list use flag predFlagLX is 1, and the motion vector based on the PU to be decoded
  • the reference picture block at the position indicated by mvLX is read out 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 PU prediction image.
  • the inter prediction image generation unit 309 outputs the generated prediction image of PU to the addition unit 312.
  • the reference picture block is a set of pixels on the reference picture (usually referred to as a block because it is a rectangle), and is an area to be referenced to generate a predicted image of PU or sub block.
  • the intra prediction image generation unit 310 When the prediction mode predMode indicates the intra prediction mode, the intra prediction 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 which are pictures to be decoded and which are in a predetermined range from the PU to be decoded among PUs already 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 varies depending on the intra prediction mode.
  • the order of raster scan is an order of sequentially moving from the left end to the right end for each row from the top to the bottom in each picture.
  • the intra prediction image generation unit 310 performs prediction in the prediction mode indicated by the intra prediction mode IntraPredMode based on the read adjacent PU, and generates a PU prediction image.
  • the intra predicted image generation unit 310 outputs the generated predicted image of PU to the addition unit 312.
  • the intra prediction image generation unit 310 determines planar prediction (0), DC prediction (1), direction according to the luminance prediction mode IntraPredMode Y.
  • a prediction image of PU of luminance 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.
  • the prediction image of color difference PU is generated by any of (35).
  • the inverse quantization / inverse transform unit 311 inversely quantizes the quantization coefficient input from the entropy decoding unit 301 to obtain a transform coefficient.
  • the inverse quantization / inverse transform unit 311 performs inverse frequency transform such as inverse DCT, inverse DST, and inverse KLT on the obtained transform coefficient to calculate a residual signal.
  • the inverse quantization / inverse transform unit 311 outputs the calculated residual signal to the addition unit 312.
  • the addition unit 312 adds, for each pixel, the PU prediction image 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, Generate a PU decoded image.
  • the addition unit 312 stores the generated PU decoded image in the reference picture memory 306, and externally outputs a decoded image Td in which the generated PU decoded image is integrated for each picture.
  • FIG. 7 is a schematic diagram showing a configuration of the inter predicted image generation unit 309 included in the predicted image generation unit 308 according to the present embodiment.
  • the inter predicted image generation unit 309 includes a motion compensation unit (predicted image generation device) 3091 and a weight prediction unit 3094.
  • the motion compensation unit 3091 generates a 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 interpolated image motion compensated image predSamplesLX is generated by reading out a block located at a position shifted by the motion vector mvLX from the position of the decoding target PU in the reference picture RefX specified in.
  • a filter called a motion compensation filter for generating pixels at decimal positions is applied to generate a motion compensated image.
  • the weight prediction unit 3094 generates a predicted image of PU by multiplying the input motion compensated image predSamplesLX by a weighting factor.
  • FIG. 4 is a block diagram showing the configuration of the image coding apparatus 11 according to the present embodiment.
  • the image coding device 11 includes a predicted image generation unit 101, a subtraction unit 102, a transform / quantization unit 103, an entropy coding unit 104, an inverse quantization / inverse transform unit 105, an addition unit 106, and a CNN (Convolutional Neural Network, convolution) Neural network filter 107, prediction parameter memory (prediction parameter storage unit, frame memory) 108, reference picture memory (reference image storage unit, frame memory) 109, coding parameter determination unit 110, prediction parameter coding unit 111 Configured
  • the prediction parameter coding unit 111 includes an inter prediction parameter coding unit 112 and an intra prediction parameter coding unit 113.
  • the prediction image generation unit 101 generates, for each picture of the image T, the prediction image P of the prediction unit PU for each coding unit CU, which 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 coding unit 111.
  • the prediction parameter input from the prediction parameter coding 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 starting from the target PU.
  • the prediction parameter is, for example, an intra prediction mode.
  • the pixel value of the adjacent PU used in the intra prediction mode is read from the reference picture memory 109, and a PU predicted image P is generated.
  • the prediction image generation unit 101 generates a PU prediction image P using one of a plurality of prediction methods for the read reference picture block.
  • the prediction image generation unit 101 outputs the generated prediction image P of PU to the subtraction unit 102.
  • FIG. 6 is a schematic diagram showing a configuration of the 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.
  • the motion compensation unit 10111 and the weight prediction unit 10112 have the same configuration as that of the above-described motion compensation unit 3091 and weight prediction unit 3094, and therefore the description thereof is omitted here.
  • the prediction image generation unit 101 generates a PU prediction image P based on the pixel value of the reference block read from the reference picture memory, using the parameter input from the prediction parameter coding 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 to generate a residual signal.
  • the subtraction unit 102 outputs the generated residual signal to the transformation / quantization unit 103.
  • the transform / quantization unit 103 performs frequency transform on the residual signal input from the subtraction unit 102 to calculate transform coefficients.
  • the transform / quantization unit 103 quantizes the calculated transform coefficient to obtain a quantization coefficient.
  • Transform / quantization section 103 outputs the obtained quantization coefficient to entropy coding section 104 and inverse quantization / inverse transform section 105.
  • the entropy coding unit 104 receives the quantization coefficient from the transform / quantization unit 103, and receives the coding parameter from the prediction parameter coding unit 111.
  • the coding parameters to be input include, for example, codes such as quantization parameter, depth information (division information), reference picture index refIdxLX, prediction vector index mvp_LX_idx, difference vector mvdLX, prediction mode predMode, and merge index merge_idx.
  • the entropy coding unit 104 entropy-codes the input quantization coefficient and coding parameters to generate a coded stream Te, and outputs the generated coded 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 frequency 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 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 decodes Generate an image.
  • the addition unit 106 stores the generated decoded image in the reference picture memory 109.
  • the CNN filter 107 is an example of the image filter device according to the present embodiment.
  • the image filter device according to the present embodiment functions as a filter that acts on the local decoded image.
  • the image filter device according to the present embodiment includes pixel values of values corresponding to one or more first-type input image data having luminance or color difference as pixel values, and reference parameters for generating a predicted image and a difference image.
  • One or more second type input image data to be input is input, and a neural network is provided to output one or more first type output image data having a luminance or a color difference as a pixel value.
  • the reference parameter in the present specification refers to a parameter referred to for generating a predicted image and a difference image, and may include the above-described coding parameter as an example. It will be as follows if an example of a reference parameter is described concretely.
  • -Quantization parameter in an image (hereinafter also referred to as input image) on which the image filter device operates-Parameter indicating type of intra prediction and inter prediction in input image-Parameter indicating intra prediction direction in input image (intra prediction mode) -Parameter indicating reference picture of inter prediction in input image-Parameter indicating partition division depth in input image-Parameter indicating partition size in input image
  • reference parameters are simply parameters and unless there is any confusion. I sometimes call it.
  • the reference parameter may be explicitly transmitted in the encoded data.
  • the CNN filter 107 receives data of the decoded image generated by the adding unit 106 as first type input image (pre-filter image) data, performs processing on the pre-filter image, and outputs the first type output image (filtered image ) Output data.
  • the image filter apparatus processes the unfiltered image by acquiring the quantization parameter and the prediction parameter as the second type of input image data from the prediction parameter encoding unit 111 or the entropy decoding unit 301. You can also.
  • the image filter arrangement has the effect of reducing coding distortion, ie block distortion and ringing distortion.
  • CNN is a generic term for a neural network having at least a convolution layer (a weighting factor in a product-sum operation and a layer in which a bias / offset does not depend on a position in a picture).
  • the weighting factors are also called kernels.
  • the CNN filter 107 may include a convolution layer as well as a layer called a full connection layer (FCN) whose weight calculation depends on a position in a picture.
  • FCN full connection layer
  • CNN filter 107 has a configuration in which neurons belonging to a layer are connected only to an input of a part of the layer (in other words, a neuron has a spatial position and is connected to only an input close to a spatial position) It can also include an LCN (Locally Connected Networks) layer, which is the In the CNN filter 107, the input size to the convolution layer and the output size may be different. That is, the CNN filter 107 can include a layer in which the output size is smaller than the input size by setting the movement amount (step size) when moving the position to which the convolution filter is applied larger than one. It can also include a deconvolution layer where the output size is larger than the input size.
  • LCN Local Connected Networks
  • the deconvolution layer may also be referred to as transposed convolution.
  • the CNN filter 107 may include a pooling layer (Pooling), a dropout (DropOut) layer, and the like.
  • the pooling layer is a layer that divides a large image into small windows and obtains representative values such as the maximum value and the average value according to the divided windows, and the dropout layer outputs a fixed value (for example, a value) according to the probability. It is a layer which adds randomness by setting it as 0).
  • FIG. 8 is a conceptual diagram showing an example of input and output of the CNN filter 107.
  • the pre-filtered image is quantized in three image channels, including the luminance (Y) channel, the first chrominance (Cb) channel, and the second chrominance (Cr) channel, and The channel of one coding parameter (reference parameter) including the channel of the parameter (QP) is included.
  • the filtered image has three channels, including the processed luminance (Y ') channel, the processed chrominance (Cb') channel, and the processed chrominance (Cr ') channel. Includes the channel of the image.
  • FIG. 8 shows an example of input and output of the CNN filter 107.
  • Y (brightness) of the unfiltered image, the first color difference (Cb), and the second color difference (Cr) are for each channel.
  • the configuration to be separately input is naturally included in the configuration of the present embodiment.
  • a configuration in which Y (brightness) of the unfiltered image and the first color difference (Cb) and the second color difference (Cr) are separately input to the respective channels is, of course, the same as the configuration of the present embodiment.
  • the input image before filtering is not limited to Y, Cb, and Cr channels, and may be, for example, R, G, B channels, X, Y, Z channels, or CMYK channels.
  • channels using luminance and color difference are not limited to Y, Cb, Cr, and, for example, Y, U, V, Y, Pb, Pr, Y, Dz, Dx, I, Ct, Cp It may be a written channel.
  • FIG. 34 is a conceptual diagram showing another example of input and output of the CNN filter 107. As shown in FIG.
  • the unfiltered image includes the channel of the luminance (Y) and the quantization parameter (QP), the channel of the first color difference (Cb) and the channel of the quantization parameter (QP), and the second color difference.
  • the channels of (Cr) and the quantization parameter (QP) are divided and input to the CNN filter 107.
  • the CNN filter 107 processes the channel of the luminance (Y) and the quantization parameter (QP) and outputs (Y ') and outputs the CNN filter 107-1, the first color difference (Cb) and the quantization parameter (QP) CNN filter 107-2 which processes (U ′) the channel of (C ′) and CNN filter 107 which processes (V ′) the channel of the second color difference (Cr) and the quantization parameter (QP) And -3.
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and one or more coding parameters can be used.
  • the CNN filter 107 is not limited to the configuration including the CNN filter 107-1, the CNN filter 107-2, and the CNN filter 107-3 configured by using different means (circuits and software).
  • the CNN filter 107 may be configured to operate in different modes after being configured by one of a plurality of different means (circuits and software).
  • the unfiltered image has a channel of luminance (Y) and quantization parameter (QP), a first color difference (Cb), a second color difference (Cr), and a quantization parameter. It is divided into (QP) channels and input to the CNN filter 107.
  • the CNN filter 107 processes the channel of the luminance (Y) and the quantization parameter (QP) to output (Y '), outputs a CNN filter 107-4, a first color difference (Cb), and a second color difference (Cr).
  • a CNN filter 107-5 which processes the channel of the quantization parameter (QP) and outputs (U ′, V ′).
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and one or more coding parameters can be used.
  • the CNN filter 107 is not limited to the configuration including the CNN filter 107-4 and the CNN filter 107-5 configured by using different means (circuits and software).
  • the CNN filter 107 may be configured to operate in different modes after being configured by one of a plurality of different means (circuits and software). This configuration is used when processing is performed on an image (input) in which the luminance and the reference parameter are interleaved, and processing is performed on an image (input) in which the first color difference, the second color difference, and the reference parameter are interleaved.
  • the processing of luminance (Y) and the processing of chrominance processing of a channel in which the first chrominance (Cb) and the second chrominance (Cr) are interleaved
  • the first color difference (Cb) and the second color difference (Cr) are obtained even if the resolutions of the luminance (Y) and the first color difference (Cb) and the second color difference (Cr) are different.
  • the interleaving does not increase the amount of computation.
  • the CNN filter 107 can separately process the luminance (Y) and the chrominance (first chrominance (Cb) and second chrominance (Cr)), parallel processing of luminance and chrominance is possible. .
  • the CNN filter 107 is configured in the configuration shown in FIG. Accuracy can be increased.
  • FIG. 9 is a schematic view showing an example of the configuration of the CNN filter 107 according to the present embodiment.
  • the CNN filter 107 includes a plurality of convX layers.
  • the convX layer can include at least one of the following configurations.
  • conv (x) configuration for performing a process of applying a filter (convolution)
  • batch_norm (act (conv (x))) A configuration in which batch normalization (normalization of input range) is performed after convolution and activation.
  • the CNN filter 107 is other than the convX layer
  • at least one of the following layers may be included.
  • the CNN filter 107 includes three convX layers (conv1, conv2, conv3) and an add layer.
  • the input unfiltered image has a size of (N1 + N2) ⁇ H1 ⁇ W1.
  • N1 indicates the number of image channels.
  • N1 indicates the number of channels of the coding parameter. For example, if the coding parameter includes only a channel of quantization parameter (QP), N2 is "1".
  • the configuration including the add layer is a configuration in which a CNN filter is used to predict the difference between the filtered image and the pre-filtered image (residual), and it is known to be particularly effective in a configuration in which the CNN layer is deep. Note that, as a configuration called ResNet in which a plurality of layers for deriving residuals are stacked is known, the number of add layers is not limited to one, and a plurality of add layers may be provided.
  • the network may include branches, and may be provided with a Concatenate layer that bundles the branched inputs and outputs. For example, when data of N1xH1xW1 and data of N2xH1xW1 are concatenated, data of (N1 + N2) xH1xW1 is obtained.
  • Data of (N1 + N2) ⁇ H1 ⁇ W1 is input to conv1, which is the first conv layer of the CNN filter 107, and data of Nconv1 ⁇ H1 ⁇ W1 is output.
  • Data of Nconv1xH1xW1 is input to the second conv layer of the CNN filter 107, and data of Nconv2xH1xW1 is output.
  • the third conv layer of the CNN filter 107, conv3, receives data of Nconv2xH1xW1 and outputs data of N1xH1xW1.
  • the add layer which is the add layer
  • the data of N1xH1xW1 which is the output of the conv layer and the unfiltered image of N1xH1xW1 are added pixel by pixel, and data of N1xH1xW1 is output.
  • the number of channels of a picture is reduced by N1 + N2 to N1 by being processed by the CNN filter 107.
  • the CNN filter 107 processes data in the channel first (channel x height x width) data format, but may process in the channel last (height x width x channel) data format. .
  • the CNN filter 107 can also be provided with an auto encoder layer that reduces the output size by the convolution layer, increases the output size by the deconvolution layer, and restores the original size.
  • a deep network composed of multiple convolution layers is sometimes called DNN (Deep Neural Network).
  • the image filter device can also have a Recurrent Neural Network (RNN) that causes part of the output of the network to be input to the network again.
  • RNN Recurrent Neural Network
  • the re-entered information can be considered as the internal state of the network.
  • the image filter device has, as a component, Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU), which use a subnetwork of a neural network to control update and transmission of reinput information (internal state). Multiple combinations are possible.
  • LSTM Long Short-Term Memory
  • GRU Gated Recurrent Unit
  • a channel of division information (Part Depth) and a channel of prediction mode information (PredMode) can be added to the channel of the coding parameter of the image before filtering, in addition to the channel of quantization parameter (QP).
  • Part Depth Part Depth
  • PredMode channel of prediction mode information
  • the quantization parameter (QP) is a parameter that controls the compression rate and the image quality of the image.
  • the quantization parameter (QP) has a characteristic that the image quality decreases and the code amount decreases as the value increases, and the image quality increases and the code amount increases as the value decreases.
  • the quantization parameter (QP) for example, a parameter for deriving the quantization width of the prediction residual can be used.
  • the quantization parameter (QP) in units of pictures, one representative quantization parameter (QP) of the processing target frame can be input.
  • the quantization parameter (QP) can be specified by a set of parameters applied to the current picture.
  • the quantization parameter (QP) can be calculated based on the quantization parameter (QP) applied to the components of the picture.
  • the quantization parameter (QP) can be calculated based on the average value of the quantization parameter (QP) applied to the slice.
  • quantization parameter (QP) of the unit obtained by dividing the picture it is possible to input the quantization parameter (QP) for each unit obtained by dividing the picture according to a predetermined standard.
  • quantization parameters (QP) can be applied on a slice-by-slice basis.
  • quantization parameters (QP) can be applied to blocks in the slice.
  • the quantization parameter (QP) can be designated by an area unit (for example, each area obtained by dividing a picture into 16 ⁇ 9 pieces) independent from the existing coding unit.
  • the quantization parameter (QP) depends on the number of slices and the number of transform units, the value of the quantization parameter (QP) corresponding to the region is indeterminate, and the CNN filter can not be configured. It is conceivable to use the average value of the quantization parameter (QP) as a representative value. There is also a method of using the quantization parameter (QP) at one position in the region as a representative value. There is also a method of using the median (median) or the mode (mode) of the quantization parameter (QP) at a plurality of positions in a region as a representative value.
  • a list of quantization parameters (QP) is generated and input to the CNN filter so that the number of quantization parameters (QP) becomes constant.
  • QP quantization parameters
  • the quantization parameter (QP) to be applied to the component to be processed can be input.
  • the quantization parameter (QP) may include a luminance quantization parameter (QP) and a color difference quantization parameter (QP).
  • the quantization parameter (QP) of the target block and the quantization parameter (QP) of the block periphery may be input as the peripheral quantization parameter (QP).
  • the CNN filter 107 can be designed according to the picture and the coding parameters. That is, since the CNN filter 107 can be designed according to coding parameters as well as picture characteristics that can be derived from image data such as directionality and activity, the CNN filter 107 has different strengths for each coding parameter. Filter can be realized. Therefore, since the present embodiment includes the CNN filter 107, processing according to the coding parameter can be performed without introducing a different network for each coding parameter.
  • FIG. 10 is a schematic view showing a modification of the configuration of the image filter device according to the present embodiment.
  • the CNN filter which is an image filter device may not include the add layer but may include only the convX layer.
  • the CNN filter outputs data of N1 * H1 * W1 even in the present modification that does not include the add layer.
  • a reference parameter demonstrates an example of a quantization parameter (QP) with reference to FIG.
  • the quantization parameter (QP) shown in (a) of FIG. 11 is arranged in a unit area of the transform unit (or a unit area where the quantization parameter (QP) is the same).
  • quantization parameters (QP) directly corresponding to each pixel can be used for processing, and processing can be performed according to each pixel.
  • the boundary of the transform unit can be known from the change position of the quantization parameter (QP), and information on whether it is in the same transform unit or a pixel of an adjacent different transform unit can be used for filter processing. Further, not only the change in pixel value but also the change in quantization parameter (QP) can be used. For example, information such as whether the quantization parameter (QP) is flat, slowly changing, steeply changing, or continuously changing can be used. In addition, normalization and standardization may be performed so as to be close to the average value 0 and the variance 1 before being input to the CNN filter 107. The same applies to coding parameters and pixel values other than quantization parameters.
  • FIG. 12 shows an example of reference parameters as prediction parameters.
  • the prediction parameter includes information indicating intra prediction or inter prediction, and in the case of inter prediction, a prediction mode indicating the number of reference pictures used for prediction.
  • the prediction parameters shown in (a) of FIG. 12 are arranged in units of coding units (prediction units).
  • regions, such as a pixel is shown to (b) of FIG.
  • prediction parameters directly corresponding spatially to each pixel can be used for processing, and processing can be performed according to each pixel. That is, the prediction parameters of (x, y) coordinates can be used simultaneously with (R, G, B) and (Y, Cb, Cr) which are pixel values of (x, y) coordinates.
  • the boundary of the coding unit can be known from the change position of the prediction parameter, and information on whether it is in the same coding unit or a pixel of an adjacent different coding unit can be used for the filtering process. Further, not only the change in pixel value but also the change in prediction parameter can be used. For example, information such as whether the prediction parameter is flat, slowly changing, sharply changing, or continuously changing can be used.
  • the value assigned to the prediction parameter is not limited to the example of the numbers shown in (b) of FIG. 12 as long as a value close to the prediction mode having a similar nature is assigned. For example, “-2” may be assigned to intra prediction, “2” may be assigned to uni-prediction, and “4” may be assigned to bi-prediction.
  • FIG. 13 shows the definition of the prediction mode.
  • 67 types of prediction modes are defined for the luminance pixel, and each prediction mode is specified by the numbers “0” to “66” (intra prediction mode index). Further, the following names are assigned to each prediction mode. That is, “0” is “Planar (plane prediction)", “1” is “DC (DC prediction)”, and “2” to “66” is “Angular (direction prediction)” .
  • LM prediction Color difference prediction mode
  • DM prediction dividing the luminance intra prediction mode
  • LM prediction is linear prediction of chrominance based on prediction of luminance.
  • LM prediction is prediction that uses the correlation between luminance pixel values and chrominance pixel values.
  • FIG. 14 illustrates an example of the intra prediction parameter of the luminance pixel as a reference parameter.
  • the intra prediction parameters include values of prediction parameters determined for each partition.
  • the intra prediction parameter can include, for example, an intra prediction mode or the like.
  • the intra prediction parameters shown in (a) of FIG. 14 are arranged in units of coding units (prediction units).
  • the boundary of the coding unit can be known from the change position of the intra prediction parameter, and it is possible to use information as to whether it is the same coding unit or a pixel of an adjacent different coding unit. Further, not only the change in pixel value but also the change in intra prediction parameter can be used. For example, information such as whether the intra prediction parameter changes slowly, steeply, or continuously may be used.
  • FIG. 15 illustrates an example of depth information (division information) as a reference parameter.
  • the depth information is determined according to the conversion unit for each partition.
  • the depth information is determined, for example, according to the number of divisions of the coding unit, and corresponds to the size of the coding unit.
  • the depth information shown in (a) of FIG. 15 is arranged in coding units (prediction unit units).
  • the boundary of the coding unit can be known from the change position of the depth information, and it is possible to use information as to whether it is the same coding unit or the pixel of the adjacent different coding unit. Further, not only the change in pixel value but also the change in depth information can be used. For example, it is possible to use information such as whether the depth information changes slowly, steeply, or continuously.
  • size information indicating the horizontal size and vertical size of the partition may be used.
  • FIG. 16 shows an example where reference parameters are size information including horizontal and vertical sizes of partitions.
  • two pieces of information ie, information of horizontal size and vertical size, are input for each unit area.
  • log 2 (W) ⁇ 2 log 2 (the number obtained by adding a predetermined offset ( ⁇ 2) to the logarithm value of 2 of the horizontal size W (width) and vertical size H (height) of the partition H) -2 is used as a reference parameter.
  • the partition sizes (W, H) of (1, 1), (2, 1), (0, 0), (2, 0), (1, 2), (0, 1) are respectively (8, 8) , (16, 8), (4, 4), (16, 4), (8, 16), (4, 8).
  • the partition size in the example shown in FIG. 16 can also be regarded as a value (3-log 2 (D)) obtained by subtracting a logarithmic value of 2 of the value D indicating the number of divisions in the horizontal and vertical directions of the conversion unit from a predetermined value. it can.
  • the size information shown in (a) of FIG. 16 is arranged in units of conversion blocks.
  • FIG. 17 shows another example in which the coding parameter consists of a plurality of prediction parameters.
  • the coding parameter consists of a plurality of prediction parameters.
  • reference picture information is included in the prediction parameters.
  • the prediction parameters shown in (a) of FIG. 17 are arranged in units of transform blocks.
  • the CNN filter 107 learns using training data and an error function.
  • the CNN filter 107 As training data of the CNN filter 107, a set of the unfiltered image, the reference parameter, and the original image described above can be input. Also, the filtered image output from the CNN filter 107 is expected to minimize an error with the original image at a certain reference parameter.
  • an error function of the CNN filter 107 a function that evaluates an error from the original image of the filtered image subjected to the filter processing by the CNN filter 107 (for example, mean absolute value error or mean square error mean square error Can be used.
  • parameter magnitudes can be used as regularization terms in addition to the error function. Regularization can use absolute values of parameters, squared values, or both (called lasso, ridge, elasticnet, respectively).
  • the code amount of the CNN parameter may be further added to the error of the error function.
  • GAN generative adversary networks
  • the CNN filter 305 of the image decoding device 31 performs learning in the same manner as the CNN filter 107 of the image coding device 11.
  • the CNN parameters of the two CNN filters are the same.
  • the prediction parameter memory 108 stores the prediction parameter generated by the coding parameter determination unit 110 in a predetermined position for each picture and CU to be coded.
  • the reference picture memory 109 stores the decoded image generated by the CNN filter 107 in a predetermined position for each picture and CU to be encoded.
  • the coding parameter determination unit 110 selects one of a plurality of sets of coding parameters.
  • the coding parameter is a prediction parameter described above or a parameter to be coded that is generated in association with the prediction parameter.
  • the prediction image generation unit 101 generates a PU prediction image P using each of these sets of coding parameters.
  • the coding parameter determination unit 110 calculates, for each of the plurality of sets, a cost value indicating the size of the information amount and the coding error.
  • the cost value is, for example, the sum of the code amount and a value obtained by multiplying the square error by the coefficient ⁇ .
  • the code amount is the information amount of the coded stream Te obtained by entropy coding the quantization error and the coding parameter.
  • the squared error is a sum between pixels with respect to the square value of the residual value of the residual signal calculated by the subtraction unit 102.
  • the factor ⁇ is a real number greater than a preset zero.
  • the coding parameter determination unit 110 selects a set of coding parameters that minimize the calculated cost value.
  • the entropy coding unit 104 externally outputs the set of selected coding parameters as the coded stream Te, and does not output the set of non-selected coding parameters.
  • the coding parameter determination unit 110 stores the determined coding parameters in the prediction parameter memory 108.
  • the prediction parameter coding unit 111 derives a format for coding from the parameters input from the coding parameter determination unit 110, and outputs the format to the entropy coding unit 104. Derivation of a form for encoding is, for example, derivation of a difference vector from a motion vector and a prediction vector. Further, the prediction parameter coding unit 111 derives parameters necessary to generate a prediction image from the parameters input from the coding parameter determination unit 110, and outputs the parameters to the prediction image generation unit 101.
  • the parameters required to generate a predicted image are, for example, motion vectors in units of subblocks.
  • the inter prediction parameter coding unit 112 derives inter prediction parameters such as a difference vector based on the prediction parameters input from the coding parameter determination unit 110.
  • the inter prediction parameter coding unit 112 derives the inter prediction parameter by the inter prediction parameter decoding unit 303 (refer to FIG. 5 and the like) as a configuration for deriving the parameters necessary for generating the prediction image to be output to the prediction image generation unit 101. Partially include the same configuration as the configuration.
  • the intra prediction parameter coding unit 113 derives a format (for example, MPM_idx, rem_intra_luma_pred_mode, etc.) for coding from the intra prediction mode IntraPredMode input from the coding parameter determination unit 110.
  • a format for example, MPM_idx, rem_intra_luma_pred_mode, etc.
  • the network configuration of the CNN filter can be considered in various forms.
  • the second embodiment shown in FIG. 18 is an example of a CNN filter of another network configuration different from the network configuration (FIG. 9, FIG. 10) described in the first embodiment, and is a first embodiment. Has the same effect as the form.
  • the CNN filter 107a includes two convX layers (convolution layers) conv1 and conv2, a pooling layer pooling, and a deconv layer (deconvolution layer) conv3.
  • the convX layers conv1 and conv2 are convolution layers
  • the deconv layer conv3 is a deconvolution layer.
  • the pooling layer pooling is placed between the convX layer conv2 and the convX layer conv3.
  • the input unfiltered image has a size of (N1 + N2) * H1 * W1. Also in the present embodiment, N1 indicates the number of image channels. W1 is the width patch size of the picture, and H1 is the height patch size of the picture. N2 indicates the number of channels of the coding parameter.
  • Data of (N1 + N2) * H1 * W1 is input to conv1 which is the first convX layer of the CNN filter 107a, and data of Nconv1 * H1 * W1 is output.
  • Data of Nconv1 * H1 * W1 is input and conv2 which is the second convX layer of the CNN filter 107a is output of data of Nconv2 * H1 * W1.
  • the pooling layer “pooling” at the latter stage of the convX layer conv 2 receives the data of Nconv 2 * H 1 * W 1 and outputs the data of Nconv 2 * H 2 * W 2.
  • the pooling layer pooling converts the data of the size of height * width H1 * W1 output from the convX layer conv2 into data of size H2 * W2.
  • the Deconv layer conv3 in the latter stage of the pooling layer pooling receives data of Nconv2 * H2 * W2 and outputs data of N1 * H1 * W1. That is, the Deconv layer conv 3 returns the data of the size of height * width H2 * W2 output from the pooling layer pooling to the data of size H1 * W1.
  • Transposed Convolution is used.
  • the CNN filter in the image decoding apparatus has the same function as the CNN filter 107a in the image coding apparatus.
  • the unfiltered image includes the channel of the luminance (Y) and the quantization parameter (QP), the first color difference (Cb), and The channel may be divided into the channel of the quantization parameter (QP) and the channel of the second color difference (Cr) and the quantization parameter (QP), and may be input to the CNN filter 107a.
  • the unfiltered image includes the channel of the luminance (Y) and the quantization parameter (QP), the first color difference (Cb), and the second color difference (Cr). And the channel of the quantization parameter (QP) may be input to the CNN filter 107a.
  • the CNN filter 107a performs filter processing on the image (input) in which the luminance and the reference parameter are interleaved, and the image (input) in which the first color difference, the second color difference, and the reference parameter are interleaved
  • the configuration may be such that filtering is performed.
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and the CNN filter 107a can use one or more coding parameters.
  • the configuration of the second embodiment by using a kind of auto encoder type network configuration in which data reduced in the convolution layer and the pooling layer is expanded in the transpooling layer, upper conceptual feature values are considered. It can be filtered. That is, in the case of performing the filtering process according to the coding parameter, it is possible to change the filter strength in consideration of higher-order feature quantities obtained by integrating the edge and the color.
  • the CNN filter 107b includes a first CNN filter 107b1 and a second CNN filter 107b2.
  • An image before filtering is input to the first CNN filter 107b1.
  • the first CNN filter 107 b 1 extracts features such as directionality and activity.
  • Data processed by the first CNN filter 107b1 and a quantization parameter (QP) as a coding parameter are input to the second CNN filter 107b2.
  • QP quantization parameter
  • the first CNN filter 107b1 uses the first type of input image data input to the second CNN filter 107b2 as the second neural network as an output image.
  • the second CNN filter 107 b 2 applies a filtering process to weight the extracted features.
  • the second CNN filter 107 b 2 controls how weighting and filtering are performed using the coding parameters.
  • the filtered image is output from the second CNN filter 107 b 2.
  • the first CNN filter 107b1 includes three channels including a channel of luminance (Y), a channel of first chrominance (Cb), and a channel of second chrominance (Cr).
  • the pre-filtered image to be configured is input, and a filtered image composed of three channels including luminance and two color differences is output.
  • the channels of the before-filtering image and the after-filtering image are not limited to Y, Cb, and Cr, and may be R, G, and B, and may further include alpha and depth.
  • another coding parameter such as a prediction parameter may be input to the second CNN filter 107b2.
  • the configuration for inputting another coding parameter such as a prediction parameter is not limited to the present embodiment, and the same applies to the other embodiments. .
  • the unfiltered image includes the channel of luminance (Y), the channel of first color difference (Cb), and the second color difference. It may be divided into (Cr) channels and input to the CNN filter 107b1. Further, as shown in (b) of FIG. 34 in the first embodiment, the unfiltered image is divided into a channel of luminance (Y) and a channel of first color difference (Cb) and second color difference (Cr). , And may be input to the CNN filter 107b1.
  • the CNN filter b1 performs filter processing on the image (input) in which the luminance and the reference parameter are interleaved, and filters on the image (input) in which the first color difference, the second color difference, and the reference parameter are interleaved May be configured to Note that the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and the CNN filter b1 can use one or more coding parameters.
  • FIG. 20 is a schematic view showing the configuration of the CNN filter 107b according to this embodiment.
  • the first CNN filter 107b1 includes two convX layers (conv1 and conv2).
  • the second CNN filter 107b2 includes two convX layers (conv3, conv4) and Concatenate layers.
  • Data of N1 * H1 * W1 is input to conv1 of the first CNN filter 107b1, and data of Nconv1 * H1 * W1 is output.
  • Data of Nconv1 * H1 * W1 is input to conv2 of the first CNN filter 107b1, and data of Nconv2 * H1 * W1 as a result of image processing is output.
  • Data of N2 * H1 * W1 is input to conv4 of the second CNN filter 107b2, and data of Nconv4 * H1 * W1 is output.
  • the Concatenate layer of the second CNN filter 107b2 receives the image processing result, the coding parameter processed according to conv4, and (Nconv2 + Nconv4) * H1 * W1 and concatenates each other to obtain Nconv3 * H1 * W1.
  • Data of Nconv3 * H1 * W1 is input to conv3 of the second CNN filter 107b2, and data of N1 * H1 * W1 is output.
  • FIG. 21 is a schematic view showing a modification of the configuration of the image filter device according to the present embodiment.
  • the second CNN filter 107c2 of the CNN filter 107c may include an add layer.
  • the add layer receives the N1 * H1 * W1 data output from the conv3 of the second CNN filter 107b2 and the N1 * H1 * W1 image data, and outputs N1 * H1 * W1 data.
  • the CNN filter in the image decoding apparatus has the same function as the CNN filters 107 b and 107 c in the image coding apparatus.
  • the input of image data and the input of encoded data are performed in different networks.
  • the input size of image data and the input size of encoded data can be made different.
  • the network CNN 1 specialized only for image data not only learning becomes easy, but also the entire network configuration can be made small.
  • the network of CNN2 to which the coding parameter is input weighting and further feature extraction can be performed on the filtered image which is data derived by the first CNN filter CNN1 and feature extraction using the coding parameter, More sophisticated filtering can be performed.
  • the CNN filter 107d includes a plurality of individual neural networks, ie, a first stage CNN filter 107d1 including n + 1 CNN filters CNN0, CNN1,. 107 d 2 and a second stage CNN filter 107 d 3 which is a common neural network.
  • the CNN filter CNN0 is a filter that has the same configuration as the above-mentioned CNN filter 107b1, but is optimized for the filter parameter FP having a smaller value than FP1.
  • the CNN filter CNN1 is a filter optimized for filter parameters FP having a value greater than or equal to FP1 and smaller than FP2.
  • the CNN filter CNNn is a filter optimized for the filter parameter FP having a value of FPn or more.
  • Each of the CNN filters CNN0, CNN1,..., CNNn included in the first-stage CNN filter 107d1 outputs the image subjected to the filtering process to the selector 107d2.
  • the selector 107 d 2 receives the filter parameter FP, and selects an image subjected to the filter processing to be output to the second-stage CNN filter 107 d 3 according to the input filter parameter FP. Therefore, the image subjected to the filtering process by the optimum filter with respect to the filter parameter FP input to the selector 107d2 is input to the second-stage CNN filter 107d3.
  • the individual neural network in the present embodiment selectively acts on the input image data in accordance with the value of the filter parameter in the input image data to the image filter device.
  • the filter parameter FP for selecting the CNN filter may be explicitly coded in the coded data or may be derived from the coding parameter.
  • the filter parameter FP may be derived from a representative value (average value or the like) of the quantization parameter which is one of the coding parameters.
  • the second stage CNN filter 107d3 performs filter processing on the input image, and outputs a filtered image.
  • the common neural network in the present embodiment acts on the output image data of the individual neural network in common regardless of the value of the filter parameter.
  • the filter parameter FP used for selection by the selector 107d2 is not limited to the representative value of the quantization parameter (QP) in the input image.
  • the filter parameters FP may be transmitted explicitly in the coded data. Further, as the filter parameter FP, besides the quantization parameter in the input image, a parameter indicating the type of intra prediction and inter prediction in the input image, a parameter indicating the intra prediction direction in the input image (intra prediction mode), and a partition in the input image The parameter which shows the division
  • FIG. 23 is a schematic view showing a modification of the configuration of the image filter device according to the present embodiment.
  • the CNN filter 107e includes a plurality of individual neural networks CNN filter 107e2 including a plurality of n + 1 CNN filters CNN0, CNN1,..., CNNn and the selector 107e3 is a common neural network CNN filter It can also be placed after 107e1.
  • the CNN filter 107e1 acts on the input image data to the CNN filter 107e, and the CNN filter 107e2 selectively selects the output image data of the CNN filter 107e1 according to the value of the filter parameter in the input image data.
  • the selector 107 e 3 outputs the image after filtering.
  • the CNN filter in the image decoding device has the same function as the CNN filter in the image coding device.
  • the network configuration can be made smaller compared to the configuration in which the entire filter is switched by the coding parameter such as the quantization parameter.
  • the smaller the network configuration the smaller the amount of computation and the higher the speed, and the more robust the learning parameters, the more effective the filtering process can be performed on many input images.
  • the unfiltered image includes the channel of luminance (Y), the channel of first color difference (Cb), and the second color difference. It may be divided into (Cr) channels and input to the CNN filter 107d1. Further, as shown in (b) of FIG. 34 in the first embodiment, the unfiltered image is divided into a channel of luminance (Y) and a channel of first color difference (Cb) and second color difference (Cr). , And may be input to the CNN filter 107d1.
  • the CNN filter d1 performs filter processing on the image (input) in which the luminance and the reference parameter are interleaved, and filters on the image (input) in which the first color difference, the second color difference, and the reference parameter are interleaved
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and the CNN filter d1 can use one or more coding parameters.
  • the CNN filter 107f includes a first-stage CNN filter 107f1 including n + 1 CNN filters CNN0, CNN1,..., CNNn, a selector 107f2, and a second-stage CNN. And a filter 107f3.
  • the CNN filter CNN1 is a filter optimized for the quantization parameter (QP) having a value larger than QP1L and smaller than QP1H.
  • the CNN filter CNN2 is a filter optimized for the quantization parameter (QP) having a value larger than QP2L and smaller than QP2H.
  • the CNN filter CNN3 is a filter optimized for the quantization parameter (QP) having a value larger than QP3L and smaller than QP3H.
  • the CNN filter CNN4 is a filter optimized for the quantization parameter (QP) having a value larger than QP4L and smaller than QP4H.
  • Other CNN filters are similar filters.
  • the selector 107 f 2 selects the CNN filter CNN 1. If the quantization parameter (QP) is 15, the selector 107 f 2 selects the CNN filter CNN 1 and the CNN filter CNN 2. If the quantization parameter (QP) is 20, the selector 107 f 2 selects the CNN filter CNN 2. If the quantization parameter (QP) is 25, the selector 107 f 2 selects the CNN filter CNN 2 and the CNN filter CNN 3. If the quantization parameter (QP) is 30, the selector 107 f 2 selects the CNN filter CNN 3.
  • the second-stage CNN filter 107f3 When the selector 107f2 selects one type of CNN filter, the second-stage CNN filter 107f3 outputs the input image as a filtered image, and when the selector 107f2 selects two types of CNN filter, two inputs The average value of the image is output as a filtered image.
  • the CNN filter in the image decoding apparatus has the same function as the CNN filter 107 f in the image coding apparatus.
  • a part (107f1) for switching the network according to the size of the quantization parameter QP and a part (107f2) using the same network regardless of the size of the quantization parameter QP are used.
  • the network configuration smaller than a configuration in which the entire filter is switched by coding parameters such as quantization parameters.
  • overlapping the optimization range of each CNN filter can prevent visual distortion from appearing at patch boundaries when switching filters.
  • the image filter device may utilize a function to reduce block distortion and a filter to reduce ringing distortion. Further, the processing may be used in combination with another filter such as a deblocking filter (DF) for reducing block distortion or a sample adaptive offset (SAO) for reducing ringing distortion.
  • DF deblocking filter
  • SAO sample adaptive offset
  • FIG. 25A shows a first example of the present embodiment.
  • the image filter device 107g includes a CNN filter 107g1 and a sample adaptive offset (SAO) 107g2.
  • the CNN filter 107g1 functions as a filter that reduces block distortion.
  • FIG. 25 (b) shows a second example of the present embodiment.
  • the image filter device 107h includes a deblocking filter (DF) 107h1 and a CNN filter 107g2.
  • the CNN filter 107 h 2 functions as a filter that further reduces ringing noise after the deblocking filter.
  • FIG. 25C shows a third example of the present embodiment.
  • the image filter device 107i includes a first CNN filter 107i1 and a second CNN filter 107i2.
  • the first CNN filter 107i1 functions as a filter that reduces block distortion
  • the second CNN filter 107i2 functions as a filter that further reduces ringing noise downstream of the filter that reduces block distortion.
  • the CNN filter in the image decoding apparatus has the same function as the CNN filter in the image coding apparatus.
  • the unfiltered image input to the image filter device 107g to the image filter device 107i in the present embodiment has the channel of luminance (Y), the channel of the first color difference (Cb), and the channel, as in the other embodiments. It may be an image including channels of three images including channels of the second color difference (Cr), as well as channels of one coding parameter (reference parameter) including channels of quantization parameters (QP). Further, as shown in (a) of FIG.
  • the unfiltered image includes a channel of luminance (Y) and quantization parameter (QP), and a channel of first color difference (Cb) and quantization parameter (QP);
  • the channels may be divided into the second color difference (Cr) and the quantization parameter (QP) and input to the image filter device 107g to the image filter device 107i.
  • the unfiltered image has a channel of luminance (Y) and quantization parameter (QP), a first color difference (Cb), a second color difference (Cr), and a quantum. It may be divided into the channel of the quantization parameter (QP), and may be input to the image filter device 107g to the image filter device 107i.
  • the image filter device 107g to the image filter device 107i perform the filtering process on the image (input) in which the luminance and the reference parameter are interleaved, and the image in which the first color difference, the second color difference, and the reference parameter are interleaved (input ) May be filtered.
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and the image filter device 107g to the image filter device 107i can use one or more coding parameters.
  • FIG. 26 is a block diagram showing the configuration of the image coding apparatus according to this embodiment.
  • the image coding device 11j according to this embodiment differs from the above embodiment in that the CNN filter 107j acquires CNN parameters and performs filter processing using the acquired CNN parameters. Further, the CNN parameters used by the CNN filter 107 j are different from those in the above embodiment in that they are dynamically updated in sequence units, picture units, etc. In the above embodiment, the CNN parameter is a predetermined fixed value and is not updated.
  • the image coding apparatus 11j has a CNN parameter determination unit 114, a CNN parameter coding unit 115, and multiplexing in addition to the configuration provided in the image coding apparatus 11 shown in FIG. A section 116 is provided.
  • the CNN parameter determination unit 114 obtains the image T (input image) and the output of the addition unit 106 (pre-filter image), and a CNN parameter that is a neural network parameter so that the difference between the input image and the pre-filter image is reduced. Update
  • FIG. 27 is a schematic diagram showing an example of the configuration of the CNN filter 107 j.
  • the CNN filter includes a plurality of layers such as the convX layer, and the CNN filter 107 j illustrated in FIG. 27 includes three layers. Each layer can be identified by layer ID.
  • the layer ID of the layer on the input side is L-2
  • the layer ID of the middle layer is L-1
  • the layer ID of the layer on the output side is L.
  • each layer includes a plurality of units, and each unit can be identified by a unit ID.
  • the unit ID of the unit at the top of the middle layer L-1 is (L-1, 0), and the unit ID of the unit above the layer L at the output side is (L, 0).
  • the unit ID of the unit under layer L is (L, 1).
  • each unit in each layer is connected to a unit in the next layer.
  • connections between units are indicated by arrows.
  • the weight of each connection is different and is controlled by the weighting factor.
  • the CNN parameter determination unit 114 outputs a filter coefficient including both the weighting coefficient and the bias (offset). Also, the CNN parameter determination unit 114 outputs an identifier as a CNN parameter. If the CNN filter is composed of multiple CNN layers, the identifier is a CNN ID that identifies the CNN layer. When the CNN layer is identified by the layer ID and unit ID, the identifier is the layer ID and unit ID.
  • the CNN parameter determination unit 114 outputs data indicating a unit structure as a CNN parameter.
  • data indicating the structure of the unit for example, a filter size such as 3 * 3 can be mentioned.
  • Data indicating the filter size is output as a CNN parameter when making the filter size variable. When the filter size is fixed, it is not necessary to output data indicating the filter size.
  • the CNN parameter determination unit 114 performs a full update that updates all the parameters, or a partial update that updates the parameters of some layer units.
  • the CNN parameter determination unit 114 adds data indicating whether to output the update content as a difference to the CNN parameter and outputs the data.
  • the CNN parameter determination unit 114 can output, for example, a CNN parameter value such as a filter coefficient as it is. Also, the CNN parameter determination unit 114 can output, for example, a difference parameter value such as a difference from the CNN parameter value before update, a difference from a default value, and the like. Also, the CNN parameter determination unit 114 can compress and output the CNN parameter value according to a predetermined method.
  • Equation (1) the product sum of the layer input value Z (L-1) ijk and the L layer parameters (filter coefficients) h pqr and h 0 is passed to the activation function (Equation (1) shown in FIG. 28),
  • the value Z L ijk to which the activation function (1) is applied is output to the next layer.
  • N is the number of channels in the layer input
  • W is the width of the layer input
  • H is the height of the layer input.
  • kN is the number of input channels of the kernel (filter) and is basically equal to N.
  • kW is the width of the kernel and kH is the height of the kernel.
  • the CNN parameter determination unit 114 can dynamically update at least a part of the CNN parameters (filter coefficients) h pqr and h 0 .
  • the CNN parameters are transmitted by data of a Network Abstraction Layer (NAL) structure.
  • NAL Network Abstraction Layer
  • a of FIG. 29 shows a coded video sequence which defines a sequence SEQ of data of the NAL structure in the present embodiment.
  • a sequence parameter set SPS Sequence Parameter Set included in the sequence SEQ is an update type (indicating whether it is partial / total / different, etc.), layer ID of CNN (L), and unit ID of CNN.
  • M Transmit update parameters to be applied to the whole image sequence, such as filter size (kW * kH) of L layer, unit IDm, and filter coefficients (h pqr , h 0 ).
  • the picture parameter set PPS (Picture Parameter Set) included in the sequence SEQ is an update type (indicating whether it is partial / full / different, etc.), layer ID (L), unit ID (m), filter size (filter Transmit updated parameters to be applied to a certain picture, such as kW * kH), filter coefficients (h pqr , h 0 ).
  • the sequence includes a plurality of pictures.
  • the CNN parameter determination unit 114 can output CNN parameters in sequence units. In this case, the CNN parameters of the entire sequence can be updated. Also, the CNN parameter determination unit 114 can output in units of pictures. In this case, CNN parameters for a certain time can be updated.
  • the items described with reference to FIGS. 27 to 29 are items common to the encoding side and the decoding side, and the same applies to the CNN filter 305 j described later.
  • the items described with reference to FIGS. 27 to 29 are also applied to the CNN parameters output to the CNN filter 107j of the image coding device 11j, and the CNN output to the CNN filter 305j of the image decoding device 31j. It also applies to parameters.
  • the unfiltered image input to the CNN filter 107 j in the present embodiment has the channel of luminance (Y), the channel of the first color difference (Cb), and the second color difference (Cr) as in the other embodiments.
  • the image may include the channels of three images including the channel of) and the channel of one coding parameter including the channel of the quantization parameter (QP).
  • the unfiltered image includes a channel of luminance (Y) and quantization parameter (QP), and a channel of first color difference (Cb) and quantization parameter (QP);
  • the channel may be divided into the second color difference (Cr) and the quantization parameter (QP) channel, and may be input to the CNN filter 107 j.
  • the unfiltered image has a channel of luminance (Y) and quantization parameter (QP), a first color difference (Cb), a second color difference (Cr), and a quantum. It may be divided into channels of the quantization parameter (QP) and input to the CNN filter 107 j. That is, the CNN filter 107 j performs filter processing on the image (input) in which the luminance and the reference parameter are interleaved, and filters on the image (input) in which the first color difference, the second color difference, and the reference parameter are interleaved.
  • the reference parameter (coding parameter) is not limited to the quantization parameter (QP), and the CNN filter 107 j can use one or more coding parameters.
  • the CNN parameter coding unit 115 acquires the CNN parameter output from the CNN parameter determination unit 114, encodes the CNN parameter, and outputs the CNN parameter to the multiplexing unit 116.
  • the multiplexing unit 116 multiplexes the coded data output from the entropy coding unit 104 and the CNN parameter coded by the CNN parameter coding unit 115 to generate a stream, and outputs the stream to the outside.
  • FIG. 30 is a block diagram showing the configuration of the image decoding apparatus according to this embodiment.
  • the CNN filter 305j acquires a CNN parameter, and performs filter processing using the acquired CNN parameter.
  • the CNN parameters used by the CNN filter 305 j are dynamically updated in sequence units, picture units, etc.
  • the image decoding device 31j includes a demultiplexing unit 313 and a CNN parameter decoding unit 314 in addition to the configuration of the image decoding device 31 shown in FIG.
  • the demultiplexer 313 inputs a stream, and demultiplexes the encoded data and the encoded CNN parameter.
  • the CNN parameter decoding unit 314 decodes the encoded CNN parameter, and outputs the decoded CNN parameter to the CNN filter 305 j.
  • the image encoding device 11 and a part of the image decoding device 31 in the embodiment described above for example, the entropy decoding unit 301, the prediction parameter decoding unit 302, the CNN filter 305, the prediction image generation unit 308, the inverse quantization / inverse transform Unit 311, addition unit 312, predicted image generation unit 101, subtraction unit 102, conversion / quantization unit 103, entropy coding unit 104, inverse quantization / inverse conversion unit 105, CNN filter 107, coding parameter determination unit 110,
  • the prediction parameter coding unit 111 may be realized by a computer. In that case, a program for realizing the control function may be recorded in a computer readable recording medium, and the computer system may read and execute the program recorded in the recording medium.
  • the “computer system” is a computer system built in any of the image encoding device 11 and the image decoding device 31, and includes an OS and hardware such as peripheral devices.
  • the “computer-readable recording medium” means a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a storage device such as a hard disk built in a computer system.
  • the “computer-readable recording medium” is one that holds a program dynamically for a short time, like a communication line in the case of transmitting a program via a network such as the Internet or a communication line such as a telephone line.
  • a volatile memory in a computer system serving as a server or a client may be included, which holds a program for a predetermined time.
  • the program may be for realizing a part of the functions described above, or may be realized in combination with the program already recorded in the computer system.
  • part or all of the image encoding device 11 and the image decoding device 31 in the above-described embodiment may be realized as an integrated circuit such as a large scale integration (LSI).
  • LSI large scale integration
  • Each functional block of the image encoding device 11 and the image decoding device 31 may be individually processorized, or part or all may be integrated and processorized.
  • the method of circuit integration is not limited to LSI's, and implementation using dedicated circuitry or general purpose processors is also possible. In the case where an integrated circuit technology comes out to replace LSI's as a result of the advancement of semiconductor technology, integrated circuits based on such technology may also be used.
  • the image encoding device 11 and the image decoding device 31 described above can be mounted and used in various devices that transmit, receive, record, and reproduce 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.
  • FIG. 31 is a block diagram showing a configuration of a transmission device PROD_A on which the image coding device 11 is mounted.
  • the transmission device PROD_A modulates the carrier wave with the encoding data obtained by the encoding unit PROD_A1 which obtains encoded data by encoding a moving image, and the encoding unit PROD_A1.
  • the image coding apparatus 11 described above is used as the coding unit PROD_A1.
  • the transmission device PROD_A is a camera PROD_A4 for capturing a moving image, a recording medium PROD_A5 for recording the moving image, an input terminal PROD_A6 for externally inputting the moving image, and a transmission source of the moving image input to the encoding unit PROD_A1. , And may further include an image processing unit A7 that generates or processes an image. In (a) of FIG. 31, although the configuration in which the transmission device PROD_A includes all of these is illustrated, a part of the configuration may be omitted.
  • the recording medium PROD_A5 may be a recording of a non-coded moving image, or a moving image encoded by a recording encoding method different from the transmission encoding method. It may be one. In the latter case, it is preferable to interpose, between the recording medium PROD_A5 and the encoding unit PROD_A1, a decoding unit (not shown) that decodes the encoded data read from the recording medium PROD_A5 according to the encoding scheme for recording.
  • FIG. 31 is a block diagram showing a configuration of a reception device PROD_B in which the image decoding device 31 is mounted.
  • the reception device PROD_B receives the modulation signal, receives the modulation signal, and demodulates the modulation signal received by the reception unit PROD_B1, thereby obtaining the encoded data by the demodulation unit PROD_B2.
  • a decoding unit PROD_B3 for obtaining a moving image by decoding encoded data obtained by the unit PROD_B2.
  • the image decoding device 31 described above is used as the decoding unit PROD_B3.
  • the receiving device PROD_B is a display PROD_B4 for displaying a moving image, a recording medium PROD_B5 for recording the 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. It may further comprise PROD_B6. Although (b) of FIG. 31 exemplifies a configuration in which the reception device PROD_B includes all of these, a part may be omitted.
  • the recording medium PROD_B5 may be for recording a moving image which has not been encoded, or is encoded by a recording encoding method different from the transmission encoding method. May be In the latter case, an encoding unit (not shown) may be interposed between the decoding unit PROD_B3 and the recording medium PROD_B5 to encode the moving image acquired from the decoding unit PROD_B3 according to the encoding method for recording.
  • the transmission medium for transmitting the modulation signal may be wireless or wired.
  • the transmission mode for transmitting the modulation signal may be broadcast (here, a transmission mode in which the transmission destination is not specified in advance), or communication (in this case, transmission in which the transmission destination is specified in advance) (Refer to an aspect). That is, transmission of the modulation signal may be realized by any of wireless broadcast, wired broadcast, wireless communication, and wired communication.
  • a broadcasting station (broadcasting facility etc.) / Receiving station (television receiver etc.) of terrestrial digital broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B which transmits and receives a modulated signal by wireless broadcasting.
  • a cable television broadcast station (broadcasting facility or the like) / receiving station (television receiver or the like) is an example of a transmitting device PROD_A / receiving device PROD_B which transmits and receives a modulated signal by cable broadcasting.
  • a server such as a workstation
  • client such as a VOD (Video On Demand) service or a video sharing service using the Internet
  • PROD_A / receiving device PROD_B
  • the personal computer includes a desktop PC, a laptop PC, and a tablet PC.
  • the smartphone also includes a multifunctional mobile phone terminal.
  • the client of the moving image sharing service has a function of encoding a moving image captured by a camera and uploading it to the server. That is, the client of the moving image sharing service functions as both the transmitting device PROD_A and the receiving device PROD_B.
  • FIG. 32 is a block diagram showing a configuration of a recording device PROD_C on which the image coding device 11 described above is mounted.
  • the recording device PROD_C uses the encoding unit PROD_C1, which obtains encoded data by encoding a moving image, and the encoded data obtained by the encoding unit PROD_C1, to the recording medium PROD_M.
  • a writing unit PROD_C2 for writing.
  • the image coding device 11 described above is used as the coding unit PROD_C1.
  • the recording medium PROD_M may be (1) a type incorporated in the recording device PROD_C, such as a hard disk drive (HDD) or a solid state drive (SSD), or (2) an SD memory. It may be of a type connected to the recording device PROD_C, such as a card or a Universal Serial Bus (USB) flash memory, or (3) a DVD (Digital Versatile Disc) or a BD (Blu-ray Disc: Registration It may be loaded into a drive device (not shown) built in the recording device PROD_C, such as a trademark).
  • a type incorporated in the recording device PROD_C such as a hard disk drive (HDD) or a solid state drive (SSD), or (2) an SD memory. It may be of a type connected to the recording device PROD_C, such as a card or a Universal Serial Bus (USB) flash memory, or (3) a DVD (Digital Versatile Disc) or a BD (Blu-ray Disc: Registration It may be loaded into
  • the recording device PROD_C is a camera PROD_C3 for capturing a moving image as a supply source of the moving image input to the encoding unit PROD_C1, an input terminal PROD_C4 for inputting the moving image from the outside, and a reception for receiving the moving image
  • the image processing unit PROD_C5 may further include an image processing unit PROD_C6 that generates or processes an image. In (a) of FIG. 32, although the configuration in which the recording apparatus PROD_C includes all of these is illustrated, a part of the configuration may be omitted.
  • the receiving unit PROD_C5 may receive an uncoded moving image, and receives encoded data encoded by a transmission encoding scheme different from the recording encoding scheme. It may be In the latter case, it is preferable to interpose a transmission decoding unit (not shown) that decodes encoded data encoded by the transmission encoding scheme 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, etc.
  • the input terminal PROD_C4 or the receiving unit PROD_C5 is a main supply source of moving images).
  • a camcorder in this case, the camera PROD_C3 is the main supply source of moving images
  • a personal computer in this case, the receiving unit PROD_C5 or the image processing unit C6 is the main supply source of moving images
  • a smartphone this In this case, the camera PROD_C3 or the receiving unit PROD_C5 is a main supply source of moving images
  • the like are also examples of such a recording device PROD_C.
  • FIG. 32 is a block showing the configuration of the playback device PROD_D on which the image decoding device 31 described above is mounted.
  • the playback device PROD_D decodes the moving image by decoding the encoded data read by the reading unit PROD_D1 that reads the encoded data written to the recording medium PROD_M and the reading unit PROD_D1. And a decryption unit PROD_D2 to be obtained.
  • the image decoding device 31 described above is used as the decoding unit PROD_D2.
  • the recording medium PROD_M may be (1) a type incorporated in the playback device PROD_D such as an HDD or an SSD, or (2) such as an SD memory card or a USB flash memory. It may be of a type connected to the playback device PROD_D, or (3) it may be loaded into a drive device (not shown) built in the playback device PROD_D, such as DVD or BD. Good.
  • the playback device PROD_D is a display 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. It may further comprise PROD_D5. Although (b) of FIG. 32 exemplifies a configuration in which the playback device PROD_D includes all of these, a part may be omitted.
  • the transmission unit PROD_D5 may transmit a non-encoded moving image, or transmit encoded data encoded by a transmission encoding method different from the recording encoding method. It may be In the latter case, an encoding unit (not shown) may be interposed between the decoding unit PROD_D2 and the transmission unit PROD_D5 for encoding moving pictures according to a transmission encoding scheme.
  • a playback device PROD_D for example, a DVD player, a BD player, an HDD player, etc. may be mentioned (in this case, the output terminal PROD_D4 to which a television receiver etc. is connected is the main supply destination of moving images) .
  • television receivers in this case, the display PROD_D3 is the main supply destination of moving images
  • digital signage also referred to as an electronic signboard or an electronic bulletin board, etc.
  • desktop type PC in this case, output terminal PROD_D4 or transmission unit PROD_D5 is the main supply destination of moving images
  • laptop type or tablet type PC in this case, display PROD_D3 or transmission unit PROD_D5 is moving image
  • the smartphone in this case, the display PROD_D3 or the transmission unit PROD_D5 is the main supply destination of the moving image
  • the like are also examples of such a reproduction device PROD_D.
  • each block of the image decoding device 31 and the image encoding device 11 described above may be realized as hardware by a logic circuit formed on an integrated circuit (IC chip), or a CPU (Central Processing Unit) It may be realized as software using
  • each of the devices described above includes a CPU that executes instructions of a program that implements each function, a read only memory (ROM) that stores the program, a random access memory (RAM) 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 to record computer program readable program codes (execution format program, intermediate code program, source program) of control programs of the above-mentioned respective devices which are software for realizing the functions described above.
  • the present invention can also be achieved by supplying a medium to each of the above-described devices, and a computer (or a CPU or an MPU) reading and executing a program code recorded on a recording medium.
  • Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, CDs (Compact Disc Read-Only Memory) / MO disks (Magneto-Optical disc).
  • tapes such as magnetic tapes and cassette tapes
  • magnetic disks such as floppy (registered trademark) disks / hard disks
  • CDs Compact Disc Read-Only Memory
  • MO disks Magnetic-Optical disc
  • Disks including optical disks such as MD (Mini Disc) / DVD (Digital Versatile Disc) / CD-R (CD Recordable) / Blu-ray Disc (registered trademark), IC cards (including memory cards) Cards such as optical cards, mask ROMs / erasable programmable read-only memories (EPROMs) / electrically erasable and programmable read-only memories (EEPROMs) / semiconductor memories such as flash ROMs, or programmable logic devices (PLDs) And logic circuits such as FPGA (Field Programmable Gate Array) can be used.
  • MD Mini Disc
  • DVD Digital Versatile Disc
  • CD-R Compact Disc
  • Blu-ray Disc registered trademark
  • IC cards including memory cards
  • Cards such as optical cards
  • EPROMs erasable programmable read-only memories
  • EEPROMs electrically erasable and programmable read-only memories
  • semiconductor memories such as flash ROMs, or programmable logic devices (PLD
  • each device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network.
  • This communication network is not particularly limited as long as the program code can be transmitted.
  • the Internet intranet, extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value-Added Network), CATV (Community Antenna television / Cable Television) communication network, virtual private network (Virtual Private) Network), telephone network, mobile communication network, satellite communication network, etc.
  • the transmission medium that constitutes this communication network may be any medium that can transmit the program code, and is not limited to a specific configuration or type.
  • the embodiment of the present invention may 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.
  • Embodiments of the present invention are not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. That is, an embodiment obtained by combining technical means appropriately modified within the scope of the claims is also included in the technical scope of the present invention.
  • the image filter device (CNN filter 107, 305) according to aspect 1 of the present invention is for generating one or more first type of input image data whose luminance or color difference is a pixel value, and a prediction image and a difference image.
  • a neural network which receives one or more second type of input image data having a pixel value as a value corresponding to a reference parameter, and outputs one or more first type of output image data having a luminance or color difference as a pixel value It has a network.
  • the image filter apparatus (CNN filter 107, 305) according to aspect 2 of the present invention further includes a parameter determination section (CNN parameter determination section 114) for updating neural network parameters used by the neural network in the above aspect 1. It is also good.
  • the parameters used by the neural network can be updated.
  • the reference parameter indicates the type of intra prediction and inter prediction in the image on which the image filter device is operated. Parameters may be included.
  • a parameter (intra prediction indicating an intra prediction direction in an image on which the image filter device acts) Mode may be included.
  • the reference parameter includes a parameter indicating the division depth of the partition in the image on which the image filter device acts. It may be done.
  • the reference parameter includes a parameter indicating the size of the partition in the image on which the image filter device acts. It may be
  • the image filter device (CNN filter 107, 305) according to aspect 8 of the present invention is the second neural that uses the first type of input image data input to the neural network as the output image in the above aspects 1 to 7.
  • a network may be provided.
  • the neural network in the above aspects 1 to 8 has the first color difference (Cb) and the second color difference (Cr) as pixel values.
  • a first type output in which the first type input image data and the second type input image data are input, and the first color difference (Cb) and the second color difference (Cr) are pixel values Image data may be output.
  • the neural network according to aspects 1 to 8 includes the first type input image data whose luminance is a pixel value, and the second type Means for outputting a first type of output image data having a luminance as a pixel value, and the first type of input image data having a first color difference and a second color difference as pixel values And means for receiving the second type of input image data and outputting the first type of output image data having the first color difference and the second color difference as pixel values.
  • the image filter device (CNN filters 107d and 107f) includes a plurality of individual neural networks (107d1 and 107f1) and a common neural network (107d3 and 107f3), and the individual neural networks (107d1 and 107d1) 107f1) selectively acts on the input image data according to the value of the filter parameter in the input image data to the image filter device (107), and the common neural network (107d3, 107f3) The output image data of the individual neural network operates in common regardless of the value of the filter parameter.
  • the image filter device (CNN filter 107e) includes a plurality of individual neural networks (107e2) and a common neural network (107e1), and the common neural network (107e1) is the image filter device. Acting on the input image data to (107), the individual neural network (107e2) selectively acts on the output image data of the common neural network according to the value of the filter parameter in the input image data .
  • the filter parameter may be a quantization parameter in an image on which the image filter device acts.
  • filter parameters corresponding to an image can be used.
  • the filter parameter determines the type of intra prediction and inter prediction in the image on which the image filter device operates. It may be a parameter shown.
  • the filter parameter is a parameter indicating an intra prediction direction in an image on which the image filter device acts (intra Prediction mode).
  • the filter parameter is a parameter indicating the division depth of the partition in the image on which the image filter device operates. May be there.
  • the filter parameter is a parameter indicating the size of a partition in an image on which the image filter device operates. You may
  • An image decoding apparatus (31, 31j) according to aspect 18 of the present invention is an image decoding apparatus for decoding an image, and includes the image filter apparatus according to aspects 1 to 15 as a filter for acting on a decoded image.
  • An image coding apparatus (11, 11j) according to aspect 19 of the present invention is an image coding apparatus for encoding an image, comprising the image filter apparatus according to any one of aspects 1 to 15 as a filter for acting on a locally decoded image There is.
  • aspects 13 to 17 of the present invention may have the following configurations.
  • the filter parameter is an average value of quantization parameters in an image on which the image filter device operates.
  • filter parameters corresponding to the entire image can be used.
  • the filter parameter determines the type of intra prediction and inter prediction in the image on which the image filter device operates. It may be an average value of the indicated parameters.
  • the filter parameter is a parameter indicating an intra prediction direction in an image on which the image filter device acts (intra It may be the average value of the prediction mode).
  • the filter parameter is a parameter indicating the division depth of the partition in the image on which the image filter device acts. It may be an average value.
  • the filter parameter is an average of parameters indicating the size of the partition in the image on which the image filter device operates. It may be a value.
  • An embodiment of the present invention is suitably applied to an image decoding apparatus that decodes encoded data obtained by encoding image data, and an image encoding apparatus that generates encoded data obtained by encoding image data. it can. Further, the present invention can be suitably applied to the data structure of encoded data generated by the image encoding device and referenced by the image decoding device.
  • the present application relates to the applications of Application No. 2017-155903 filed on Aug. 10, 2017, Application No. 2018-053226 filed on March 20, 2018, and priority based on the above-mentioned application Claim the right. The contents of the above application are incorporated herein by reference.
  • image coding device 31 image decoding device 107 CNN filter (image filter device) 114 CNN parameter determination unit (parameter determination unit)

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • General Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

入力画像データに対し、画像特性に応じたフィルタを適用する。CNNフィルタ(107)において、輝度又は色差を画素値とする1又は複数の第1種の入力画像データと、予測画像及び差分画像を生成するための参照パラメータに応じた値を画素値とする1又は複数の第2種の入力画像データとが入力され、輝度又は色差を画素値とする1又は複数の第1種の出力画像データを出力するニューラルネットワークを備えている。

Description

画像フィルタ装置、画像復号装置、および画像符号化装置
 本発明の一様態は、画像フィルタ装置、画像復号装置、および画像符号化装置に関する。
 動画像を効率的に伝送または記録するために、動画像を符号化することによって符号化データを生成する動画像符号化装置、および、当該符号化データを復号することによって復号画像を生成する動画像復号装置が用いられている。
 具体的な動画像符号化方式としては、例えば、H.264/AVCやHEVC(High-Efficiency Video Coding)にて提案されている方式などが挙げられる。
 このような動画像符号化方式においては、動画像を構成する画像(ピクチャ)は、画像を分割することにより得られるスライス、スライスを分割することにより得られる符号化ツリーユニット(CTU:Coding Tree Unit)、符号化ツリーユニットを分割することで得られる符号化単位(符号化ユニット(Coding Unit:CU)と呼ばれることもある)、及び、符号化単位を分割することより得られるブロックである予測ユニット(PU)、変換ユニット(TU)からなる階層構造により管理され、CUごとに符号化/復号される。
 また、このような動画像符号化方式においては、通常、入力画像を符号化/復号することによって得られる局所復号画像に基づいて予測画像が生成され、当該予測画像を入力画像(原画像)から減算して得られる予測残差(「差分画像」または「残差画像」と呼ぶこともある)が符号化される。予測画像の生成方法としては、画面間予測(インター予測)、および、画面内予測(イントラ予測)が挙げられる。
 また、近年の動画像符号化及び復号の技術として非特許文献1が挙げられる。
 また、Variable-filter-size Residue-learning CNN (VRCNN)とよばれるニューラルネットワークを使用する技術として非特許文献2が挙げられる。
"Algorithm Description of Joint Exploration Test Model 6", JVET-F1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 31 March - 7 April 2017 "A Convolutional Neural Network Approach for Post-Processingin HEVC Intra Coding"
 しかしながら、上述のニューラルネットワークを用いたフィルタ技術は量子化パラメータに応じて、ネットワーク全体を切り替えるのみであり、入力画像データの特性に応じたフィルタを適用する場合にネットワーク規模が大きくなるという問題があった。また、領域毎の符号化に適したフィルタを適用できないという問題があった。
 本発明は、上記の問題に鑑みてなされたものであり、その目的は、従来の構成に比べて、入力画像データに対し、ネットワーク規模を抑えながら画像特性に応じたフィルタの適用を実現することにある。
 上記の課題を解決するために、本発明に係る画像フィルタ装置は、輝度又は色差を画素値とする1又は複数の第1種の入力画像データと、予測画像及び差分画像を生成するための参照パラメータに応じた値を画素値とする1又は複数の第2種の入力画像データとが入力され、輝度又は色差を画素値とする1又は複数の第1種の出力画像データを出力するニューラルネットワークを備えている。
 上記の課題を解決するために、本発明に係る画像フィルタ装置は、複数の個別ニューラルネットワークと、共通ニューラルネットワークとを備え、上記個別ニューラルネットワークは、当該画像フィルタ装置への入力画像データにおけるフィルタパラメータの値に応じて、当該入力画像データに対して選択的に作用し、上記共通ニューラルネットワークは、上記個別ニューラルネットワークの出力画像データに対して、上記フィルタパラメータの値によらずに共通に作用する。
 上記の課題を解決するために、本発明に係る画像フィルタ装置は、複数の個別ニューラルネットワークと、共通ニューラルネットワークとを備え、上記共通ニューラルネットワークは、当該画像フィルタ装置への入力画像データに作用し、上記個別ニューラルネットワークは、上記入力画像データにおけるフィルタパラメータの値に応じて、上記共通ニューラルネットワークの出力画像データに対して選択的に作用する。
 従来の構成に比べて、入力画像データに対し、画像特性に応じたフィルタを適用することができる。
本実施形態に係る符号化ストリームのデータの階層構造を示す図である。 PU分割モードのパターンを示す図である。(a)~(h)は、それぞれ、PU分割モードが、2Nx2N、2NxN、2NxnU、2NxnD、Nx2N、nLx2N、nRx2N、および、NxNの場合のパーティション形状について示している。 参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。 第1の実施形態に係る画像符号化装置の構成を示すブロック図である。 第1の実施形態に係る画像復号装置の構成を示す概略図である。 本実施形態に係る画像符号化装置のインター予測画像生成部の構成を示す概略図である。 本実施形態に係る画像復号装置のインター予測画像生成部の構成を示す概略図である。 第1の実施形態に係る画像フィルタ装置の入出力の一例を示す概念図である。 第1の実施形態に係る画像フィルタ装置の構成を示す概略図である。 第1の実施形態に係る画像フィルタ装置の構成の変形例を示す概略図である。 量子化パラメータの一例を説明するための図である。 予測パラメータの一例を説明するための図である。 イントラ予測の一例を説明するための図である。 イントラ予測パラメータの一例を説明するための図である。 分割デプス情報の一例を説明するための図である。 分割デプス情報の他の一例を説明するための図である。 予測パラメータの他の一例を説明するための図である。 第2の実施形態に係る画像フィルタ装置の構成を示す概略図である。 第3の実施形態に係る画像フィルタ装置の一例を示す概念図である。 第3の実施形態に係る画像フィルタ装置の構成を示す概略図である。 第3の実施形態に係る画像フィルタ装置の構成の変形例を示す概略図である。 第4の実施形態に係る画像フィルタ装置の一例を示す概念図である。 第4の実施形態に係る画像フィルタ装置の一例の変形例を示す概念図である。 第5の実施形態に係る画像フィルタ装置の一例を示す概念図である。 第6の実施形態に係る画像フィルタ装置の変形例を示す概念図である。 第7の実施形態に係る画像符号化装置の構成を示すブロック図である。 本実施形態に係る画像フィルタ装置の構成を示す概略図である。 本実施形態に係る画像フィルタ装置のパラメータの更新の一例を示す概念図である。 パラメータを伝送するデータ構造を示す図である。 第7の実施形態に係る画像復号装置の構成を示すブロック図である。 本実施形態に係る画像符号化装置を搭載した送信装置、および、画像復号装置を搭載した受信装置の構成について示した図である。(a)は、画像符号化装置を搭載した送信装置を示しており、(b)は、画像復号装置を搭載した受信装置を示している。 本実施形態に係る画像符号化装置を搭載した記録装置、および、画像復号装置を搭載した再生装置の構成について示した図である。(a)は、画像符号化装置を搭載した記録装置を示しており、(b)は、画像復号装置を搭載した再生装置を示している。 本実施形態に係る画像伝送システムの構成を示す概略図である。 第1の実施形態に係る画像フィルタ装置の入出力の他の例を示す概念図である。
  (第1の実施形態)
 以下、図面を参照しながら本発明の実施形態について説明する。
 図33は、本実施形態に係る画像伝送システム1の構成を示す概略図である。
 画像伝送システム1は、符号化対象画像を符号化した符号を伝送し、伝送された符号を復号し画像を表示するシステムである。画像伝送システム1は、画像符号化装置11、ネットワーク21、画像復号装置31及び画像表示装置41を含んで構成される。
 画像符号化装置11には、単一レイヤもしくは複数レイヤの画像を示す画像Tが入力される。レイヤとは、ある時間を構成するピクチャが1つ以上ある場合に、複数のピクチャを区別するために用いられる概念である。たとえば、同一ピクチャを、画質や解像度の異なる複数のレイヤで符号化するとスケーラブル符号化になり、異なる視点のピクチャを複数のレイヤで符号化するとビュースケーラブル符号化となる。複数のレイヤのピクチャ間で予測(インターレイヤ予測、インタービュー予測)を行う場合には、符号化効率が大きく向上する。また予測を行わない場合(サイマルキャスト)にも、符号化データをまとめることができる。
 ネットワーク21は、画像符号化装置11が生成した符号化ストリームTeを画像復号装置31に伝送する。ネットワーク21は、インターネット(internet)、広域ネットワーク(WAN:Wide Area Network)、小規模ネットワーク(LAN:Local Area Network)またはこれらの組み合わせである。ネットワーク21は、必ずしも双方向の通信網に限らず、地上デジタル放送、衛星放送等の放送波を伝送する一方向の通信網であっても良い。また、ネットワーク21は、DVD(Digital Versatile Disc)、BD(Blue-ray Disc)等の符号化ストリームTeを記録した記憶媒体で代替されても良い。
 画像復号装置31は、ネットワーク21が伝送した符号化ストリームTeのそれぞれを復号し、それぞれ復号した1または複数の復号画像Tdを生成する。
 画像表示装置41は、画像復号装置31が生成した1または複数の復号画像Tdの全部または一部を表示する。画像表示装置41は、例えば、液晶ディスプレイ、有機EL(Electro-luminescence)ディスプレイ等の表示デバイスを備える。また、空間スケーラブル符号化、SNRスケーラブル符号化では、画像復号装置31、画像表示装置41が高い処理能力を有する場合には、画質の高い拡張レイヤ画像を表示し、より低い処理能力しか有しない場合には、拡張レイヤほど高い処理能力、表示能力を必要としないベースレイヤ画像を表示する。
 <演算子>
 本明細書で用いる演算子を以下に記載する。
 >>は右ビットシフト、<<は左ビットシフト、&はビットワイズAND、|はビットワイズOR、|=はOR代入演算子)である。
 x ? y : zは、xが真(0以外)の場合にy、xが偽(0)の場合にzをとる3項演算子である。
 Clip3(a, b, c) は、cをa以上b以下の値にクリップする関数であり、c<aの場合にはaを返し、c>bの場合にはbを返し、その他の場合にはcを返す関数である(ただし、a<=b)。
  <符号化ストリームTeの構造>
 本実施形態に係る画像符号化装置11および画像復号装置31の詳細な説明に先立って、画像符号化装置11によって生成され、画像復号装置31によって復号される符号化ストリームTeのデータ構造について説明する。
 図1は、符号化ストリームTeにおけるデータの階層構造を示す図である。符号化ストリームTeは、例示的に、シーケンス、およびシーケンスを構成する複数のピクチャを含む。図1の(a)~(f)は、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス、ピクチャPICTを規定する符号化ピクチャ、スライスSを規定する符号化スライス、スライスデータを規定する符号化スライスデータ、符号化スライスデータに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニット(Coding Unit;CU)を示す図である。
  (符号化ビデオシーケンス)
 符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために画像復号装置31が参照するデータの集合が規定されている。シーケンスSEQは、図1の(a)に示すように、ビデオパラメータセット(Video Parameter Set)、シーケンスパラメータセットSPS(Sequence Parameter Set)、ピクチャパラメータセットPPS(Picture Parameter Set)、ピクチャPICT、及び、付加拡張情報SEI(Supplemental Enhancement Information)を含んでいる。ここで#の後に示される値はレイヤIDを示す。図1では、#0と#1すなわちレイヤ0とレイヤ1の符号化データが存在する例を示すが、レイヤの種類およびレイヤの数はこれによらない。
 ビデオパラメータセットVPSは、複数のレイヤから構成されている動画像において、複数の動画像に共通する符号化パラメータの集合および動画像に含まれる複数のレイヤおよび個々のレイヤに関連する符号化パラメータの集合が規定されている。
 シーケンスパラメータセットSPSでは、対象シーケンスを復号するために画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの幅や高さが規定される。なお、SPSは複数存在してもよい。その場合、PPSから複数のSPSの何れかを選択する。
 ピクチャパラメータセットPPSでは、対象シーケンス内の各ピクチャを復号するために画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの復号に用いられる量子化幅の基準値(pic_init_qp_minus26)や重み付き予測の適用を示すフラグ(weighted_pred_flag)が含まれる。なお、PPSは複数存在してもよい。その場合、対象シーケンス内の各ピクチャから複数のPPSの何れかを選択する。
  (符号化ピクチャ)
 符号化ピクチャでは、処理対象のピクチャPICTを復号するために画像復号装置31が参照するデータの集合が規定されている。ピクチャPICTは、図1の(b)に示すように、スライスS0~SNS-1を含んでいる(NSはピクチャPICTに含まれるスライスの総数)。
 なお、以下、スライスS0~SNS-1のそれぞれを区別する必要が無い場合、符号の添え字を省略して記述することがある。また、以下に説明する符号化ストリームTeに含まれるデータであって、添え字を付している他のデータについても同様である。
  (符号化スライス)
 符号化スライスでは、処理対象のスライスSを復号するために画像復号装置31が参照するデータの集合が規定されている。スライスSは、図1の(c)に示すように、スライスヘッダSH、および、スライスデータSDATAを含んでいる。
 スライスヘッダSHには、対象スライスの復号方法を決定するために画像復号装置31が参照する符号化パラメータ群が含まれる。スライスタイプを指定するスライスタイプ指定情報(slice_type)は、スライスヘッダSHに含まれる符号化パラメータの一例である。
 スライスタイプ指定情報により指定可能なスライスタイプとしては、(1)符号化の際にイントラ予測のみを用いるIスライス、(2)符号化の際に単方向予測、または、イントラ予測を用いるPスライス、(3)符号化の際に単方向予測、双方向予測、または、イントラ予測を用いるBスライスなどが挙げられる。
 なお、スライスヘッダSHには、上記符号化ビデオシーケンスに含まれる、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。
  (符号化スライスデータ)
 符号化スライスデータでは、処理対象のスライスデータSDATAを復号するために画像復号装置31が参照するデータの集合が規定されている。スライスデータSDATAは、図1の(d)に示すように、符号化ツリーユニット(CTU:Coding Tree Unit)を含んでいる。CTUは、スライスを構成する固定サイズ(例えば64x64)のブロックであり、最大符号化単位(LCU:Largest Coding Unit)と呼ぶこともある。
  (符号化ツリーユニット)
 図1の(e)に示すように、処理対象の符号化ツリーユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。符号化ツリーユニットは、再帰的な4分木分割により分割される。再帰的な4分木分割により得られる木構造のノードのことを符号化ノード(CN:Coding Node)と称する。4分木の中間ノードは、符号化ノードであり、符号化ツリーユニット自身も最上位の符号化ノードとして規定される。CTUは、分割フラグ(cu_split_flag)を含み、cu_split_flagが1の場合には、4つの符号化ノードCNに分割される。cu_split_flagが0の場合には、符号化ノードCNは分割されず、1つの符号化ユニット(CU:Coding Unit)をノードとして持つ。符号化ユニットCUは符号化ノードの末端ノードであり、これ以上分割されない。符号化ユニットCUは、符号化処理の基本的な単位となる。
 また、符号化ツリーユニットCTUのサイズが64x64画素の場合には、符号化ユニットのサイズは、64x64画素、32x32画素、16x16画素、および、8x8画素の何れかをとり得る。
  (符号化ユニット)
 図1の(f)に示すように、処理対象の符号化ユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。具体的には、符号化ユニットは、予測ツリー、変換ツリー、CUヘッダCUHから構成される。CUヘッダでは予測モード、分割方法(PU分割モード)等が規定される。
 予測ツリーでは、符号化ユニットを1または複数に分割した各予測ユニット(PU)の予測情報(参照ピクチャインデックス、動きベクトル等)が規定される。別の表現でいえば、予測ユニットは、符号化ユニットを構成する1または複数の重複しない領域である。また、予測ツリーは、上述の分割により得られた1または複数の予測ユニットを含む。なお、以下では、予測ユニットをさらに分割した予測単位を「サブブロック」と呼ぶ。サブブロックは、複数の画素によって構成されている。予測ユニットとサブブロックのサイズが等しい場合には、予測ユニット中のサブブロックは1つである。予測ユニットがサブブロックのサイズよりも大きい場合には、予測ユニットは、サブブロックに分割される。たとえば予測ユニットが8x8、サブブロックが4x4の場合には、予測ユニットは水平に2分割、垂直に2分割からなる、4つのサブブロックに分割される。
 予測処理は、この予測ユニット(サブブロック)ごとに行ってもよい。
 予測ツリーにおける分割の種類は、大まかにいえば、イントラ予測の場合と、インター予測の場合との2つがある。イントラ予測とは、同一ピクチャ内の予測であり、インター予測とは、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。
 イントラ予測の場合、分割方法は、2Nx2N(符号化ユニットと同一サイズ)と、NxNとがある。
 また、インター予測の場合、分割方法は、符号化データのPU分割モード(part_mode)により符号化され、2Nx2N(符号化ユニットと同一サイズ)、2NxN、2NxnU、2NxnD、Nx2N、nLx2N、nRx2N、および、NxNなどがある。なお、2NxN、Nx2Nは1:1の対称分割を示し、2NxnU、2NxnDおよびnLx2N、nRx2Nは、1:3、3:1の非対称分割を示す。CUに含まれるPUを順にPU0、PU1、PU2、PU3と表現する。
 図2の(a)~(h)に、それぞれのPU分割モードにおけるパーティションの形状(PU分割の境界の位置)を具体的に図示している。図2の(a)は、2Nx2Nのパーティションを示し、(b)、(c)、(d)は、それぞれ、2NxN、2NxnU、および、2NxnDのパーティション(横長パーティション)を示す。(e)、(f)、(g)は、それぞれ、Nx2N、nLx2N、nRx2Nである場合のパーティション(縦長パーティション)を示し、(h)は、NxNのパーティションを示す。なお、横長パーティションと縦長パーティションを総称して長方形パーティション、2Nx2N、NxNを総称して正方形パーティションと呼ぶ。
 また、変換ツリーにおいては、符号化ユニットが1または複数の変換ユニットに分割され、各変換ユニットの位置とサイズとが規定される。別の表現でいえば、変換ユニットは、符号化ユニットを構成する1または複数の重複しない領域のことである。また、変換ツリーは、上述の分割より得られた1または複数の変換ユニットを含む。
 変換ツリーにおける分割には、符号化ユニットと同一のサイズの領域を変換ユニットとして割り付けるものと、上述したCUの分割と同様、再帰的な4分木分割によるものがある。
 変換処理は、この変換ユニットごとに行われる。
  (予測パラメータ)
 予測ユニット(PU:Prediction Unit)の予測画像は、PUに付随する予測パラメータによって導出される。予測パラメータには、イントラ予測の予測パラメータもしくはインター予測の予測パラメータがある。以下、インター予測の予測パラメータ(インター予測パラメータ)について説明する。インター予測パラメータは、予測リスト利用フラグpredFlagL0、predFlagL1と、参照ピクチャインデックスrefIdxL0、refIdxL1と、動きベクトルmvL0、mvL1から構成される。予測リスト利用フラグpredFlagL0、predFlagL1は、各々L0リスト、L1リストと呼ばれる参照ピクチャリストが用いられるか否かを示すフラグであり、値が1の場合に対応する参照ピクチャリストが用いられる。なお、本明細書中「XXであるか否かを示すフラグ」と記す場合、フラグが0以外(たとえば1)をXXである場合、0をXXではない場合とし、論理否定、論理積などでは1を真、0を偽と扱う(以下同様)。但し、実際の装置や方法では真値、偽値として他の値を用いることもできる。
 符号化データに含まれるインター予測パラメータを導出するためのシンタックス要素には、例えば、PU分割モードpart_mode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLXがある。
  (参照ピクチャリスト)
 参照ピクチャリストは、参照ピクチャメモリ306に記憶された参照ピクチャからなるリストである。図3は、参照ピクチャおよび参照ピクチャリストの一例を示す概念図である。図3(a)において、矩形はピクチャ、矢印はピクチャの参照関係、横軸は時間、矩形中のI、P、Bは各々イントラピクチャ、単予測ピクチャ、双予測ピクチャ、矩形中の数字は復号順を示す。図に示すように、ピクチャの復号順は、I0、P1、B2、B3、B4であり、表示順は、I0、B3、B2、B4、P1である。図3(b)に、参照ピクチャリストの例を示す。参照ピクチャリストは、参照ピクチャの候補を表すリストであり、1つのピクチャ(スライス)が1つ以上の参照ピクチャリストを有してもよい。図の例では、対象ピクチャB3は、L0リストRefPicList0およびL1リストRefPicList1の2つの参照ピクチャリストを持つ。対象ピクチャがB3の場合の参照ピクチャは、I0、P1、B2であり、参照ピクチャはこれらのピクチャを要素として持つ。個々の予測ユニットでは、参照ピクチャリストRefPicListX中のどのピクチャを実際に参照するかを参照ピクチャインデックスrefIdxLXで指定する。図では、refIdxL0およびrefIdxL1により参照ピクチャP1とB2が参照される例を示す。
  (マージ予測とAMVP予測)
 予測パラメータの復号(符号化)方法には、マージ予測(merge)モードとAMVP(Adaptive Motion Vector Prediction、適応動きベクトル予測)モードがある、マージフラグmerge_flagは、これらを識別するためのフラグである。マージ予測モードは、予測リスト利用フラグpredFlagLX(またはインター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めずに、既に処理した近傍PUの予測パラメータから導出する用いるモードであり、AMVPモードは、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めるモードである。なお、動きベクトルmvLXは、予測ベクトルmvpLXを識別する予測ベクトルインデックスmvp_LX_idxと差分ベクトルmvdLXとして符号化される。
 インター予測識別子inter_pred_idcは、参照ピクチャの種類および数を示す値であり、PRED_L0、PRED_L1、PRED_BIの何れかの値をとる。PRED_L0、PRED_L1は、各々L0リスト、L1リストの参照ピクチャリストで管理された参照ピクチャを用いることを示し、1枚の参照ピクチャを用いること(単予測)を示す。PRED_BIは2枚の参照ピクチャを用いること(双予測BiPred)を示し、L0リストとL1リストで管理された参照ピクチャを用いる。予測ベクトルインデックスmvp_LX_idxは予測ベクトルを示すインデックスであり、参照ピクチャインデックスrefIdxLXは、参照ピクチャリストで管理された参照ピクチャを示すインデックスである。なお、LXは、L0予測とL1予測を区別しない場合に用いられる記述方法であり、LXをL0、L1に置き換えることでL0リストに対するパラメータとL1リストに対するパラメータを区別する。
 マージインデックスmerge_idxは、処理が完了したPUから導出される予測パラメータ候補(マージ候補)のうち、いずれかの予測パラメータを復号対象PUの予測パラメータとして用いるかを示すインデックスである。
  (動きベクトル)
 動きベクトルmvLXは、異なる2つのピクチャ上のブロック間のずれ量を示す。動きベクトルmvLXに関する予測ベクトル、差分ベクトルを、それぞれ予測ベクトルmvpLX、差分ベクトルmvdLXと呼ぶ。
 (インター予測識別子inter_pred_idcと予測リスト利用フラグpredFlagLX)
 インター予測識別子inter_pred_idcと、予測リスト利用フラグpredFlagL0、predFlagL1の関係は以下のとおりであり、相互に変換可能である。
 inter_pred_idc = (predFlagL1<<1) + predFlagL0
 predFlagL0 = inter_pred_idc & 1
 predFlagL1 = inter_pred_idc >> 1
 なお、インター予測パラメータは、予測リスト利用フラグを用いても良いし、インター予測識別子を用いてもよい。また、予測リスト利用フラグを用いた判定は、インター予測識別子を用いた判定に置き替えてもよい。逆に、インター予測識別子を用いた判定は、予測リスト利用フラグを用いた判定に置き替えてもよい。
 (双予測biPredの判定)
 双予測BiPredであるかのフラグbiPredは、2つの予測リスト利用フラグがともに1であるかによって導出できる。たとえば以下の式で導出できる。
 biPred = (predFlagL0 == 1 && predFlagL1 == 1)
 フラグbiPredは、インター予測識別子が2つの予測リスト(参照ピクチャ)を使うことを示す値であるか否かによっても導出できる。たとえば以下の式で導出できる。
 biPred = (inter_pred_idc == PRED_BI) ? 1 : 0
 上記式は、以下の式でも表現できる。
 biPred = (inter_pred_idc == PRED_BI)
 なお、PRED_BIはたとえば3の値を用いることができる。
  (画像復号装置の構成)
 次に、本実施形態に係る画像復号装置31の構成について説明する。図5は、本実施形態に係る画像復号装置31の構成を示す概略図である。画像復号装置31は、エントロピー復号部301、予測パラメータ復号部(予測画像復号装置)302、CNN(Convolutional Neural Network、畳み込みニューラルネットワーク)フィルタ305、参照ピクチャメモリ306、予測パラメータメモリ307、予測画像生成部(予測画像生成装置)308、逆量子化・逆変換部311、及び加算部312を含んで構成される。
 また、予測パラメータ復号部302は、インター予測パラメータ復号部303及びイントラ予測パラメータ復号部304を含んで構成される。予測画像生成部308は、インター予測画像生成部309及びイントラ予測画像生成部310を含んで構成される。
 エントロピー復号部301は、外部から入力された符号化ストリームTeに対してエントロピー復号を行って、個々の符号(シンタックス要素)を分離し復号する。分離された符号には、予測画像を生成するための予測情報および、差分画像を生成するための残差情報などがある。
 エントロピー復号部301は、分離した符号の一部を予測パラメータ復号部302に出力する。分離した符号の一部とは、例えば、量子化パラメータ(QP)、予測モードpredMode、PU分割モードpart_mode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLXである。どの符号を復号するかの制御は、予測パラメータ復号部302の指示に基づいて行われる。エントロピー復号部301は、量子化係数を逆量子化・逆変換部311に出力する。この量子化係数は、符号化処理において、残差信号に対してDCT(Discrete Cosine Transform、離散コサイン変換)、DST(Discrete Sine Transform、離散サイン変換)、KLT(Karyhnen Loeve Transform、カルーネンレーベ変換)等の周波数変換を行い量子化して得られる係数である。
 また、エントロピー復号部301は、分離した符号の一部を後述するCNNフィルタ305に出力する。分離した符号の一部とは、例えば、量子化パラメータ(QP)、予測パラメータ、デプス情報(分割情報)である。
 インター予測パラメータ復号部303は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してインター予測パラメータを復号する。
 インター予測パラメータ復号部303は、復号したインター予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。
 イントラ予測パラメータ復号部304は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してイントラ予測パラメータを復号する。イントラ予測パラメータとは、CUを1つのピクチャ内で予測する処理で用いるパラメータ、例えば、イントラ予測モードIntraPredModeである。イントラ予測パラメータ復号部304は、復号したイントラ予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。
 イントラ予測パラメータ復号部304は、輝度と色差で異なるイントラ予測モードを導出しても良い。この場合、イントラ予測パラメータ復号部304は、輝度の予測パラメータとして輝度予測モードIntraPredModeY、色差の予測パラメータとして、色差予測モードIntraPredModeCを復号する。輝度予測モードIntraPredModeYは、35モードであり、プレーナ予測(0)、DC予測(1)、方向予測(2~34)が対応する。色差予測モードIntraPredModeCは、プレーナ予測(0)、DC予測(1)、方向予測(2~34)、LMモード(35)の何れかを用いるものである。イントラ予測パラメータ復号部304は、IntraPredModeCは輝度モードと同じモードであるか否かを示すフラグを復号し、フラグが輝度モードと同じモードであることを示せば、IntraPredModeCにIntraPredModeYを割り当て、フラグが輝度モードと異なるモードであることを示せば、IntraPredModeCとして、プレーナ予測(0)、DC予測(1)、方向予測(2~34)、LMモード(35)を復号しても良い。
 CNNフィルタ305は、エントロピー復号部301から量子化パラメータ、および予測パラメータを取得し、加算部312が生成したCUの復号画像を入力画像(フィルタ前画像)とし、フィルタ前画像に処理を施し、出力画像(フィルタ後画像)を出力する。CNNフィルタ305は、後述する画像符号化装置11が備えるCNNフィルタ107と同様の機能を有する。
 参照ピクチャメモリ306は、加算部312が生成したCUの復号画像を、復号対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 予測パラメータメモリ307は、予測パラメータを、復号対象のピクチャ及び予測ユニット(もしくはサブブロック、固定サイズブロック、ピクセル)毎に予め定めた位置に記憶する。具体的には、予測パラメータメモリ307は、インター予測パラメータ復号部303が復号したインター予測パラメータ、イントラ予測パラメータ復号部304が復号したイントラ予測パラメータ及びエントロピー復号部301が分離した予測モードpredModeを記憶する。記憶されるインター予測パラメータには、例えば、予測リスト利用フラグpredFlagLX(インター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXがある。
 予測画像生成部308には、エントロピー復号部301から入力された予測モードpredModeが入力され、また予測パラメータ復号部302から予測パラメータが入力される。また、予測画像生成部308は、参照ピクチャメモリ306から参照ピクチャを読み出す。予測画像生成部308は、予測モードpredModeが示す予測モードで、入力された予測パラメータと読み出した参照ピクチャ(参照ピクチャブロック)を用いてPUもしくはサブブロックの予測画像を生成する。
 ここで、予測モードpredModeがインター予測モードを示す場合、インター予測画像生成部309は、インター予測パラメータ復号部303から入力されたインター予測パラメータと読み出した参照ピクチャ(参照ピクチャブロック)を用いてインター予測によりPUもしくはサブブロックの予測画像を生成する。
 インター予測画像生成部309は、予測リスト利用フラグpredFlagLXが1である参照ピクチャリスト(L0リスト、もしくはL1リスト)に対し、参照ピクチャインデックスrefIdxLXで示される参照ピクチャから、復号対象PUを基準として動きベクトルmvLXが示す位置にある参照ピクチャブロックを参照ピクチャメモリ306から読み出す。インター予測画像生成部309は、読み出した参照ピクチャブロックをもとに予測を行ってPUの予測画像を生成する。インター予測画像生成部309は、生成したPUの予測画像を加算部312に出力する。ここで、参照ピクチャブロックとは、参照ピクチャ上の画素の集合(通常矩形であるのでブロックと呼ぶ)であり、PUもしくはサブブロックの予測画像を生成するために参照する領域である。
 予測モードpredModeがイントラ予測モードを示す場合、イントラ予測画像生成部310は、イントラ予測パラメータ復号部304から入力されたイントラ予測パラメータと読み出した参照ピクチャを用いてイントラ予測を行う。具体的には、イントラ予測画像生成部310は、復号対象のピクチャであって、既に復号されたPUのうち、復号対象PUから予め定めた範囲にある隣接PUを参照ピクチャメモリ306から読み出す。予め定めた範囲とは、復号対象PUがいわゆるラスタースキャンの順序で順次移動する場合、例えば、左、左上、上、右上の隣接PUのうちのいずれかであり、イントラ予測モードによって異なる。ラスタースキャンの順序とは、各ピクチャにおいて、上端から下端まで各行について、順次左端から右端まで移動させる順序である。
 イントラ予測画像生成部310は、読み出した隣接PUに基づいてイントラ予測モードIntraPredModeが示す予測モードで予測を行ってPUの予測画像を生成する。イントラ予測画像生成部310は、生成したPUの予測画像を加算部312に出力する。
 イントラ予測パラメータ復号部304において、輝度と色差で異なるイントラ予測モードを導出する場合、イントラ予測画像生成部310は、輝度予測モードIntraPredModeYに応じて、プレーナ予測(0)、DC予測(1)、方向予測(2~34)の何れかによって輝度のPUの予測画像を生成し、色差予測モードIntraPredModeCに応じて、プレーナ予測(0)、DC予測(1)、方向予測(2~34)、LMモード(35)の何れかによって色差のPUの予測画像を生成する。
 逆量子化・逆変換部311は、エントロピー復号部301から入力された量子化係数を逆量子化して変換係数を求める。逆量子化・逆変換部311は、求めた変換係数について逆DCT、逆DST、逆KLT等の逆周波数変換を行い、残差信号を算出する。逆量子化・逆変換部311は、算出した残差信号を加算部312に出力する。
 加算部312は、インター予測画像生成部309またはイントラ予測画像生成部310から入力されたPUの予測画像と逆量子化・逆変換部311から入力された残差信号を画素毎に加算して、PUの復号画像を生成する。加算部312は、生成したPUの復号画像を参照ピクチャメモリ306に記憶し、生成したPUの復号画像をピクチャ毎に統合した復号画像Tdを外部に出力する。
  (インター予測画像生成部309)
 図7は、本実施形態に係る予測画像生成部308に含まれるインター予測画像生成部309の構成を示す概略図である。インター予測画像生成部309は、動き補償部(予測画像生成装置)3091、重み予測部3094を含んで構成される。
  (動き補償)
 動き補償部3091は、インター予測パラメータ復号部303から入力された、インター予測パラメータ(予測リスト利用フラグpredFlagLX、参照ピクチャインデックスrefIdxLX、動きベクトルmvLX)に基づいて、参照ピクチャメモリ306から、参照ピクチャインデックスrefIdxLXで指定された参照ピクチャRefXにおいて、復号対象PUの位置を起点として、動きベクトルmvLXだけずれた位置にあるブロックを読み出すことによって補間画像(動き補償画像predSamplesLX)を生成する。ここで、動きベクトルmvLXの精度が整数精度でない場合には、動き補償フィルタと呼ばれる小数位置の画素を生成するためのフィルタを施して、動き補償画像を生成する。
  (重み予測)
 重み予測部3094は、入力される動き補償画像predSamplesLXに重み係数を乗算することによりPUの予測画像を生成する。
  (画像符号化装置の構成)
 次に、本実施形態に係る画像符号化装置11の構成について説明する。図4は、本実施形態に係る画像符号化装置11の構成を示すブロック図である。画像符号化装置11は、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、加算部106、CNN(Convolutional Neural Network、畳み込みニューラルネットワーク)フィルタ107、予測パラメータメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、予測パラメータ符号化部111を含んで構成される。予測パラメータ符号化部111は、インター予測パラメータ符号化部112及びイントラ予測パラメータ符号化部113を含んで構成される。
 予測画像生成部101は画像Tの各ピクチャについて、そのピクチャを分割した領域である符号化ユニットCU毎に予測ユニットPUの予測画像Pを生成する。ここで、予測画像生成部101は、予測パラメータ符号化部111から入力された予測パラメータに基づいて参照ピクチャメモリ109から復号済のブロックを読み出す。予測パラメータ符号化部111から入力された予測パラメータとは、例えばインター予測の場合、動きベクトルである。予測画像生成部101は、対象PUを起点として動きベクトルが示す参照画像上の位置にあるブロックを読み出す。またイントラ予測の場合、予測パラメータとは例えばイントラ予測モードである。イントラ予測モードで使用する隣接PUの画素値を参照ピクチャメモリ109から読み出し、PUの予測画像Pを生成する。予測画像生成部101は、読み出した参照ピクチャブロックについて複数の予測方式のうちの1つの予測方式を用いてPUの予測画像Pを生成する。予測画像生成部101は、生成したPUの予測画像Pを減算部102に出力する。
 なお、予測画像生成部101は、既に説明した予測画像生成部308と同じ動作である。例えば、図6は、予測画像生成部101に含まれるインター予測画像生成部1011の構成を示す概略図である。インター予測画像生成部1011は、動き補償部10111、重み予測部10112を含んで構成される。動き補償部10111および重み予測部10112については、上述の動き補償部3091、重み予測部3094のそれぞれと同様の構成であるためここでの説明を省略する。
 予測画像生成部101は、予測パラメータ符号化部から入力されたパラメータを用いて、参照ピクチャメモリから読み出した参照ブロックの画素値をもとにPUの予測画像Pを生成する。予測画像生成部101で生成した予測画像は減算部102、加算部106に出力される。
 減算部102は、予測画像生成部101から入力されたPUの予測画像Pの信号値を、画像Tの対応するPUの画素値から減算して、残差信号を生成する。減算部102は、生成した残差信号を変換・量子化部103に出力する。
 変換・量子化部103は、減算部102から入力された残差信号について周波数変換を行い、変換係数を算出する。変換・量子化部103は、算出した変換係数を量子化して量子化係数を求める。変換・量子化部103は、求めた量子化係数をエントロピー符号化部104及び逆量子化・逆変換部105に出力する。
 エントロピー符号化部104には、変換・量子化部103から量子化係数が入力され、予測パラメータ符号化部111から符号化パラメータが入力される。入力される符号化パラメータには、例えば、量子化パラメータ、デプス情報(分割情報)、参照ピクチャインデックスrefIdxLX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX、予測モードpredMode、及びマージインデックスmerge_idx等の符号がある。
 エントロピー符号化部104は、入力された量子化係数と符号化パラメータをエントロピー符号化して符号化ストリームTeを生成し、生成した符号化ストリームTeを外部に出力する。
 逆量子化・逆変換部105は、変換・量子化部103から入力された量子化係数を逆量子化して変換係数を求める。逆量子化・逆変換部105は、求めた変換係数について逆周波数変換を行い、残差信号を算出する。逆量子化・逆変換部105は、算出した残差信号を加算部106に出力する。
 加算部106は、予測画像生成部101から入力されたPUの予測画像Pの信号値と逆量子化・逆変換部105から入力された残差信号の信号値を画素毎に加算して、復号画像を生成する。加算部106は、生成した復号画像を参照ピクチャメモリ109に記憶する。
  (画像フィルタ装置の構成)
 CNNフィルタ107は、本実施形態に係る画像フィルタ装置の一例である。本実施形態に係る画像フィルタ装置は、局所復号画像に作用させるフィルタとして機能する。本実施形態に係る画像フィルタ装置は、輝度又は色差を画素値とする1又は複数の第1種の入力画像データと、予測画像及び差分画像を生成するための参照パラメータに応じた値を画素値とする1又は複数の第2種の入力画像データとが入力され、輝度又は色差を画素値とする1又は複数の第1種の出力画像データを出力するニューラルネットワークを備えている。
 ここで、本明細書における参照パラメータとは、予測画像及び差分画像を生成するために参照されるパラメータのことであり、一例として、上述した符号化パラメータが含まれ得る。参照パラメータの一例を具体的に記載すれば以下の通りである。
 ・画像フィルタ装置が作用する画像(以下、入力画像ともよぶ)における量子化パラメータ
 ・入力画像におけるイントラ予測及びインター予測の種別を示すパラメータ
 ・入力画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)
 ・入力画像におけるインター予測の参照ピクチャを示すパラメータ
 ・入力画像におけるパーティションの分割深度を示すパラメータ
 ・入力画像におけるパーティションのサイズを示すパラメータ
 なお、参照パラメータのことを、特に混乱がない限り、単にパラメータと呼ぶこともある。また、参照パラメータを符号化データにおいて明示的に伝送してもよい。
 CNNフィルタ107は、加算部106が生成した復号画像のデータを第1種の入力画像(フィルタ前画像)データとして入力され、フィルタ前画像に処理を施し、第1種の出力画像(フィルタ後画像)データを出力する。本実施形態に係る画像フィルタ装置は、予測パラメータ符号化部111もしくはエントロピー復号部301から、量子化パラメータ、予測パラメータを第2種の入力画像データとして取得して、フィルタ前画像に処理を施すこともできる。ここで、画像フィルタ装置によるフィルタ後の出力画像は、原画像に可能な限り一致することが期待される。
 画像フィルタ装置は、符号化歪み、すなわち、ブロック歪みを低減する効果とリンギング歪みを低減する効果とを有する。
 ここで、CNNとは、コンボリューション層(積和演算における重み係数及びバイアス/オフセットがピクチャ内の位置に依存しない層)を少なくとも有するニューラルネットワークの総称である。重み係数をカーネルとも呼ぶ。CNNフィルタ107は、コンボリューション層の他、フルコネクション層(FCN)と呼ばれる、重み計算がピクチャ内の位置に依存する層を含むことができる。また、CNNフィルタ107は、層に属するニューロンが、その層の一部の入力とのみ接続する構成(換言すると、ニューロンは空間的位置を有し、空間的な位置に近い入力のみと接続する構成)であるLCN(Locally Connected Networks)層も含むことができる。CNNフィルタ107において、コンボリューション層への入力サイズと、出力サイズとは異なってもよい。すなわち、CNNフィルタ107は、コンボリューションフィルタを適用する位置を移動させる場合の移動量(ステップサイズ)を1より大きくすることで、出力サイズが入力サイズよりも小さくなる層を含むことができる。また、出力サイズが入力サイズよりも大きくなるデコンボリューション層(Deconvolution)も含むことができる。デコンボリューション層は、トランスポーズコンボリューション(Transposed Convolution)とよばれる場合もある。また、CNNフィルタ107は、プーリング層(Pooling)、ドロップアウト(DropOut)層等を含むことができる。プーリング層は、大きな画像を小さなウィンドウに区切り、区切ったそれぞれのウィンドウに応じて最大値や平均値等の代表値を得る層であり、ドロップアウト層は、確率に応じて出力を固定値(例えば0)にすることでランダム性を追加する層である。
 図8は、CNNフィルタ107の入出力の一例を示す概念図である。図8に示す一例において、フィルタ前画像は、輝度(Y)のチャネル、第1の色差(Cb)のチャネル、および第2の色差(Cr)のチャネルを含む3つの画像のチャネル、ならびに量子化パラメータ(QP)のチャネルを含む1つの符号化パラメータ(参照パラメータ)のチャネルを含む。また、フィルタ後画像は、処理が施された輝度(Y')のチャネル、処理が施された色差(Cb')のチャネル、および処理が施された色差(Cr')のチャネルを含む3つの画像のチャネルを含む。
 なお、図8はCNNフィルタ107の入出力の一例であって、例えば、フィルタ前画像のY(輝度)、第1の色差(Cb)、及び第2の色差(Cr)が、それぞれのチャネルに分かれて入力される構成も、当然に本実施形態の構成に含まれている。さらに、フィルタ前画像のY(輝度)と、第1の色差(Cb)及び第2の色差(Cr)とが、それぞれのチャネルに分かれて入力される構成も、当然に本実施形態の構成に含まれている。また、入力されるフィルタ前画像は、Y、Cb、Crのチャネルに限定されず、例えば、R、G、Bのチャネルや、X、Y、Zのチャネル、CMYKのチャネルであってもよい。また、輝度と色差を用いたチャネルも、Y、Cb、Crに限定されず、例えば、Y、U、Vや、Y、Pb、Prや、Y、Dz、Dxや、I、Ct、Cpと表記されるチャネルであってもよい。図34は、CNNフィルタ107の入出力の他の例を示す概念図である。
 図34の(a)では、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)及び量子化パラメータ(QP)のチャネルと、第2の色差(Cr)及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107に入力される。CNNフィルタ107は、輝度(Y)及び量子化パラメータ(QP)のチャネルに処理を施し(Y')を出力するCNNフィルタ107-1と、第1の色差(Cb)及び量子化パラメータ(QP)のチャネルに処理を施し(U')を出力するCNNフィルタ107-2と、第2の色差(Cr)及び量子化パラメータ(QP)のチャネルに処理を施し(V')を出力するCNNフィルタ107-3とを含んで構成される。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、1つ以上の符号化パラメータを利用することができる。また、CNNフィルタ107は、各々異なる手段(回路やソフトウェア)を用いて構成されたCNNフィルタ107-1、CNNフィルタ107-2、CNNフィルタ107-3を含む構成に限定されない。例えば、CNNフィルタ107が、複数の異なる手段(回路やソフトウェア)のうち1つの手段によって構成された上で、異なるモードで動作する構成であってもよい。
 また、図34の(b)では、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)、第2の色差(Cr)、及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107に入力される。CNNフィルタ107は、輝度(Y)及び量子化パラメータ(QP)のチャネルに処理を施し(Y')を出力するCNNフィルタ107-4と、第1の色差(Cb)、第2の色差(Cr)、及び量子化パラメータ(QP)のチャネルに処理を施し(U', V')を出力するCNNフィルタ107-5とを含んで構成される。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、1つ以上の符号化パラメータを利用することができる。また、CNNフィルタ107は、各々異なる手段(回路やソフトウェア)を用いて構成されたCNNフィルタ107-4、CNNフィルタ107-5を含む構成に限定されない。例えば、CNNフィルタ107が、複数の異なる手段(回路やソフトウェア)のうち1つの手段によって構成された上で、異なるモードで動作する構成であってもよい。この構成は、輝度と参照パラメータをインターリーブした画像(入力)に対して処理を行い、第1の色差と第2の色差と参照パラメータをインターリーブした画像(入力)に対して処理を行う場合に用いられる。
 図34の(b)に示す構成では、輝度(Y)の処理と、色差の処理(第1の色差(Cb)及び第2の色差(Cr)をインターリーブしたチャネルの処理)とは、それぞれ異なるCNNフィルタ107において処理される。この構成では、輝度(Y)と第1の色差(Cb)及び第2の色差(Cr)との解像度が異なる場合であっても、第1の色差(Cb)及び第2の色差(Cr)のインターリーブでは演算量が多くならない。また、CNNフィルタ107は輝度(Y)と色差(第1の色差(Cb)および第2の色差(Cr))とを別々に処理することができるので、輝度と色差の並列処理が可能である。また、情報量が増える、すなわち、色差を処理する場合に第1の色差と第2の色差と符号化パラメータとを同時に利用可能であるので、図34の(b)に示す構成ではCNNフィルタ107の精度を上げることができる。
 図9は、本実施形態に係るCNNフィルタ107の構成の一例を示す概略図である。CNNフィルタ107は、複数のconvX層を含んでいる。
 ここで、本実施形態において、convX層は、下記の構成の少なくとも何れかを含むことができる。
 (1)conv(x):フィルタをかける処理(convolution)を実施する構成
 (2)act(conv(x)):convolutionの後にactivation(非線形関数、例えば、sigmoid, tanh, relu, elu、seluなど)を実施する構成
 (3)batch_norm(act(conv(x))):convolutionとactivationの後にバッチノーマライゼーション(入力のレンジの正規化)を実施する構成
 (4)act(batch_norm(conv(x))):convolutionとactivationの間にバッチノーマライゼーション(入力のレンジの正規化)を実施する構成
 (5)pooling:conv層間で情報の圧縮、ダウンサイジングを実施する構成
 またCNNフィルタ107は、convX層の他に、次の層の少なくとも何れかを含む構成であってもよい。
 (5)pooling:conv層間で情報の圧縮、ダウンサイジングを実施する構成
 (6)add/sub:要素単位で加算する構成(減算する構成を含む)
 (7)concatenate/stack:複数の入力を積み上げて新たな大きな入力を構成する構成
 (8)fcn:フルコネクトされたフィルタを実施する構成
 (9)lcn:一部コネクトされたフィルタを実施する構成
 図9に示す例においては、CNNフィルタ107は、3つのconvX層(conv1,conv2,conv3)とadd層とを含む。入力されるフィルタ前画像は、(N1+N2)xH1xW1のサイズを有する。ここで、N1は画像のチャネル数を示す。例えば、フィルタ前画像が輝度(Y)のチャネルのみを含む場合は、N1は「1」である。Y、Cb、Crのチャネルを含む場合にはN1は「3」である。R, G, Bのチャネルを含む場合にはN1は「3」である。W1はピクチャの幅パッチサイズであり、H1はピクチャの高さパッチサイズである。N2は符号化パラメータのチャネル数を示す。例えば、符号化パラメータが量子化パラメータ(QP)のチャネルのみを含む場合は、N2は「1」である。add層を備える構成は、フィルタ後画像とフィルタ前画像の差分(residual)をCNNフィルタで予測する構成であり、特に、CNN層が深くなる構成で有効であることが知られている。なお、residualを導出する層を複数重ねるResNetと呼ばれる構成が知られているように、add層は1つに限定されず複数のadd層があっても良い。
 また、後述のようにネットワークは分岐を含んでいてもよく、また分岐した入力や出力を束ね合わせるConcatenate層を備えていても良い。例えばN1xH1xW1のデータとN2xH1xW1のデータをConcatenateすると、(N1+N2)xH1xW1のデータになる。
 CNNフィルタ107の1つ目のconv層であるconv1は、(N1+N2)xH1xW1のデータが入力され、Nconv1xH1xW1のデータを出力する。CNNフィルタ107の2つ目のconv層であるconv2は、Nconv1xH1xW1のデータが入力され、Nconv2xH1xW1のデータを出力する。CNNフィルタ107の3つ目のconv層であるconv3は、Nconv2xH1xW1のデータが入力され、N1xH1xW1のデータを出力する。add層であるaddは、conv層の出力であるN1xH1xW1のデータとN1xH1xW1のフィルタ前画像とが画素ごとに加算され、N1xH1xW1のデータを出力する。
 図9に示すように、ピクチャのチャネル数は、CNNフィルタ107により処理が施されることで、N1+N2からN1に減少する。なお、本実施形態においてCNNフィルタ107は、チャネルファースト(チャネル×高さ×幅)のデータ形式で処理をするが、チャネルラスト(高さ×幅×チャネル)のデータ形式で処理をしてもよい。
 なお、CNNフィルタ107は、コンボリューション層により出力サイズを減少させた後、デコンボリューション層により出力サイズを大きくし、元に戻すようなオートエンコーダ層を設けることもできる。複数のコンボリューション層から構成される深いネットワークは、DNN(Deep Neural Network)と呼ばれることもある。画像フィルタ装置は、ネットワークの出力の一部を再度ネットワークに入力させるようなRNN(Recurrent Neural Network)を有することもできる。RNNにおいて、再入力する情報はそのネットワークの内部状態と考えることができる。
 画像フィルタ装置は、再入力情報(内部状態)の更新や伝達を制御するために、さらにニューラルネットワークのサブネットワークを利用するLSTM(Long Short-Term Memory)やGRU(Gated Recurrent Unit)を構成要素として複数組み合わせることができる。
 フィルタ前画像の符号化パラメータのチャネルとして、量子化パラメータ(QP)のチャネルに加え、分割情報(PartDepth)のチャネル、予測モード情報(PredMode)のチャネルを追加することができる。
 (量子化パラメータ(QP))
 量子化パラメータ(QP)は、画像の圧縮率と画質とを制御するパラメータである。本実施形態において量子化パラメータ(QP)は、値が大きいほど画質が低くなり符号量が減少する特性、および値が小さいほど画質が高くなり符号量が増加する特性を有する。量子化パラメータ(QP)として、例えば、予測残差の量子化幅を導出するパラメータを用いることができる。
 ピクチャ単位の量子化パラメータ(QP)としては、処理対象フレームの代表的な1個の量子化パラメータ(QP)を入力することができる。例えば、量子化パラメータ(QP)は、対象ピクチャに適用されるパラメータセットにより指定されることができる。また、量子化パラメータ(QP)は、ピクチャの構成要素に適用される量子化パラメータ(QP)に基づいて算出されることができる。具体的には、スライスに適用される量子化パラメータ(QP)の平均値に基づいて、量子化パラメータ(QP)を算出することができる。
 また、ピクチャを分割した単位の量子化パラメータ(QP)としては、所定の基準でピクチャを分割した単位毎の量子化パラメータ(QP)を入力することができる。例えば、量子化パラメータ(QP)を、スライス毎に適用することができる。また、量子化パラメータ(QP)を、スライス内のブロックに適用することができる。また、量子化パラメータ(QP)を、既存の符号化単位から独立した領域単位(例えば、ピクチャを16x9個に分割して得られる各領域)で指定することができる。この場合、量子化パラメータ(QP)が、スライス数や変換ユニット数に依存するため、領域に対応する量子化パラメータ(QP)の値が不定になり、CNNフィルタが構成できないため、領域内の量子化パラメータ(QP)の平均値を代表値として用いる方法が考えられる。また、領域内の一つの位置の量子化パラメータ(QP)を代表値として用いる方法もある。また、領域内の複数の位置の量子化パラメータ(QP)の中央値(median)や最頻値(mode)を代表値として用いる方法もある。
 また、特定の個数の量子化パラメータ(QP)を入力する場合としては、量子化パラメータ(QP)の個数が一定になるように、量子化パラメータ(QP)のリストを生成してCNNフィルタへ入力してもよい。例えば、スライス毎の量子化パラメータ(QP)のリストを作成し、最大値、最小値、中央値の3個の量子化パラメータ(QP)のリストを作成して入力する方法が考えられる。
 また、コンポーネント単位の量子化パラメータ(QP)としては、処理対象のコンポーネントに適用する量子化パラメータ(QP)を入力することができる。この量子化パラメータ(QP)の例として、輝度量子化パラメータ(QP)、色差量子化パラメータ(QP)を挙げることができる。
 また、ブロック単位でCNNフィルタを適用する場合、周辺量子化パラメータ(QP)として、対象ブロックの量子化パラメータ(QP)とブロック周辺の量子化パラメータ(QP)をを入力してもよい。
 CNNフィルタ107を、ピクチャ、および符号化パラメータに応じて設計することができる。すなわち、CNNフィルタ107を、方向性、アクティビティ等の画像データから導出可能なピクチャ特性だけでなく、符号化パラメータに応じて設計することができるので、CNNフィルタ107は、符号化パラメータ毎に異なる強度のフィルタを実現することができる。したがって、本実施形態はCNNフィルタ107を備えるので、符号化パラメータ毎に異なるネットワークを導入することなく、符号化パラメータに応じた処理をすることができる。
 図10は、本実施形態に係る画像フィルタ装置の構成の変形例を示す概略図である。図10に示すように、画像フィルタ装置であるCNNフィルタは、add層を含まず、convX層のみを含んでいてもよい。add層を含まない本変形例においても、CNNフィルタは、N1*H1*W1のデータを出力する。
 図11を参照して、参照パラメータが量子化パラメータ(QP)の一例を説明する。図11の(a)に示す量子化パラメータ(QP)は、変換ユニットの単位領域(または量子化パラメータ(QP)が同じ単位領域)で配置されている。図11の(a)に示す量子化パラメータ(QP)を、例えば画素等の単位領域で入力した場合を図11の(b)に示す。画素単位で入力すると、各画素に直接対応する量子化パラメータ(QP)を処理に利用でき、各画素に応じた処理をすることができる。また、量子化パラメータ(QP)の変化位置から、変換ユニットの境界が分かり、同一変換ユニット内であるか、隣接する異なる変換ユニットの画素であるかの情報をフィルタ処理に利用することができる。また、画素値の変化だけでなく量子化パラメータ(QP)の変化の大きさを利用することができる。例えば、量子化パラメータ(QP)が平坦か、ゆっくり変化するか、急峻に変化するか、連続的に変化しているか等の情報を利用することができる。また、CNNフィルタ107に入力する前に平均値0、分散1に近くなるように正規化や標準化を行ってもよい。これは、量子化パラメータ以外の符号化パラメータや画素値でも同様である。
 図12は、参照パラメータが予測パラメータの一例を示す。予測パラメータは、イントラ予測、またはインター予測であることを示す情報、インター予測である場合には予測に利用する参照ピクチャの数を示す予測モードを含む。
 図12の(a)に示す予測パラメータは、符号化ユニット(予測ユニット)単位で配置されている。図12の(a)に示す予測パラメータを、画素等の単位領域で入力した場合を図12の(b)に示す。図11の(b)に示す例と同様に、画素単位で入力すると、各画素に空間的に直接対応する予測パラメータを処理に利用でき、各画素に応じた処理をすることができる。つまり(x, y)座標の画素値である(R, G, B)や(Y, Cb, Cr)と同時に(x, y)座標の予測パラメータを利用することができる。また、予測パラメータの変化位置から、符号化ユニットの境界が分かり、同一符号化ユニット内であるか、隣接する異なる符号化ユニットの画素であるかの情報をフィルタ処理に利用することができる。また、画素値の変化だけでなく予測パラメータの変化の大きさを利用することができる。例えば、予測パラメータが平坦か、ゆっくり変化するか、急峻に変化するか、連続的に変化しているか等の情報を利用することができる。なお、予測パラメータに割り当てる値は、近い性質の予測モードに近い値を割り当てるのであれば、図12の(b)に示す数字の例に限らない。例えば、イントラ予測に「-2」を割り当て、単予測に「2」を割り当て、双予測に「4」を割り当ててもよい。
 図13を参照して、イントラ予測の予測モードの定義について説明する。図13は、予測モードの定義を示している。同図に示すように、輝度画素には67種類の予測モードが定義されており、それぞれの予測モードは、「0」~「66」の番号(イントラ予測モードインデックス)によって特定される。また、各予測モードには次のような名称が割り当てられている。すなわち、「0」は、“Planar(平面予測)”であり、「1」は、“DC(DC予測)”であり、「2」~「66」は、“Angular(方向予測)”である。色差画素の場合は、“Planar(平面予測)”、“VER(垂直予測)”、“HOR(水平予測)”、“DC(DC予測)”、“VDIR(45度予測)”、LM予測(色差予測モード)、およびDM予測(輝度のイントラ予測モードを流用)が使用可能である。LM予測は、輝度の予測に基づいた色差の線形予測である。言い換えれば、LM予測は、輝度画素値と色差画素値との相関を利用した予測である。
 図14は、参照パラメータが輝度画素のイントラ予測パラメータの一例を示す。イントラ予測パラメータは、各パーティション毎に定まる予測パラメータの値を含む。イントラ予測パラメータは、例えば、イントラ予測モード等を含むことができる。
 図14の(a)に示すイントラ予測パラメータは、符号化ユニット(予測ユニット)単位で配置されている。図14の(a)に示す予測パラメータを、画素等の単位領域で入力した場合を図14の(b)に示す。図11の(b)に示す例と同様に、画素単位で入力すると、各画素に直接対応するイントラ予測パラメータを処理に利用でき、各画素に応じた処理をすることができる。また、イントラ予測パラメータの変化位置から、符号化ユニットの境界が分かり、同一符号化ユニットであるか、隣接する異なる符号化ユニットの画素であるかの情報を利用することができる。また、画素値の変化だけでなくイントラ予測パラメータの変化の大きさを利用することができる。例えば、イントラ予測パラメータがゆっくり変化するか、急峻に変化するか、連続的に変化しているか等の情報を利用することができる。
 図15は、参照パラメータが、デプス情報(分割情報)の一例を示す。デプス情報は、各パーティション毎に、変換ユニットに応じて定まる。デプス情報は、例えば、符号化ユニットの分割回数に応じて定まり、符号化ユニットの大きさに対応する。
 図15の(a)に示すデプス情報は、符号化ユニット(予測ユニット単位)で配置されている。図15の(a)に示すデプス情報を、画素等の単位領域で入力した場合を図15の(b)に示す。図11の(b)に示す例と同様に、画素単位で入力すると、各画素に直接対応するデプス情報を処理に利用でき、各画素に応じた処理をすることができる。また、デプス情報の変化位置から、符号化ユニットの境界が分かり、同一符号化ユニットであるか、隣接する異なる符号化ユニットの画素であるかの情報を利用することができる。また、画素値の変化だけでなくデプス情報の変化の大きさを利用することができる。例えば、デプス情報がゆっくり変化するか、急峻に変化するか、連続的に変化しているか等の情報を利用することができる。
 また、デプス情報の代わりにパーティションの水平サイズと垂直サイズを示すサイズ情報を用いてもよい。
 図16は、参照パラメータがパーティションの水平サイズと垂直サイズを含むサイズ情報である一例を示す。図16に示す例では、単位領域毎に2つの情報、すなわち水平サイズと垂直サイズの情報を入力する。図16の例では、パーティションの水平サイズW(幅)と垂直サイズH(高さ)の2の対数値に所定のオフセット(-2)を加えた数であるlog2(W) -2,log2(H)-2を、参照パラメータに用いている。例えば(1,1)、(2,1)、(0,0)、(2,0)、(1,2)、(0,1)のパーティションサイズ(W, H)は各々(8,8)、(16,8)、(4,4)、(16,4)、(8,16)、(4,8)である。
 図16に示す例でのパーティションサイズは、変換ユニットの水平および垂直方向の分割回数を示す値Dの2の対数値を所定の値から減算した値(3-log2(D))と考えることもできる。
 図16の(a)に示すサイズ情報は、変換ブロック単位で配置されている。図16の(a)に示すサイズ情報を、画素等の単位領域で入力した場合を図16の(b)に示す。図16の(b)に示す例においても、図15の(b)に示す例と同様の効果を奏する。
 図17は、符号化パラメータが複数の予測パラメータからなる他の一例を示す。図17に示す例では、予測モードに加え、参照ピクチャ情報を予測パラメータに含めている。
 図17の(a)に示す予測パラメータは、変換ブロック単位で配置されている。図17の(a)に示す予測パラメータを、画素等の単位領域で入力した場合を図17の(b)に示す。図17の(b)に示す例においても、図12の(b)に示す例と同様の効果を奏する。
 (CNNフィルタの学習方法)
 CNNフィルタ107は、訓練データ、および誤差関数を用いて学習する。
 CNNフィルタ107の訓練データとして、上述したフィルタ前画像、参照パラメータと原画像のセットを入力することができる。また、CNNフィルタ107から出力されるフィルタ後画像は、ある参照パラメータにおいて原画像との誤差を最小化させることが期待される。
 また、CNNフィルタ107の誤差関数として、CNNフィルタ107によりフィルタ処理が施されたフィルタ後画像の、原画像に対する誤差を評価する関数(例えば、平均絶対値誤差mean absolute errorや平均二乗誤差mean square error)を用いることができる。画像の誤差に加え、パラメータの大きさを正則化項として誤差関数に加えて用いることもできる。正則化ではパラメータの絶対値、2乗値、その両方を用いることができる(各々、lasso、ridge、elasticnetと呼ばれる)。
 さらに、後述するように、CNNパラメータを伝送する方式では、CNNパラメータの符号量をさらに誤差関数の誤差に加えてもよい。
 画像の良さを評価する別のCNNネットワークを用いて、学習させることもできる。この場合、評価対象となるCNNフィルタ107(Generator)の出力を異なる評価用CNNネットワーク(Discriminator)に直列に入力し、評価用CNNネットワークの評価値を最小化(もしくは最大化)させる。CNNフィルタ107の学習と同時に、評価用CNNネットワークを学習させることも適当である。生成用と評価用の2つのネットワークを同時に学習させる方法は、Generative Adversarial Networks (GAN)と呼ばれる。
 なお、画像復号装置31のCNNフィルタ305は、画像符号化装置11のCNNフィルタ107と同様の方法により学習が行われる。なお、画像符号化装置11と画像復号装置31の両者で同じCNNフィルタを用いる構成においては、2つのCNNフィルタのCNNパラメータは同一とする。
 予測パラメータメモリ108は、符号化パラメータ決定部110が生成した予測パラメータを、符号化対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 参照ピクチャメモリ109は、CNNフィルタ107が生成した復号画像を、符号化対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 符号化パラメータ決定部110は、符号化パラメータの複数のセットのうち、1つのセットを選択する。符号化パラメータとは、上述した予測パラメータやこの予測パラメータに関連して生成される符号化の対象となるパラメータである。予測画像生成部101は、これらの符号化パラメータのセットの各々を用いてPUの予測画像Pを生成する。
 符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すコスト値を算出する。コスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化誤差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された残差信号の残差値の二乗値についての画素間の総和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したコスト値が最小となる符号化パラメータのセットを選択する。これにより、エントロピー符号化部104は、選択した符号化パラメータのセットを符号化ストリームTeとして外部に出力し、選択されなかった符号化パラメータのセットを出力しない。符号化パラメータ決定部110は決定した符号化パラメータを予測パラメータメモリ108に記憶する。
 予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから、符号化するための形式を導出し、エントロピー符号化部104に出力する。符号化するための形式の導出とは、例えば動きベクトルと予測ベクトルから差分ベクトルを導出することである。また予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから予測画像を生成するために必要なパラメータを導出し、予測画像生成部101に出力する。予測画像を生成するために必要なパラメータとは、例えばサブブロック単位の動きベクトルである。
 インター予測パラメータ符号化部112は、符号化パラメータ決定部110から入力された予測パラメータに基づいて、差分ベクトルのようなインター予測パラメータを導出する。インター予測パラメータ符号化部112は、予測画像生成部101に出力する予測画像の生成に必要なパラメータを導出する構成として、インター予測パラメータ復号部303(図5等、参照)がインター予測パラメータを導出する構成と一部同一の構成を含む。
 イントラ予測パラメータ符号化部113は、符号化パラメータ決定部110から入力されたイントラ予測モードIntraPredModeから、符号化するための形式(例えばMPM_idx、rem_intra_luma_pred_mode等)を導出する。
  (第2の実施形態)
 本発明の他の実施形態について、図18に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。CNNフィルタのネットワーク構成は様々な形式が考えられる。図18に示す第2の実施形態は、第1の実施形態で説明したネットワーク構成(図9、図10)とは、別のネットワーク構成のCNNフィルタの例を示すものであり、第1の実施形態と同じ効果を有する。
 本実施形態においては、図18に示すように、CNNフィルタ107aは、2つのconvX層(コンボリューション層)conv1,conv2と、プーリング層poolingと、Deconv層(デコンボリューション層)conv3とを含む。convX層conv1,conv2は、コンボリューション層であり、Deconv層conv3は、デコンボリューション層である。プーリング層pooling は、convX層conv2とconvX層conv3との間に配置される。
 入力されるフィルタ前画像は、(N1+N2)*H1*W1のサイズを有する。本実施形態においても、N1は画像のチャネル数を示す。W1はピクチャの幅パッチサイズであり、H1はピクチャの高さパッチサイズである。N2は符号化パラメータのチャネル数を示す。
 CNNフィルタ107aの1つ目のconvX層であるconv1は、(N1+N2)*H1*W1のデータが入力され、Nconv1*H1*W1のデータを出力する。CNNフィルタ107aの2つ目のconvX層であるconv2は、Nconv1*H1*W1のデータが入力され、Nconv2*H1*W1のデータを出力する。convX層conv2の後段のプーリング層poolingは、Nconv2*H1*W1のデータが入力され、Nconv2*H2*W2のデータを出力する。すなわち、プーリング層poolingは、convX層conv2から出力された高さ*幅がH1*W1のサイズのデータを、H2*W2のサイズのデータに変換する。プーリング層poolingの後段のDeconv層conv3は、Nconv2*H2*W2のデータが入力され、N1*H1*W1のデータを出力する。すなわち、Deconv層conv3は、プーリング層poolingから出力された高さ*幅がH2*W2のサイズのデータを、H1*W1のサイズのデータに戻す。ここではトランスポーズコンボリューション(Transposed Convolution)を用いる。
 なお、本実施形態においても、画像復号装置におけるCNNフィルタは、画像符号化装置におけるCNNフィルタ107aと同様の機能を有する。
 また、本実施形態においても、実施形態1における図34の(a)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)及び量子化パラメータ(QP)のチャネルと、第2の色差(Cr)及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107aに入力される構成であってもよい。また、実施形態1における図34の(b)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)、第2の色差(Cr)、及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107aに入力される構成であってもよい。すなわち、CNNフィルタ107aは、輝度と参照パラメータとをインターリーブした画像(入力)に対してフィルタ処理を行い、第1の色差と第2の色差と参照パラメータとをインターリーブした画像(入力)に対してフィルタ処理を行う構成であってもよい。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、CNNフィルタ107aは1つ以上の符号化パラメータを利用することができる。
 第2の実施形態の構成によれば、コンボリューション層及びプーリング層で縮小したデータをトランスプーリング層で拡大する一種のオートエンコーダ型のネットワーク構成を用いることによって、上位概念的な特徴量を考慮したフィルタ処理を行うことができる。すなわち、符号化パラメータに応じたフィルタ処理を行う場合に、エッジや色を統合したより上位の特徴量を考慮してフィルタ強度を変更することができる。
  (第3の実施形態)
 本発明の他の実施形態について、図19~20に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。
 本実施形態においては、図19に示すように、CNNフィルタ107bは、第1のCNNフィルタ107b1と第2のCNNフィルタ107b2とを含む。第1のCNNフィルタ107b1には、フィルタ前画像が入力される。第1のCNNフィルタ107b1は、方向性やアクティビティ等の特徴を抽出する。第2のCNNフィルタ107b2には、第1のCNNフィルタ107b1により処理が施されたデータと、符号化パラメータとして量子化パラメータ(QP)とが入力される。
 すなわち、第1のCNNフィルタ107b1は、第2のニューラルネットワークである第2のCNNフィルタ107b2に入力される第1種の入力画像データを出力画像とする。
 第2のCNNフィルタ107b2は、抽出された特徴に重み付けを施すフィルタ処理を施す。第2のCNNフィルタ107b2は、符号化パラメータを利用してどのように重み付けてフィルタ処理するかを制御する。第2のCNNフィルタ107b2から、フィルタ後画像が出力される。
 第1のCNNフィルタ107b1は、上述したCNNフィルタ107とは異なり、輝度(Y)のチャネル、第1の色差(Cb)のチャネル、および第2の色差(Cr)のチャネルを含む3つのチャネルから構成されるフィルタ前画像が入力され、輝度、2つの色差を含む3つのチャネルから構成されるフィルタ後画像を出力する。なお、フィルタ前画像、フィルタ後画像のチャネルは、Y, Cb, Crに限定されずR, G, Bでも良いし、さらにalphaやデプスを加えても良い。
 なお、第2のCNNフィルタ107b2には、量子化パラメータ(QP)に加えて、予測パラメータ等の他の符号化パラメータを入力してもよい。なお、当然のことであるが、量子化パラメータ(QP)に加えて、予測パラメータ等の他の符号化パラメータを入力する構成は、本実施形態に限らず、他の実施形態においても同様である。
 また、本実施形態においても、実施形態1における図34の(a)のように、フィルタ前画像は、輝度(Y)のチャネルと、第1の色差(Cb)のチャネルと、第2の色差(Cr)のチャネルとに分かれて、CNNフィルタ107b1に入力される構成であってもよい。また、実施形態1における図34の(b)のように、フィルタ前画像は、輝度(Y)のチャネルと、第1の色差(Cb)及び第2の色差(Cr)のチャネルとに分かれて、CNNフィルタ107b1に入力される構成であってもよい。すなわち、CNNフィルタb1は、輝度と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行い、第1の色差と第2の色差と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行う構成であってもよい。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、CNNフィルタb1は1つ以上の符号化パラメータを利用することができる。
 図20は、本実施形態に係るCNNフィルタ107bの構成を示す概略図である。図20に示すように、第1のCNNフィルタ107b1は、2つのconvX層(conv1,conv2)を含む。第2のCNNフィルタ107b2は、2つのconvX層(conv3,conv4)とConcatenate層とを含む。
 第1のCNNフィルタ107b1のconv1は、N1*H1*W1のデータが入力され、Nconv1*H1*W1のデータを出力する。第1のCNNフィルタ107b1のconv2は、Nconv1*H1*W1のデータが入力され、画像処理結果のNconv2*H1*W1のデータを出力する。
 第2のCNNフィルタ107b2のconv4は、N2*H1*W1のデータが入力され、Nconv4*H1*W1のデータを出力する。第2のCNNフィルタ107b2のConcatenate層は、画像処理結果とconv4により処理が施された符号化パラメータと(Nconv2+Nconv4)*H1*W1が入力され、各々を連結し、Nconv3*H1*W1のデータを出力する。第2のCNNフィルタ107b2のconv3は、Nconv3*H1*W1のデータが入力され、N1*H1*W1のデータを出力する。
 図21は、本実施形態に係る画像フィルタ装置の構成の変形例を示す概略図である。図21に示すように、CNNフィルタ107cの第2のCNNフィルタ107c2は、add層を含んでいてもよい。add層は、第2のCNNフィルタ107b2のconv3が出力したN1*H1*W1のデータ、およびN1*H1*W1の画像データを入力し、N1*H1*W1のデータを出力する。
 なお、本実施形態においても、画像復号装置におけるCNNフィルタは、画像符号化装置におけるCNNフィルタ107b、107cと同様の機能を有する。
 第3の実施形態の構成によれば、画像データの入力と、符号化データの入力を別のネットワークで行う。このような構成にすることによって、画像データの入力サイズと符号化データの入力サイズを異なるものとすることができる。また、画像データのみに特化したネットワークCNN1を用いることで、学習が容易になるだけでなく、全体のネットワーク構成を小さなものとすることができる。さらに符号化パラメータを入力するCNN2のネットワークによって、第1のCNNフィルタCNN1で導出したデータであるフィルタ後画像や特徴抽出に対して符号化パラメータを用いて重み付けやさらなる特徴抽出を行うことができ、より高度なフィルタ処理を行うことができる。
  (第4の実施形態)
 本発明の他の実施形態について、図22に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。
 本実施形態においては、図22に示すように、CNNフィルタ107dは、n+1個のCNNフィルタCNN0、CNN1、…、CNNnを含む、複数の個別ニューラルネットワークである1段目のCNNフィルタ107d1と、セレクタ107d2と、共通ニューラルネットワークである2段目のCNNフィルタ107d3とを含む。
 1段目のCNNフィルタ107d1において、CNNフィルタCNN0は、上述したCNNフィルタ107b1と同様の構成であるが、FP1よりも小さい値を有するフィルタパラメータFPに対して最適化されたフィルタである。また、CNNフィルタCNN1は、FP1以上でFP2よりも小さい値を有するフィルタパラメータFPに対して最適化されたフィルタである。また、CNNフィルタCNNnは、FPn以上の値を有するフィルタパラメータFPに対して最適化されたフィルタである。
 1段目のCNNフィルタ107d1に含まれるCNNフィルタCNN0、CNN1、…、CNNnの各々は、フィルタ処理を施した画像をセレクタ107d2に出力する。セレクタ107d2は、フィルタパラメータFPが入力され、入力されたフィルタパラメータFPに応じて、2段目のCNNフィルタ107d3に出力するフィルタ処理が施された画像を選択する。したがって、2段目のCNNフィルタ107d3には、セレクタ107d2に入力されたフィルタパラメータFPに対し最適なフィルタによってフィルタ処理が施された画像が入力される。換言すれば、本実施形態における個別ニューラルネットワークは、画像フィルタ装置への入力画像データにおけるフィルタパラメータの値に応じて、入力画像データに対して選択的に作用する。
 なお、CNNフィルタを選択するフィルタパラメータFPは、明示的に符号化データにおいて符号化しても良いし、符号化パラメータから導出してもよい。例えば、符号化パラメータの一つである量子化パラメータの代表値(平均値など)からフィルタパラメータFPを導出してもよい。
 2段目のCNNフィルタ107d3は、入力画像にフィルタ処理を施し、フィルタ後画像を出力する。換言すれば、本実施形態における共通ニューラルネットワークは、個別ニューラルネットワークの出力画像データに対して、フィルタパラメータの値によらずに共通に作用する。
 なお、セレクタ107d2が選択に用いるフィルタパラメータFPは入力画像における量子化パラメータ(QP)の代表値に限らない。フィルタパラメータFPは、符号化データにおいて明示的に伝送しても良い。また、フィルタパラメータFPとして、入力画像における量子化パラメータの他に、入力画像におけるイントラ予測及びインター予測の種別を示すパラメータ、入力画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)、入力画像におけるパーティションの分割深度(デプス情報、分割情報)を示すパラメータ、入力画像におけるパーティションのサイズを示すパラメータを挙げることができる。なお、これらのパラメータにおいても、特定位置の値(左上や中央)、平均値、最小値、最大値、中央値、最頻値などの代表値を用いてもよい。
 図23は、本実施形態に係る画像フィルタ装置の構成の変形例を示す概略図である。図23に示すように、CNNフィルタ107eは、n+1個のCNNフィルタCNN0、CNN1、…、CNNnを含む、複数の個別ニューラルネットワークであるCNNフィルタ107e2、およびセレクタ107e3は、共通ニューラルネットワークであるCNNフィルタ107e1の後段に配置することもできる。この場合、CNNフィルタ107e1は、CNNフィルタ107eへの入力画像データに作用し、CNNフィルタ107e2は、入力画像データにおけるフィルタパラメータの値に応じて、CNNフィルタ107e1の出力画像データに対して選択的に作用する。また、セレクタ107e3がフィルタ後画像を出力する。
 なお、本実施形態においても、画像復号装置におけるCNNフィルタは、画像符号化装置におけるCNNフィルタと同様の機能を有する。
 第4の実施形態の構成によれば、フィルタパラメータFPの大きさに応じてネットワークを切り替える部分(107e2)と、フィルタパラメータの大きさによらずに同じネットワークを用いる部分(107e1)を用いることで、フィルタ全体を量子化パラメータなどの符号化パラメータで切り替える構成に比べてネットワーク構成を小さくできる。ネットワーク構成が小さいほうが演算量が小さく高速であることに加え、学習パラメータが頑強で多くの入力画像に対して適当なフィルタ処理ができる効果がある。
 なお、本実施形態においても、実施形態1における図34の(a)のように、フィルタ前画像は、輝度(Y)のチャネルと、第1の色差(Cb)のチャネルと、第2の色差(Cr)のチャネルとに分かれて、CNNフィルタ107d1に入力される構成であってもよい。また、実施形態1における図34の(b)のように、フィルタ前画像は、輝度(Y)のチャネルと、第1の色差(Cb)及び第2の色差(Cr)のチャネルとに分かれて、CNNフィルタ107d1に入力される構成であってもよい。すなわち、CNNフィルタd1は、輝度と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行い、第1の色差と第2の色差と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行ってもよい。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、CNNフィルタd1は1つ以上の符号化パラメータを利用することができる。
  (第5の実施形態)
 本発明の他の実施形態について、図24に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。
 本実施形態においては、図24に示すように、CNNフィルタ107fは、n+1個のCNNフィルタCNN0、CNN1、…、CNNnを含む1段目のCNNフィルタ107f1と、セレクタ107f2と、2段目のCNNフィルタ107f3とを含む。
 1段目のCNNフィルタ107f1において、CNNフィルタCNN1は、QP1Lよりも大きくQP1Hよりも小さい値を有する量子化パラメータ(QP)に対して最適化されたフィルタである。また、CNNフィルタCNN2は、QP2Lよりも大きくQP2Hよりも小さい値を有する量子化パラメータ(QP)に対して最適化されたフィルタである。また、CNNフィルタCNN3は、QP3Lよりも大きくQP3Hよりも小さい値を有する量子化パラメータ(QP)に対して最適化されたフィルタである。また、CNNフィルタCNN4は、QP4Lよりも大きくQP4Hよりも小さい値を有する量子化パラメータ(QP)に対して最適化されたフィルタである。他のCNNフィルタも同様のフィルタである。
 閾値QP1L、QP1H、…QP4L、QP4Hの具体例として、QP1L=0、QP1H=18、QP2L=12、QP2H=30、QP3L=24、QP3H=42、QP4L=36、QP4H=51の値を割り当てることができる。
 この場合、例えば、量子化パラメータ(QP)が10であれば、セレクタ107f2はCNNフィルタCNN1を選択する。また、量子化パラメータ(QP)が15であれば、セレクタ107f2はCNNフィルタCNN1とCNNフィルタCNN2を選択する。また、量子化パラメータ(QP)が20であれば、セレクタ107f2はCNNフィルタCNN2を選択する。また、量子化パラメータ(QP)が25であれば、セレクタ107f2はCNNフィルタCNN2, CNNフィルタCNN3を選択する。また、量子化パラメータ(QP)が30であれば、セレクタ107f2はCNNフィルタCNN3を選択する。
 2段目のCNNフィルタ107f3は、セレクタ107f2が1種類のCNNフィルタを選択した場合は、入力画像をフィルタ後画像として出力し、セレクタ107f2が2種類のCNNフィルタを選択した場合は、2つの入力画像の平均値をフィルタ後画像として出力する。
 なお、本実施形態においても、画像復号装置におけるCNNフィルタは、画像符号化装置におけるCNNフィルタ107fと同様の機能を有する。
 第5の実施形態の構成によれば、量子化パラメータQPの大きさに応じてネットワークを切り替える部分(107f1)と、量子化パラメータQPの大きさによらずに同じネットワークを用いる部分(107f2)を用いることで、フィルタ全体を量子化パラメータなどの符号化パラメータで切り替える構成に比べてネットワーク構成を小さくできる。ネットワーク構成が小さいほうが演算量が小さく高速であることに加え、学習パラメータが頑強で多くの入力画像に対して適当なフィルタ処理ができる効果がある。また、各CNNフィルタの最適化の範囲を重複させたことで、フィルタを切り替えた時にパッチの境界で視覚的なひずみが現れることを回避することができる。
  (第6の実施形態)
 本発明の他の実施形態について、図25に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。
 上述したように、画像フィルタ装置は、ブロック歪みを低減する機能とリンギング歪みを低減するフィルタとを利用してもよい。また、ブロック歪みを低減するデブロッキングフィルタ(DF:Deblocking Filter)や、リンギング歪みを低減するサンプルアダプティブオフセット(SAO:Sample Adaptive Offset)などの別のフィルタと処理を併用してもよい。
 本実施形態では、デブロッキングフィルタ(DF)の処理と、サンプルアダプティブオフセット(SAO)の処理とCNNフィルタを併用する構成を説明する。
 (第1の例)
 図25の(a)に本実施形態の第1の例を示す。第1の例では、画像フィルタ装置107gは、CNNフィルタ107g1とサンプルアダプティブオフセット(SAO)107g2とを含む。CNNフィルタ107g1は、ブロック歪みを低減するフィルタとして機能する。
 (第2の例)
 図25の(b)に本実施形態の第2の例を示す。第2の例では、画像フィルタ装置107hは、デブロッキングフィルタ(DF)107h1とCNNフィルタ107g2とを含む。CNNフィルタ107h2は、デブロッキングフィルタの後段でさらにリンギングノイズを低減するフィルタとして機能する。
 (第3の例)
 図25の(c)に本実施形態の第3の例を示す。第3の例では、画像フィルタ装置107iは、第1のCNNフィルタ107i1と第2のCNNフィルタ107i2とを含む。第1のCNNフィルタ107i1は、ブロック歪みを低減するフィルタとして機能し、第2のCNNフィルタ107i2は、ブロック歪みを低減するフィルタの後段でさらにリンギングノイズを低減するフィルタとして機能する。
 なお、何れの例においても、画像復号装置におけるCNNフィルタは画像符号化装置におけるCNNフィルタと同様の機能を有する。
 また、本実施形態における画像フィルタ装置107g~画像フィルタ装置107iに入力されるフィルタ前画像は、他の実施形態と同様に、輝度(Y)のチャネル、第1の色差(Cb)のチャネル、および第2の色差(Cr)のチャネルを含む3つの画像のチャネル、ならびに量子化パラメータ(QP)のチャネルを含む1つの符号化パラメータ(参照パラメータ)のチャネルを含む画像であってもよい。また、図34の(a)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)及び量子化パラメータ(QP)のチャネルと、第2の色差(Cr)及び量子化パラメータ(QP)のチャネルとに分かれて、画像フィルタ装置107g~画像フィルタ装置107iに入力される構成であってもよい。また、図34の(b)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)、第2の色差(Cr)、及び量子化パラメータ(QP)のチャネルとに分かれて、画像フィルタ装置107g~画像フィルタ装置107iに入力される構成であってもよい。すなわち、画像フィルタ装置107g~画像フィルタ装置107iは、輝度と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行い、第1の色差と第2の色差と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行ってもよい。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、画像フィルタ装置107g~画像フィルタ装置107iは1つ以上の符号化パラメータを利用することができる。
  (第7の実施形態)
 本発明の他の実施形態について、図26~図30に基づいて説明すれば、以下のとおりである。なお、説明の便宜上、前記実施形態にて説明した部材と同じ機能を有する部材については、その説明を省略する。
 図26は、本実施形態に係る画像符号化装置の構成を示すブロック図である。本実施形態に係る画像符号化装置11jは、CNNフィルタ107jが、CNNパラメータを取得し、取得したCNNパラメータを用いてフィルタ処理をする点において上記実施形態と異なる。また、CNNフィルタ107jが用いるCNNパラメータは、シーケンス単位、ピクチャ単位等で動的に更新される点において上記実施形態と異なる。上記実施形態においては、CNNパラメータは、予め定められた固定値であり、更新されない。
 本実施形態に係る画像符号化装置11jは、図26に示すように、図4に示す画像符号化装置11が備える構成に加え、CNNパラメータ決定部114、CNNパラメータ符号化部115、および多重化部116を備えている。
 CNNパラメータ決定部114は、画像T(入力画像)、および加算部106の出力(フィルタ前画像)を取得し、入力画像とフィルタ前画像との差異が小さくなるようにニューラルネットワークパラメータであるCNNパラメータを更新する。
 図27は、CNNフィルタ107jの構成の一例を示す概略図である。上述した通り、CNNフィルタは、convX層等の複数の層を含み、図27に示すCNNフィルタ107jは3層を含んでいる。各層はレイヤIDにより識別できる。図27に示すCNNフィルタ107jにおいて、入力側の層のレイヤIDはL-2であり、真中の層のレイヤIDはL-1であり、出力側の層のレイヤIDはLである。
 また、各層は、複数のユニットを含み、各々のユニットはユニットIDにより識別できる。真中の層L-1の一番上のユニットのユニットIDは(L-1, 0)であり、出力側の層Lの上のユニットのユニットIDは(L, 0)であり、出力側の層Lの下のユニットのユニットIDは(L, 1)である。図27に示すように、各層のユニットの各々は、次の層のユニットと接続している。図27において、ユニット同士の接続は矢印で示している。また、各々の接続の重みは異なり、重み係数により制御される。
 CNNパラメータ決定部114は、重み係数とバイアス(オフセット)の両方を含むフィルタ係数を出力する。また、CNNパラメータ決定部114は、CNNパラメータとして、識別子を出力する。CNNフィルタが複数のCNN層から構成される場合は、識別子はCNN層を識別するCNN IDである。また、CNN層がレイヤID、ユニットIDで識別される場合は、識別子はレイヤID、ユニットIDである。
 また、CNNパラメータ決定部114は、CNNパラメータとして、ユニット構造を示すデータを出力する。ユニットの構造を示すデータとしては、例えば3*3等のフィルタサイズをあげることができる。フィルタサイズを示すデータは、フィルタサイズを可変にする場合にCNNパラメータとして出力する。フィルタサイズを固定した場合には、フィルタサイズを示すデータの出力は不要である。
 CNNパラメータ決定部114は、全てのパラメータを更新する全部更新、または一部のレイヤのユニットのパラメータを更新する部分更新を行う。CNNパラメータ決定部114は、更新内容を差分として出力するか否かを示すデータを、CNNパラメータに付加して出力する。
 CNNパラメータ決定部114は、例えばフィルタ係数等のCNNパラメータ値をそのまま出力することができる。また、CNNパラメータ決定部114は、例えば、更新前のCNNパラメータ値との差分、デフォルト値との差分等、差分パラメータ値を出力することができる。また、CNNパラメータ決定部114は、CNNパラメータ値を所定の方式で圧縮して出力することができる。
 図28を参照して、層、ユニットの構成と、CNNパラメータ(フィルタ係数、重み係数)の更新とについて説明する。
 各層において、層の入力値Z(L-1) ijkと、L層のパラメータ(フィルタ係数)hpqr、h0との積和を活性化関数(図28に示す式(1))に渡し、活性化関数(1)を適用した値ZL ijkを次の層に出力する。ここで、Nは層の入力のチャネル数であり、Wは層の入力の幅であり、Hは層の入力の高さである。また、kNはカーネル(フィルタ)の入力チャネル数であり、基本的にNと等しい。また、kWはカーネルの幅であり、kHはカーネルの高さである。
 本実施形態において、CNNパラメータ決定部114は、CNNパラメータ(フィルタ係数)hpqr、h0の少なくとも一部を動的に更新できる。
 本実施形態においては、CNNパラメータは、ネットワーク抽象レイヤ(NAL)構造のデータにより伝送される。図29の(a)は、本実施形態におけるNAL構造のデータのシーケンスSEQを既定する符号化ビデオシーケンスを示す。本実施形態において、シーケンスSEQに含まれるシーケンスパラメータセットSPS(Sequence Parameter Set)は、更新種別(一部/全部/差分か否か等を示す)、CNNのレイヤID(L)、CNNのユニットID(m)、L層、ユニットIDmのフィルタサイズ(kW*kH)、フィルタ係数(hpqr 、h0)等の、画像シーケンス全体に適用する更新パラメータを伝送する。また、シーケンスSEQに含まれるピクチャパラメータセットPPS(Picture Parameter Set)は、更新種別(一部/全部/差分か否か等を示す)、レイヤID(L)、ユニットID(m)、フィルタサイズ(kW*kH)、フィルタ係数(hpqr、h0)等の、あるピクチャに適用する更新パラメータを伝送する。
 また、図29の(b)に示すように、シーケンスは複数のピクチャを含む。CNNパラメータ決定部114は、シーケンス単位でCNNパラメータを出力することができる。この場合、シーケンス全体のCNNパラメータを更新することができる。また、CNNパラメータ決定部114は、ピクチャ単位で出力することができる。この場合、ある時間のCNNパラメータを更新することができる。
 なお、図27~29を参照して説明した事項は、符号化側、復号側共通の事項であり、後述するCNNフィルタ305jについても同様である。また、図27~29を参照して説明した事項は、画像符号化装置11jのCNNフィルタ107jに出力されるCNNパラメータにも適用されるし、画像復号装置31jのCNNフィルタ305jに出力されるCNNパラメータにも適用される。
 また、本実施形態におけるCNNフィルタ107jに入力されるフィルタ前画像は、他の実施形態と同様に、輝度(Y)のチャネル、第1の色差(Cb)のチャネル、および第2の色差(Cr)のチャネルを含む3つの画像のチャネル、ならびに量子化パラメータ(QP)のチャネルを含む1つの符号化パラメータのチャネルを含む画像であってもよい。また、図34の(a)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)及び量子化パラメータ(QP)のチャネルと、第2の色差(Cr)及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107jに入力される構成であってもよい。また、図34の(b)のように、フィルタ前画像は、輝度(Y)及び量子化パラメータ(QP)のチャネルと、第1の色差(Cb)、第2の色差(Cr)、及び量子化パラメータ(QP)のチャネルとに分かれて、CNNフィルタ107jに入力される構成であってもよい。すなわち、CNNフィルタ107jは、輝度と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行い、第1の色差と第2の色差と参照パラメータをインターリーブした画像(入力)に対してフィルタ処理を行ってもよい。なお、参照パラメータ(符号化パラメータ)は量子化パラメータ(QP)に限定されず、CNNフィルタ107jは1つ以上の符号化パラメータを利用することができる。
 CNNパラメータ符号化部115は、CNNパラメータ決定部114が出力するCNNパラメータを取得し、CNNパラメータを符号化して多重化部116に出力する。
 多重化部116は、エントロピー符号化部104が出力した符号化データと、CNNパラメータ符号化部115が符号化したCNNパラメータとを多重化してストリームを生成し、ストリームを外部に出力する。
 図30は、本実施形態に係る画像復号装置の構成を示すブロック図である。本実施形態に係る画像復号装置31jは、CNNフィルタ305jが、CNNパラメータを取得し、取得したCNNパラメータを用いてフィルタ処理をする。また、CNNフィルタ305jが用いるCNNパラメータは、シーケンス単位、ピクチャ単位等で動的に更新される。
 本実施形態に係る画像復号装置31jは、図30に示すように、図5に示す画像復号装置31が備える構成に加え、逆多重化部313、およびCNNパラメータ復号部314を備えている。
 逆多重化部313は、ストリームを入力し、符号化データと、符号化されたCNNパラメータとに逆多重化する。
 CNNパラメータ復号部314は、符号化されたCNNパラメータを復号し、CNNフィルタ305jに出力する。
 なお、上述した実施形態における画像符号化装置11、画像復号装置31の一部、例えば、エントロピー復号部301、予測パラメータ復号部302、CNNフィルタ305、予測画像生成部308、逆量子化・逆変換部311、加算部312、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、CNNフィルタ107、符号化パラメータ決定部110、予測パラメータ符号化部111をコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、画像符号化装置11、画像復号装置31のいずれかに内蔵されたコンピュータシステムであって、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
 また、上述した実施形態における画像符号化装置11、画像復号装置31の一部、または全部を、LSI(Large Scale Integration)等の集積回路として実現しても良い。画像符号化装置11、画像復号装置31の各機能ブロックは個別にプロセッサ化しても良いし、一部、または全部を集積してプロセッサ化しても良い。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現しても良い。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いても良い。
 以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
 〔応用例〕
 上述した画像符号化装置11及び画像復号装置31は、動画像の送信、受信、記録、再生を行う各種装置に搭載して利用することができる。なお、動画像は、カメラ等により撮像された自然動画像であってもよいし、コンピュータ等により生成された人工動画像(CGおよびGUIを含む)であってもよい。
 まず、上述した画像符号化装置11及び画像復号装置31を、動画像の送信及び受信に利用できることを、図31を参照して説明する。
 図31の(a)は、画像符号化装置11を搭載した送信装置PROD_Aの構成を示したブロック図である。図31の(a)に示すように、送信装置PROD_Aは、動画像を符号化することによって符号化データを得る符号化部PROD_A1と、符号化部PROD_A1が得た符号化データで搬送波を変調することによって変調信号を得る変調部PROD_A2と、変調部PROD_A2が得た変調信号を送信する送信部PROD_A3と、を備えている。上述した画像符号化装置11は、この符号化部PROD_A1として利用される。
 送信装置PROD_Aは、符号化部PROD_A1に入力する動画像の供給源として、動画像を撮像するカメラPROD_A4、動画像を記録した記録媒体PROD_A5、動画像を外部から入力するための入力端子PROD_A6、及び、画像を生成または加工する画像処理部A7を更に備えていてもよい。図31の(a)においては、これら全てを送信装置PROD_Aが備えた構成を例示しているが、一部を省略しても構わない。
 なお、記録媒体PROD_A5は、符号化されていない動画像を記録したものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化された動画像を記録したものであってもよい。後者の場合、記録媒体PROD_A5と符号化部PROD_A1との間に、記録媒体PROD_A5から読み出した符号化データを記録用の符号化方式に従って復号する復号部(不図示)を介在させるとよい。
 図31の(b)は、画像復号装置31を搭載した受信装置PROD_Bの構成を示したブロック図である。図31の(b)に示すように、受信装置PROD_Bは、変調信号を受信する受信部PROD_B1と、受信部PROD_B1が受信した変調信号を復調することによって符号化データを得る復調部PROD_B2と、復調部PROD_B2が得た符号化データを復号することによって動画像を得る復号部PROD_B3と、を備えている。上述した画像復号装置31は、この復号部PROD_B3として利用される。
 受信装置PROD_Bは、復号部PROD_B3が出力する動画像の供給先として、動画像を表示するディスプレイPROD_B4、動画像を記録するための記録媒体PROD_B5、及び、動画像を外部に出力するための出力端子PROD_B6を更に備えていてもよい。図31の(b)においては、これら全てを受信装置PROD_Bが備えた構成を例示しているが、一部を省略しても構わない。
 なお、記録媒体PROD_B5は、符号化されていない動画像を記録するためのものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化されたものであってもよい。後者の場合、復号部PROD_B3と記録媒体PROD_B5との間に、復号部PROD_B3から取得した動画像を記録用の符号化方式に従って符号化する符号化部(不図示)を介在させるとよい。
 なお、変調信号を伝送する伝送媒体は、無線であってもよいし、有線であってもよい。また、変調信号を伝送する伝送態様は、放送(ここでは、送信先が予め特定されていない送信態様を指す)であってもよいし、通信(ここでは、送信先が予め特定されている送信態様を指す)であってもよい。すなわち、変調信号の伝送は、無線放送、有線放送、無線通信、及び有線通信の何れによって実現してもよい。
 例えば、地上デジタル放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を無線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。また、ケーブルテレビ放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を有線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。
 また、インターネットを用いたVOD(Video On Demand)サービスや動画共有サービスなどのサーバ(ワークステーションなど)/クライアント(テレビジョン受像機、パーソナルコンピュータ、スマートフォンなど)は、変調信号を通信で送受信する送信装置PROD_A/受信装置PROD_Bの一例である(通常、LANにおいては伝送媒体として無線または有線の何れかが用いられ、WANにおいては伝送媒体として有線が用いられる)。ここで、パーソナルコンピュータには、デスクトップ型PC、ラップトップ型PC、及びタブレット型PCが含まれる。また、スマートフォンには、多機能携帯電話端末も含まれる。
 なお、動画共有サービスのクライアントは、サーバからダウンロードした符号化データを復号してディスプレイに表示する機能に加え、カメラで撮像した動画像を符号化してサーバにアップロードする機能を有している。すなわち、動画共有サービスのクライアントは、送信装置PROD_A及び受信装置PROD_Bの双方として機能する。
 次に、上述した画像符号化装置11及び画像復号装置31を、動画像の記録及び再生に利用できることを、図32を参照して説明する。
 図32の(a)は、上述した画像符号化装置11を搭載した記録装置PROD_Cの構成を示したブロック図である。図32の(a)に示すように、記録装置PROD_Cは、動画像を符号化することによって符号化データを得る符号化部PROD_C1と、符号化部PROD_C1が得た符号化データを記録媒体PROD_Mに書き込む書込部PROD_C2と、を備えている。上述した画像符号化装置11は、この符号化部PROD_C1として利用される。
 なお、記録媒体PROD_Mは、(1)HDD(Hard Disk Drive)やSSD(Solid State Drive)などのように、記録装置PROD_Cに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSB(Universal Serial Bus)フラッシュメモリなどのように、記録装置PROD_Cに接続されるタイプのものであってもよいし、(3)DVD(Digital Versatile Disc)やBD(Blu-ray Disc:登録商標)などのように、記録装置PROD_Cに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。
 また、記録装置PROD_Cは、符号化部PROD_C1に入力する動画像の供給源として、動画像を撮像するカメラPROD_C3、動画像を外部から入力するための入力端子PROD_C4、動画像を受信するための受信部PROD_C5、及び、画像を生成または加工する画像処理部PROD_C6を更に備えていてもよい。図32の(a)においては、これら全てを記録装置PROD_Cが備えた構成を例示しているが、一部を省略しても構わない。
 なお、受信部PROD_C5は、符号化されていない動画像を受信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを受信するものであってもよい。後者の場合、受信部PROD_C5と符号化部PROD_C1との間に、伝送用の符号化方式で符号化された符号化データを復号する伝送用復号部(不図示)を介在させるとよい。
 このような記録装置PROD_Cとしては、例えば、DVDレコーダ、BDレコーダ、HDD(Hard Disk Drive)レコーダなどが挙げられる(この場合、入力端子PROD_C4または受信部PROD_C5が動画像の主な供給源となる)。また、カムコーダ(この場合、カメラPROD_C3が動画像の主な供給源となる)、パーソナルコンピュータ(この場合、受信部PROD_C5または画像処理部C6が動画像の主な供給源となる)、スマートフォン(この場合、カメラPROD_C3または受信部PROD_C5が動画像の主な供給源となる)なども、このような記録装置PROD_Cの一例である。
 図32の(b)は、上述した画像復号装置31を搭載した再生装置PROD_Dの構成を示したブロックである。図32の(b)に示すように、再生装置PROD_Dは、記録媒体PROD_Mに書き込まれた符号化データを読み出す読出部PROD_D1と、読出部PROD_D1が読み出した符号化データを復号することによって動画像を得る復号部PROD_D2と、を備えている。上述した画像復号装置31は、この復号部PROD_D2として利用される。
 なお、記録媒体PROD_Mは、(1)HDDやSSDなどのように、再生装置PROD_Dに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSBフラッシュメモリなどのように、再生装置PROD_Dに接続されるタイプのものであってもよいし、(3)DVDやBDなどのように、再生装置PROD_Dに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。
 また、再生装置PROD_Dは、復号部PROD_D2が出力する動画像の供給先として、動画像を表示するディスプレイPROD_D3、動画像を外部に出力するための出力端子PROD_D4、及び、動画像を送信する送信部PROD_D5を更に備えていてもよい。図32の(b)においては、これら全てを再生装置PROD_Dが備えた構成を例示しているが、一部を省略しても構わない。
 なお、送信部PROD_D5は、符号化されていない動画像を送信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを送信するものであってもよい。後者の場合、復号部PROD_D2と送信部PROD_D5との間に、動画像を伝送用の符号化方式で符号化する符号化部(不図示)を介在させるとよい。
 このような再生装置PROD_Dとしては、例えば、DVDプレイヤ、BDプレイヤ、HDDプレイヤなどが挙げられる(この場合、テレビジョン受像機等が接続される出力端子PROD_D4が動画像の主な供給先となる)。また、テレビジョン受像機(この場合、ディスプレイPROD_D3が動画像の主な供給先となる)、デジタルサイネージ(電子看板や電子掲示板等とも称され、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、デスクトップ型PC(この場合、出力端子PROD_D4または送信部PROD_D5が動画像の主な供給先となる)、ラップトップ型またはタブレット型PC(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、スマートフォン(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)なども、このような再生装置PROD_Dの一例である。
  (ハードウェア的実現およびソフトウェア的実現)
 また、上述した画像復号装置31および画像符号化装置11の各ブロックは、集積回路(ICチップ)上に形成された論理回路によってハードウェア的に実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェア的に実現してもよい。
 後者の場合、上記各装置は、各機能を実現するプログラムの命令を実行するCPU、上記プログラムを格納したROM(Read Only Memory)、上記プログラムを展開するRAM(RandomAccess Memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、上述した機能を実現するソフトウェアである上記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。
 上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ類、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD-ROM(Compact Disc Read-Only Memory)/MOディスク(Magneto-Optical disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)/CD-R(CD Recordable)/ブルーレイディスク(Blu-ray Disc:登録商標)等の光ディスクを含むディスク類、ICカード(メモリカードを含む)/光カード等のカード類、マスクROM/EPROM(Erasable Programmable Read-Only Memory)/EEPROM(Electrically Erasable and Programmable Read-Only Memory:登録商標)/フラッシュROM等の半導体メモリ類、あるいはPLD(Programmable logic device)やFPGA(Field Programmable Gate Array)等の論理回路類などを用いることができる。
 また、上記各装置を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークは、プログラムコードを伝送可能であればよく、特に限定されない。例えば、インターネット、イントラネット、エキストラネット、LAN(Local Area Network)、ISDN(Integrated Services Digital Network)、VAN(Value-Added Network)、CATV(Community Antenna television/Cable Television)通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、この通信ネットワークを構成する伝送媒体も、プログラムコードを伝送可能な媒体であればよく、特定の構成または種類のものに限定されない。例えば、IEEE(Institute of Electrical and Electronic Engineers)1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber Line)回線等の有線でも、IrDA(Infrared Data Association)やリモコンのような赤外線、BlueTooth(登録商標)、IEEE802.11無線、HDR(High Data Rate)、NFC(Near Field Communication)、DLNA(Digital Living Network Alliance:登録商標)、携帯電話網、衛星回線、地上デジタル放送網等の無線でも利用可能である。なお、本発明の実施形態は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。
 本発明の実施形態は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
 〔まとめ〕
 本発明の態様1に係る画像フィルタ装置(CNNフィルタ107,305)は、輝度又は色差を画素値とする1又は複数の第1種の入力画像データと、予測画像及び差分画像を生成するための参照パラメータに応じた値を画素値とする1又は複数の第2種の入力画像データとが入力され、輝度又は色差を画素値とする1又は複数の第1種の出力画像データを出力するニューラルネットワークを備えている。
 上記の構成によれば、入力画像データに対し、画像特性に応じたフィルタを適用することができる。
 本発明の態様2に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1において、上記ニューラルネットワークが用いるニューラルネットワークパラメータを更新するパラメータ決定部(CNNパラメータ決定部114)をさらに備えていてもよい。
 上記の構成によれば、ニューラルネットワークが用いるパラメータが更新できる。
 本発明の態様3に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1または2において、上記参照パラメータには、当該画像フィルタ装置が作用する画像における量子化パラメータが含まれていてもよい。
 本発明の態様4に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1から3において、上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるイントラ予測及びインター予測の種別を示すパラメータが含まれていてもよい。
 本発明の態様5に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1から4において、上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)が含まれていてもよい。
 本発明の態様6に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1から4において、上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるパーティションの分割深度を示すパラメータが含まれていてもよい。
 本発明の態様7に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1から6において、上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるパーティションのサイズを示すパラメータが含まれていてもよい。
 本発明の態様8に係る画像フィルタ装置(CNNフィルタ107,305)は、上記態様1から7において、上記ニューラルネットワークに入力される上記第1種の入力画像データを出力画像とする第2のニューラルネットワークを備えていてもよい。
 本発明の態様9に係る画像フィルタ装置(CNNフィルタ107、305)において、上記態様1から8における上記ニューラルネットワークは、第1の色差(Cb)と第2の色差(Cr)とを画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとを入力とし、第1の色差(Cb)と第2の色差(Cr)とを画素値とする第1種の出力画像データを出力してもよい。
 本発明の態様10に係る画像フィルタ装置(CNNフィルタ107、305)において、上記態様1から8における上記ニューラルネットワークは、輝度を画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとが入力され、輝度を画素値とする第1種の出力画像データを出力する手段と、第1の色差と第2の色差を画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとが入力され、第1の色差と第2の色差とを画素値とする第1種の出力画像データを出力する手段とを備えていてもよい。
 本発明の態様11に係る画像フィルタ装置(CNNフィルタ107d,107f)は、複数の個別ニューラルネットワーク(107d1,107f1)と、共通ニューラルネットワーク(107d3,107f3)とを備え、上記個別ニューラルネットワーク(107d1,107f1)は、当該画像フィルタ装置(107)への入力画像データにおけるフィルタパラメータの値に応じて、当該入力画像データに対して選択的に作用し、上記共通ニューラルネットワーク(107d3,107f3)は、上記個別ニューラルネットワークの出力画像データに対して、上記フィルタパラメータの値によらずに共通に作用する。
 上記の構成によれば、画像データに、フィルタパラメータの値によるフィルタ処理と、フィルタパラメータの値によらないフィルタ処理の両方を施すことができる。
 本発明の態様12に係る画像フィルタ装置(CNNフィルタ107e)は、複数の個別ニューラルネットワーク(107e2)と、共通ニューラルネットワーク(107e1)とを備え、上記共通ニューラルネットワーク(107e1)は、当該画像フィルタ装置(107)への入力画像データに作用し、上記個別ニューラルネットワーク(107e2)は、上記入力画像データにおけるフィルタパラメータの値に応じて、上記共通ニューラルネットワークの出力画像データに対して選択的に作用する。
 上記の構成によれば、態様3と同様の効果を奏する。
 本発明の態様13に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様11または12において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像における量子化パラメータであってよい。
 上記の構成によれば、画像に応じたフィルタパラメータを用いることができる。
 本発明の態様14に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様11または12において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測及びインター予測の種別を示すパラメータであってよい。
 本発明の態様15に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様11または12において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)であってよい。
 本発明の態様16に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様11または12において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションの分割深度を示すパラメータであってよい。
 本発明の態様17に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様11または12において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションのサイズを示すパラメータであってよい。
 本発明の態様18に係る画像復号装置(31,31j)は、画像を復号する画像復号装置であって、復号画像に作用させるフィルタとして態様1~15の画像フィルタ装置を備えている。
 本発明の態様19に係る画像符号化装置(11,11j)は、画像を符号化する画像符号化装置であって、局所復号画像に作用させるフィルタとして態様1~15の画像フィルタ装置を備えている。
 また、本発明の態様13~17は、以下の構成であってもよい。
 本発明の態様13に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様9または10において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像における量子化パラメータの平均値であってよい。
 上記の構成によれば、画像全体に応じたフィルタパラメータを用いることができる。
 本発明の態様14に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様9または10において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測及びインター予測の種別を示すパラメータの平均値であってよい。
 本発明の態様15に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様9または10において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)の平均値であってよい。
 本発明の態様16に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様9または10において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションの分割深度を示すパラメータの平均値であってよい。
 本発明の態様17に係る画像フィルタ装置(CNNフィルタ107d,107e,107f)は、上記態様9または10において、上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションのサイズを示すパラメータの平均値であってよい。
 本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。
 本発明の実施形態は、画像データが符号化された符号化データを復号する画像復号装置、および、画像データが符号化された符号化データを生成する画像符号化装置に好適に適用することができる。また、画像符号化装置によって生成され、画像復号装置によって参照される符号化データのデータ構造に好適に適用することができる。
 〔関連出願の相互参照〕
 本出願は、2017年8月10日に出願された出願番号2017-155903号、2018年3月20日に出願された出願番号2018-053226号の出願に関するものであって上記出願を基礎として優先権を主張するものである。上記出願の内容は、参照により本明細書に含まれる。
 11 画像符号化装置
 31 画像復号装置
 107 CNNフィルタ(画像フィルタ装置)
 114 CNNパラメータ決定部(パラメータ決定部)

Claims (19)

  1.  画像フィルタ装置において、
     輝度又は色差を画素値とする1又は複数の第1種の入力画像データと、予測画像又は差分画像を生成するための参照パラメータに応じた値を画素値とする1又は複数の第2種の入力画像データとが入力され、輝度又は色差を画素値とする1又は複数の第1種の出力画像データを出力するニューラルネットワークを備えることを特徴とする画像フィルタ装置。
  2.  上記ニューラルネットワークが用いるニューラルネットワークパラメータを更新するパラメータ決定部をさらに備えることを特徴とする請求項1に記載の画像フィルタ装置。
  3.  上記参照パラメータには、当該画像フィルタ装置が作用する画像における量子化パラメータが含まれることを特徴とする請求項1または2に記載の画像フィルタ装置。
  4.  上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるイントラ予測及びインター予測の種別を示すパラメータが含まれることを特徴とする請求項1から3の何れか1項に記載の画像フィルタ装置。
  5.  上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)が含まれることを特徴とする請求項1から4の何れか1項に記載の画像フィルタ装置。
  6.  上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるパーティションの分割深度を示すパラメータが含まれることを特徴とする請求項1から5の何れか1項に記載の画像フィルタ装置。
  7.  上記参照パラメータには、当該画像フィルタ装置が作用する画像におけるパーティションのサイズを示すパラメータが含まれることを特徴とする請求項1から6の何れか1項に記載の画像フィルタ装置。
  8.  上記ニューラルネットワークに入力される上記第1種の入力画像データを出力画像とする第2のニューラルネットワークを備えていることを特徴とする請求項1から7の何れか1項に記載の画像フィルタ装置。
  9.  上記ニューラルネットワークは、第1の色差と第2の色差とを画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとを入力とし、第1の色差と第2の色差とを画素値とする第1種の出力画像データを出力することを特徴とする請求項1~8の何れか1項に記載の画像フィルタ装置。
  10.  上記ニューラルネットワークは、
      輝度を画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとが入力され、輝度を画素値とする第1種の出力画像データを出力する手段と、
      第1の色差と第2の色差を画素値とする上記第1種の入力画像データと、上記第2種の入力画像データとが入力され、第1の色差と第2の色差とを画素値とする第1種の出力画像データを出力する手段と
    を備えることを特徴とする請求項1~8の何れか1項に記載の画像フィルタ装置。
  11.  画像フィルタ装置において、
     複数の個別ニューラルネットワークと、
     共通ニューラルネットワークとを備え、
     上記個別ニューラルネットワークは、当該画像フィルタ装置への入力画像データにおけるフィルタパラメータの値に応じて、当該入力画像データに対して選択的に作用し、
     上記共通ニューラルネットワークは、上記個別ニューラルネットワークの出力画像データに対して、上記フィルタパラメータの値によらずに共通に作用する
    ことを特徴とする画像フィルタ装置。
  12.  画像フィルタ装置において、
     複数の個別ニューラルネットワークと、
     共通ニューラルネットワークとを備え、
     上記共通ニューラルネットワークは、当該画像フィルタ装置への入力画像データに作用し、
     上記個別ニューラルネットワークは、上記入力画像データにおけるフィルタパラメータの値に応じて、上記共通ニューラルネットワークの出力画像データに対して選択的に作用する
    ことを特徴とする画像フィルタ装置。
  13.  上記フィルタパラメータは、当該画像フィルタ装置が作用する画像における量子化パラメータである
    ことを特徴とする請求項11または12に記載の画像フィルタ装置。
  14.  上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測及びインター予測の種別を示すパラメータである
    ことを特徴とする請求項11または12に記載の画像フィルタ装置。
  15.  上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるイントラ予測方向を示すパラメータ(イントラ予測モード)である
    ことを特徴とする請求項11または12に記載の画像フィルタ装置。
  16.  上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションの分割深度を示すパラメータである
    ことを特徴とする請求項11または12に記載の画像フィルタ装置。
  17.  上記フィルタパラメータは、当該画像フィルタ装置が作用する画像におけるパーティションのサイズを示すパラメータである
    ことを特徴とする請求項11または12に記載の画像フィルタ装置。
  18.  画像を復号する画像復号装置であって、復号画像に作用させるフィルタとして請求項1から17の何れか1項に記載の画像フィルタ装置を備えた画像復号装置。
  19.  画像を符号化する画像符号化装置であって、局所復号画像に作用させるフィルタとして請求項1から17の何れか1項に記載の画像フィルタ装置を備えた画像符号化装置。
PCT/JP2018/029247 2017-08-10 2018-08-03 画像フィルタ装置、画像復号装置、および画像符号化装置 WO2019031410A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2019535621A JP7260472B2 (ja) 2017-08-10 2018-08-03 画像フィルタ装置
CN202310118912.8A CN116170590A (zh) 2017-08-10 2018-08-03 图像滤波装置、图像解码装置以及图像编码装置
US16/636,669 US11631199B2 (en) 2017-08-10 2018-08-03 Image filtering apparatus, image decoding apparatus, and image coding apparatus
CN201880051253.8A CN111373751B (zh) 2017-08-10 2018-08-03 图像滤波装置、图像解码装置以及图像编码装置
JP2023062262A JP2023076688A (ja) 2017-08-10 2023-04-06 画像フィルタ装置、画像復号装置、および画像符号化装置

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2017155903 2017-08-10
JP2017-155903 2017-08-10
JP2018053226 2018-03-20
JP2018-053226 2018-03-20

Publications (1)

Publication Number Publication Date
WO2019031410A1 true WO2019031410A1 (ja) 2019-02-14

Family

ID=65272386

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/029247 WO2019031410A1 (ja) 2017-08-10 2018-08-03 画像フィルタ装置、画像復号装置、および画像符号化装置

Country Status (4)

Country Link
US (1) US11631199B2 (ja)
JP (2) JP7260472B2 (ja)
CN (2) CN116170590A (ja)
WO (1) WO2019031410A1 (ja)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109996084A (zh) * 2019-04-30 2019-07-09 华侨大学 一种基于多分支卷积神经网络的hevc帧内预测方法
JP2019159145A (ja) * 2018-03-14 2019-09-19 カシオ計算機株式会社 情報処理方法、電子機器及びプログラム
WO2020181554A1 (zh) * 2019-03-14 2020-09-17 Oppo广东移动通信有限公司 预测值的确定方法、解码器以及计算机存储介质
JP2020150358A (ja) * 2019-03-12 2020-09-17 Kddi株式会社 画像復号装置、画像復号方法及びプログラム
WO2020247014A1 (en) * 2019-06-04 2020-12-10 Google Llc Quantization constrained neural image coding
JP2022522860A (ja) * 2019-03-07 2022-04-20 オッポ広東移動通信有限公司 インループフィルタリングの実現方法、装置及びコンピュータ記憶媒体
JP2022526107A (ja) * 2019-03-24 2022-05-23 オッポ広東移動通信有限公司 フィルタリング方法、装置、エンコーダ及びコンピュータ記憶媒体
JP2022528604A (ja) * 2019-03-07 2022-06-15 オッポ広東移動通信有限公司 ループフィルタリング方法、装置およびコンピュータ記憶媒体
KR20230041084A (ko) * 2020-09-16 2023-03-23 퀄컴 인코포레이티드 단대단 신경망 기반 비디오 코딩
JP2023517349A (ja) * 2020-12-16 2023-04-25 テンセント・アメリカ・エルエルシー ビデオコーディング方法及び装置
JP2023522163A (ja) * 2021-01-11 2023-05-29 テンセント・アメリカ・エルエルシー マルチタスクニューラルネットワークを使用するマルチ品質ループフィルタによるビデオ処理の方法、装置及びコンピュータプログラム
WO2023149367A1 (en) * 2022-02-02 2023-08-10 Sharp Kabushiki Kaisha Systems and methods for improving object detection in compressed feature data in coding of multi-dimensional data
JP7411113B2 (ja) 2021-01-14 2024-01-10 テンセント・アメリカ・エルエルシー 品質入力を有するループフィルタのためのマスクされたニューラルネットワークによるモデル共有
JP7438611B2 (ja) 2021-05-18 2024-02-27 テンセント・アメリカ・エルエルシー 品質適応型ニューラル・ネットワーク・ベースのループフィルタのための代替品質ファクター学習

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11562115B2 (en) 2017-01-04 2023-01-24 Stmicroelectronics S.R.L. Configurable accelerator framework including a stream switch having a plurality of unidirectional stream links
CN110874605B (zh) * 2018-08-31 2024-05-03 嘉楠明芯(北京)科技有限公司 图像识别处理方法和装置
CN110956575B (zh) * 2018-09-26 2022-04-12 京东方科技集团股份有限公司 转变图像风格的方法和装置、卷积神经网络处理器
BR112021021434A2 (pt) * 2019-04-26 2021-12-21 Huawei Tech Co Ltd Método e aparelho para sinalização de função de mapeamento de parâmetro de quantização de croma
US11593609B2 (en) * 2020-02-18 2023-02-28 Stmicroelectronics S.R.L. Vector quantization decoding hardware unit for real-time dynamic decompression for parameters of neural networks
US11838519B2 (en) * 2020-02-28 2023-12-05 Lg Electronics Inc. Image encoding/decoding method and apparatus for signaling image feature information, and method for transmitting bitstream
US11531873B2 (en) 2020-06-23 2022-12-20 Stmicroelectronics S.R.L. Convolution acceleration with embedded vector decompression

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016199330A1 (ja) * 2015-06-12 2016-12-15 パナソニックIpマネジメント株式会社 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置
JP2017055434A (ja) * 2011-10-28 2017-03-16 サムスン エレクトロニクス カンパニー リミテッド ビデオのイントラ予測方法及びその装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6259479B1 (en) * 1997-09-17 2001-07-10 Sony Corporation Letterbox filter apparatus and method
US7126989B2 (en) * 2001-09-12 2006-10-24 Matsushita Electric Industrial Co., Ltd. Image coding method and image decoding method
CN103096078B (zh) * 2006-01-09 2015-10-21 Lg电子株式会社 用于视频信号的层间预测方法和装置
CN101267560A (zh) * 2008-03-19 2008-09-17 浙江大学 去块滤波方法及装置
CN101635849B (zh) * 2008-07-24 2011-11-16 青岛海信信芯科技有限公司 一种环路滤波方法及环路滤波器
CN101505425B (zh) * 2009-03-11 2011-11-23 北京中星微电子有限公司 一种宏块滤波方法及装置
CN101651829A (zh) * 2009-06-29 2010-02-17 北京中星微电子有限公司 一种环路滤波的方法、装置及一种移动多媒体终端芯片
WO2012176910A1 (ja) * 2011-06-23 2012-12-27 シャープ株式会社 オフセット復号装置、オフセット符号化装置、画像フィルタ装置、および、データ構造
CN106941608B (zh) * 2011-06-30 2021-01-15 三菱电机株式会社 图像编码装置及方法、图像解码装置及方法
CA2944829C (en) * 2014-05-23 2022-10-25 Ting Chen Systems and methods for detection of biological structures and/or patterns in images
CA2997193C (en) * 2015-09-03 2021-04-06 Mediatek Inc. Method and apparatus of neural network based processing in video coding
CN108932697B (zh) * 2017-05-26 2020-01-17 杭州海康威视数字技术股份有限公司 一种失真图像的去失真方法、装置及电子设备
WO2019009448A1 (ko) * 2017-07-06 2019-01-10 삼성전자 주식회사 영상을 부호화 또는 복호화하는 방법 및 장치

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017055434A (ja) * 2011-10-28 2017-03-16 サムスン エレクトロニクス カンパニー リミテッド ビデオのイントラ予測方法及びその装置
WO2016199330A1 (ja) * 2015-06-12 2016-12-15 パナソニックIpマネジメント株式会社 画像符号化方法、画像復号方法、画像符号化装置および画像復号装置

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019159145A (ja) * 2018-03-14 2019-09-19 カシオ計算機株式会社 情報処理方法、電子機器及びプログラム
WO2019176950A1 (en) * 2018-03-14 2019-09-19 Casio Computer Co., Ltd. Machine learning method, audio source separation apparatus, audio source separation method, electronic instrument and audio source separation model generation apparatus
US11568857B2 (en) 2018-03-14 2023-01-31 Casio Computer Co., Ltd. Machine learning method, audio source separation apparatus, and electronic instrument
JP2022528604A (ja) * 2019-03-07 2022-06-15 オッポ広東移動通信有限公司 ループフィルタリング方法、装置およびコンピュータ記憶媒体
US11627342B2 (en) 2019-03-07 2023-04-11 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Loop filtering implementation method and apparatus, and computer storage medium
JP7350082B2 (ja) 2019-03-07 2023-09-25 オッポ広東移動通信有限公司 ループフィルタリング方法、装置およびコンピュータ記憶媒体
JP2022522860A (ja) * 2019-03-07 2022-04-20 オッポ広東移動通信有限公司 インループフィルタリングの実現方法、装置及びコンピュータ記憶媒体
JP2020150358A (ja) * 2019-03-12 2020-09-17 Kddi株式会社 画像復号装置、画像復号方法及びプログラム
WO2020184266A1 (ja) * 2019-03-12 2020-09-17 Kddi株式会社 画像復号装置、画像復号方法及びプログラム
JP7026065B2 (ja) 2019-03-12 2022-02-25 Kddi株式会社 画像復号装置、画像復号方法及びプログラム
WO2020181554A1 (zh) * 2019-03-14 2020-09-17 Oppo广东移动通信有限公司 预测值的确定方法、解码器以及计算机存储介质
JP2022526107A (ja) * 2019-03-24 2022-05-23 オッポ広東移動通信有限公司 フィルタリング方法、装置、エンコーダ及びコンピュータ記憶媒体
CN109996084B (zh) * 2019-04-30 2022-11-01 华侨大学 一种基于多分支卷积神经网络的hevc帧内预测方法
CN109996084A (zh) * 2019-04-30 2019-07-09 华侨大学 一种基于多分支卷积神经网络的hevc帧内预测方法
WO2020247014A1 (en) * 2019-06-04 2020-12-10 Google Llc Quantization constrained neural image coding
US11166022B2 (en) 2019-06-04 2021-11-02 Google Llc Quantization constrained neural image coding
US11849113B2 (en) 2019-06-04 2023-12-19 Google Llc Quantization constrained neural image coding
KR20230041084A (ko) * 2020-09-16 2023-03-23 퀄컴 인코포레이티드 단대단 신경망 기반 비디오 코딩
KR102578967B1 (ko) 2020-09-16 2023-09-14 퀄컴 인코포레이티드 단대단 신경망 기반 비디오 코딩
JP2023517349A (ja) * 2020-12-16 2023-04-25 テンセント・アメリカ・エルエルシー ビデオコーディング方法及び装置
JP7403747B2 (ja) 2020-12-16 2023-12-25 テンセント・アメリカ・エルエルシー ビデオコーディング方法及び装置
JP2023522163A (ja) * 2021-01-11 2023-05-29 テンセント・アメリカ・エルエルシー マルチタスクニューラルネットワークを使用するマルチ品質ループフィルタによるビデオ処理の方法、装置及びコンピュータプログラム
JP7408835B2 (ja) 2021-01-11 2024-01-05 テンセント・アメリカ・エルエルシー マルチタスクニューラルネットワークを使用するマルチ品質ループフィルタによるビデオ処理の方法、装置及びコンピュータプログラム
JP7411113B2 (ja) 2021-01-14 2024-01-10 テンセント・アメリカ・エルエルシー 品質入力を有するループフィルタのためのマスクされたニューラルネットワークによるモデル共有
JP7438611B2 (ja) 2021-05-18 2024-02-27 テンセント・アメリカ・エルエルシー 品質適応型ニューラル・ネットワーク・ベースのループフィルタのための代替品質ファクター学習
WO2023149367A1 (en) * 2022-02-02 2023-08-10 Sharp Kabushiki Kaisha Systems and methods for improving object detection in compressed feature data in coding of multi-dimensional data

Also Published As

Publication number Publication date
CN111373751A (zh) 2020-07-03
CN111373751B (zh) 2023-02-28
US11631199B2 (en) 2023-04-18
US20210150767A1 (en) 2021-05-20
CN116170590A (zh) 2023-05-26
JP2023076688A (ja) 2023-06-01
JP7260472B2 (ja) 2023-04-18
JPWO2019031410A1 (ja) 2020-08-27

Similar Documents

Publication Publication Date Title
JP7260472B2 (ja) 画像フィルタ装置
WO2018199001A1 (ja) 画像復号装置及び画像符号化装置
WO2018116802A1 (ja) 画像復号装置、画像符号化装置、及び画像予測装置
JP7213689B2 (ja) 画像復号装置及び画像符号化装置
WO2019087905A1 (ja) 画像フィルタ装置、画像復号装置、および画像符号化装置
WO2019054300A1 (ja) 画像符号化装置及び画像復号装置
WO2019069950A1 (ja) 画像符号化装置及び画像復号装置
WO2019182159A1 (ja) 画像フィルタ装置、画像復号装置、及び画像符号化装置
WO2019131400A1 (ja) 画像フィルタ装置、画像復号装置、および画像符号化装置
JP7139144B2 (ja) 画像フィルタ装置
JP7241153B2 (ja) 画像復号装置
JP2020109884A (ja) 動画像符号化装置及び動画像復号装置
JP2020120141A (ja) 動画像符号化装置及び動画像復号装置、フィルタ装置
WO2019065488A1 (ja) 画像復号装置および画像符号化装置
JP7073186B2 (ja) 画像フィルタ装置
WO2019131349A1 (ja) 画像復号装置、画像符号化装置
JP2019201332A (ja) 画像符号化装置、画像復号装置、及び画像符号化システム
WO2018061550A1 (ja) 画像復号装置及び画像符号化装置
JP7332753B2 (ja) 画像フィルタ装置
WO2019131778A1 (ja) 画像復号装置及び画像符号化装置
JP2020068462A (ja) 画像ビット階調拡張フィルタ装置及び画像符号化装置、画像復号装置
WO2019065537A1 (ja) 動き補償フィルタ装置、画像復号装置および動画像符号化装置
JP2021064817A (ja) 動画像符号化装置及び動画像復号装置
JP2022150312A (ja) 動画像復号装置および動画像符号化装置
WO2018101100A1 (ja) 画像フィルタ装置

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: 18842917

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019535621

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18842917

Country of ref document: EP

Kind code of ref document: A1