WO2021128265A1 - Filtering method and device - Google Patents

Filtering method and device Download PDF

Info

Publication number
WO2021128265A1
WO2021128265A1 PCT/CN2019/129144 CN2019129144W WO2021128265A1 WO 2021128265 A1 WO2021128265 A1 WO 2021128265A1 CN 2019129144 W CN2019129144 W CN 2019129144W WO 2021128265 A1 WO2021128265 A1 WO 2021128265A1
Authority
WO
WIPO (PCT)
Prior art keywords
quantization
scale
filter coefficients
filter
input image
Prior art date
Application number
PCT/CN2019/129144
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2019/129144 priority Critical patent/WO2021128265A1/en
Publication of WO2021128265A1 publication Critical patent/WO2021128265A1/en

Links

Images

Classifications

    • 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/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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/30Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using hierarchical techniques, e.g. scalability
    • H04N19/36Scalability techniques involving formatting the layers as a function of picture distortion after decoding, e.g. signal-to-noise [SNR] scalability

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Embodiments of the present application provide a filtering method and device. The method comprises: determining a quantization scale for each of multiple sets of filter coefficients of a cross-component adaptive loop filter (CC-ALF); performing a quantization operation on each set of filter coefficients using the quantization scale corresponding thereto, so as to obtain a quantization result for each set of filter coefficients; and using the quantization results of respective sets of filter coefficients to perform a filtering operation on luma information of an input image, so as to obtain chroma compensation information. In the present application, respective filter coefficients in each set of filter coefficients are quantized using a single quantization scale, and then luma information of an input image is filtered on the basis of the quantization results, so as to obtain chroma compensation information, thus improving coding and decoding efficiency.

Description

滤波方法及其装置Filtering method and device 技术领域Technical field
本申请涉及视频编解码技术领域以及图像压缩技术领域。This application relates to the technical field of video coding and decoding and the technical field of image compression.
背景技术Background technique
环路滤波器是当前VCC(Versatile Video Coding,通用视频编码)草案中的一系列滤波器,可以同时提高主观质量(subjective quality)和编码效率(coding efficiency)。现在,一项名为跨分量自适应环路滤波器(Cross Component Adaptive Loop Filter,CC-ALF)的新工具正在核心实验研究中。图1示出了自适应环路滤波器中CC-ALF的结构,图2示出了当前CC-ALF的每组滤波系数的形状。The loop filter is a series of filters in the current VCC (Versatile Video Coding) draft, which can improve subjective quality and coding efficiency at the same time. Now, a new tool called Cross Component Adaptive Loop Filter (CC-ALF) is under core experimental research. Figure 1 shows the structure of the CC-ALF in the adaptive loop filter, and Figure 2 shows the shape of each set of filter coefficients of the current CC-ALF.
如图1所示,CC-ALF的原理是使用亮度信息(Luma)中的边缘信息来补偿色度(Chroma),因为色度信息可能会在压缩时丢失。如图2所示,CC-ALF目前支持每个帧中4组3×4的菱形,8个系数的非对称滤波器,这是通过编码器端的计算得出的。每个系数限制在6比特范围内(从-32到31)。As shown in Figure 1, the principle of CC-ALF is to use the edge information in the luminance information (Luma) to compensate the chroma (Chroma), because the chroma information may be lost during compression. As shown in Figure 2, CC-ALF currently supports 4 groups of 3×4 diamonds and 8 coefficient asymmetric filters in each frame, which is calculated by the encoder. Each coefficient is limited to 6 bits (from -32 to 31).
在编码器侧,计算出的原始滤波系数是小数形式(double type number)。它们需要量化为6比特的整数。图3示出了一种量化方法,包括:On the encoder side, the calculated original filter coefficients are in decimal form (double type number). They need to be quantized into 6-bit integers. Figure 3 shows a quantification method, including:
操作301:获取小数形式的原始滤波系数,令C i表示CC-ALF滤波器中的原始滤波系数,i∈[1,8]; Operation 301: Obtain the original filter coefficient in decimal form, and let C i denote the original filter coefficient in the CC-ALF filter, i∈[1,8];
操作302:C′ i=round(C i×128); Operation 302: C′ i =round(C i ×128);
操作303:将C′ i限制到[-32,31]的范围内,得到C″ i;这里,使用C″ i代表限制到6比特的整数中的量化系数: Operation 303: Limit C′ i to the range of [-32, 31] to obtain C″ i ; here, use C″ i to represent the quantization coefficient limited to a 6-bit integer:
操作304:在对像素进行滤波时,Pi′ chroma=Pi chroma+round(∑C″ i×Pi luma)÷128,其中,Pi′ chroma为对输入图像的色度信息进行滤波得到的色度信息,round(∑C″ i×Pi luma)÷128为对输入图像的亮度信息进行滤波得到的色度补偿信息。 Operation 304: When filtering the pixels, Pi' chroma = Pi chroma + round(∑C″ i × Pi luma ) ÷ 128, where Pi' chroma is the chrominance information obtained by filtering the chrominance information of the input image , Round(∑C″ i ×Pi luma )÷128 is the chrominance compensation information obtained by filtering the luminance information of the input image.
应该注意,上面对技术背景的介绍只是为了方便对本申请的技术方案进行清楚、完整的说明,并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本申请的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。It should be noted that the above introduction to the technical background is only for the convenience of a clear and complete description of the technical solutions of the present application, and to facilitate the understanding of those skilled in the art. It should not be considered that the above technical solutions are well-known to those skilled in the art just because these solutions are described in the background art part of this application.
发明内容Summary of the invention
本申请的发明人发现,所有滤波系数都使用此过程进行量化可能会出现这样一个问题,即,很小范围内的某些系数将被量化为非常低的精度。例如,滤波器的原始滤波系数为0.03,即C i=0.03,根据以上过程,它将被量化为整数4,即C′ i=4,由于4位于[-32,31]的范围内,则C″ i=C′ i=4,而由于6比特范围可以支持最大值31,这将导致精度损失比较大。 The inventor of the present application found that using this process for quantization of all filter coefficients may cause a problem that some coefficients in a small range will be quantized to very low precision. For example, the original filter coefficient of the filter is 0.03, that is, C i =0.03. According to the above process, it will be quantized to an integer 4, that is, C′ i =4. Since 4 is in the range of [-32, 31], then C" i =C' i =4, and since the 6-bit range can support the maximum value of 31, this will result in a relatively large loss of accuracy.
为了解决上述问题或解决其他类似问题,本申请实施例提供一种滤波方法及其装置,通过修改当前CC-ALF的滤波过程,使用自适应尺度(adaptive scale)来量化CC-ALF的滤波系数,以充分利用需要量化到的比特范围,降低精度损失,提高编码效率。In order to solve the above-mentioned problems or solve other similar problems, embodiments of the present application provide a filtering method and device, which modify the current CC-ALF filtering process and use an adaptive scale to quantize the CC-ALF filter coefficients. In order to make full use of the bit range that needs to be quantized, the precision loss is reduced and the coding efficiency is improved.
根据本申请实施例的第一方面,提供了一种滤波方法,其中,所述滤波方法包括:According to a first aspect of the embodiments of the present application, there is provided a filtering method, wherein the filtering method includes:
针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;Determine a quantization scale for each set of filter coefficients in the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;Perform a quantization operation on each set of filter coefficients using the quantization scale corresponding to each set of filter coefficients to obtain the quantization result of each set of filter coefficients;
使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。The quantization result of each set of filter coefficients is used to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
根据本申请实施例的第二方面,提供了一种滤波装置,其中,所述滤波装置包括:According to a second aspect of the embodiments of the present application, there is provided a filtering device, wherein the filtering device includes:
确定单元,其针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;A determining unit, which determines a quantization scale for each set of filter coefficients in the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
量化单元,其使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;A quantization unit, which uses the quantization scale corresponding to each group of filter coefficients to perform a quantization operation on each group of filter coefficients to obtain a quantization result of each group of filter coefficients;
滤波单元,其使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。The filtering unit uses the quantization result of each set of filter coefficients to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
根据本申请实施例的第三方面,提供了一种滤波方法,其中,所述滤波方法包括:According to a third aspect of the embodiments of the present application, there is provided a filtering method, wherein the filtering method includes:
从接收到的码流中获取量化尺度;Obtain the quantization scale from the received code stream;
利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息。The luminance information of the input image is filtered by using the quantization scale, and the chrominance compensation information is output.
根据本申请实施例的第四方面,提供了一种滤波装置,其中,所述滤波装置包括:According to a fourth aspect of the embodiments of the present application, there is provided a filtering device, wherein the filtering device includes:
读取单元,其从接收到的码流中获取量化尺度;A reading unit, which obtains the quantization scale from the received code stream;
滤波单元,其利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息。The filtering unit uses the quantization scale to perform a filtering operation on the luminance information of the input image, and output chrominance compensation information.
根据本申请实施例的第五方面,提供了一种图像编码器,其中,所述图像编码器包括:According to a fifth aspect of the embodiments of the present application, there is provided an image encoder, wherein the image encoder includes:
亮度滤波器(SAO Luma),其对输入图像进行滤波操作,输出所述输入图像的亮度信息;Luma filter (SAO Luma), which performs a filtering operation on an input image and outputs the brightness information of the input image;
自适应环路滤波器(CC-ALF Cb/Cr),其对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;以及An adaptive loop filter (CC-ALF Cb/Cr), which performs a filtering operation on the luminance information of the input image, and outputs chrominance compensation information; and
色度滤波器(ALF Chroma),其对输入图像进行滤波操作,输出所述输入图像的色度信息;Chroma filter (ALF Chroma), which performs a filtering operation on the input image, and outputs the chroma information of the input image;
其中,所述自适应环路滤波器(CC-ALF Cb/Cr)被配置为:针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。Wherein, the adaptive loop filter (CC-ALF Cb/Cr) is configured to determine one filter coefficient for each of the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF) Quantization scale; use the quantization scale corresponding to each set of filter coefficients to quantize each set of filter coefficients to obtain the quantization result of each set of filter coefficients; use the quantization result of each set of filter coefficients to filter the brightness information of the input image to obtain the color The chrominance compensation information is used to compensate the chrominance information of the input image.
根据本申请实施例的第六方面,提供了一种图像解码器,其中,所述图像解码器包括:According to a sixth aspect of the embodiments of the present application, there is provided an image decoder, wherein the image decoder includes:
亮度滤波器(SAO Luma),其对输入图像进行滤波操作,输出所述输入图像的亮度信息;Luma filter (SAO Luma), which performs a filtering operation on an input image and outputs the brightness information of the input image;
自适应环路滤波器(CC-ALF Cb/Cr),其对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;以及An adaptive loop filter (CC-ALF Cb/Cr), which performs a filtering operation on the luminance information of the input image, and outputs chrominance compensation information; and
色度滤波器(ALF Chroma),其对输入图像进行滤波操作,输出所述输入图像的色度信息;Chroma filter (ALF Chroma), which performs a filtering operation on the input image, and outputs the chroma information of the input image;
其中,所述自适应环路滤波器(CC-ALF Cb/Cr)被配置为:从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。Wherein, the adaptive loop filter (CC-ALF Cb/Cr) is configured to obtain a quantization scale from the received code stream, use the quantization scale to filter the brightness information of the input image, and output color The chrominance compensation information is used to compensate the chrominance information of the input image.
根据本申请实施例的其他方面,提供了一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得所述图像处理设备执行前述第一方面或第三方 面所述的方法。According to other aspects of the embodiments of the present application, a computer-readable program is provided, wherein when the program is executed in an image processing device, the program causes the image processing device to execute the aforementioned first aspect or third aspect. The method described.
根据本申请实施例的其他方面,提供了一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得图像处理设备执行前述第一方面或第三方面所述的方法。According to other aspects of the embodiments of the present application, there is provided a storage medium storing a computer readable program, wherein the computer readable program causes an image processing device to execute the method described in the first aspect or the third aspect.
本申请实施例的有益效果之一在于:在CC-ALF系数量化中使用自适应的量化尺度(Scale)来获得更高的精度并提高编码效率。One of the beneficial effects of the embodiments of the present application is that an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients to obtain higher precision and improve coding efficiency.
参照后文的说明和附图,详细公开了本申请的特定实施方式,指明了本申请的原理可以被采用的方式。应该理解,本申请的实施方式在范围上并不因而受到限制。在所附权利要求的条款的范围内,本申请的实施方式包括许多改变、修改和等同。With reference to the following description and drawings, specific implementations of the present application are disclosed in detail, and the ways in which the principles of the present application can be adopted are indicated. It should be understood that the scope of the embodiments of the present application is not limited thereby. Within the scope of the terms of the appended claims, the implementation of the present application includes many changes, modifications and equivalents.
针对一种实施方式描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施方式中使用,与其它实施方式中的特征相组合,或替代其它实施方式中的特征。Features described and/or shown for one embodiment can be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or substituted for features in other embodiments .
应该强调,术语“包括/包含”在本文使用时指特征、整件、步骤或组件的存在,但并不排除一个或更多个其它特征、整件、步骤或组件的存在或附加。It should be emphasized that the term "comprising/comprising" when used herein refers to the existence of a feature, a whole, a step or a component, but does not exclude the existence or addition of one or more other features, a whole, a step or a component.
附图说明Description of the drawings
在本申请实施例的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个其它附图或实施方式中示出的元素和特征相结合。此外,在附图中,类似的标号表示几个附图中对应的部件,并可用于指示多于一种实施方式中使用的对应部件。The elements and features described in one drawing or one embodiment of the embodiment of the present application may be combined with the elements and features shown in one or more other drawings or embodiments. In addition, in the drawings, similar reference numerals indicate corresponding parts in several drawings, and may be used to indicate corresponding parts used in more than one embodiment.
所包括的附图用来提供对本申请实施例的进一步的理解,其构成了说明书的一部分,用于例示本申请的实施方式,并与文字描述一起来阐释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the embodiments of the present application, and together with the text description, explain the principle of the present application. Obviously, the drawings in the following description are only some embodiments of the application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the attached picture:
图1是跨分量自适应环路滤波器(CC-ALF)在编码器中的位置的一个示意图;Figure 1 is a schematic diagram of the position of the cross-component adaptive loop filter (CC-ALF) in the encoder;
图2是跨分量自适应环路滤波器(CC-ALF)的每组滤波系数的一个示意图;Figure 2 is a schematic diagram of each set of filter coefficients of a cross-component adaptive loop filter (CC-ALF);
图3是现有的跨分量自适应环路滤波器(CC-ALF)的滤波方法的一个示意图;Fig. 3 is a schematic diagram of a conventional cross-component adaptive loop filter (CC-ALF) filtering method;
图4是本申请实施例的滤波方法的一个示意图;FIG. 4 is a schematic diagram of a filtering method according to an embodiment of the present application;
图5是本申请实施例的滤波方法的另一个示意图;FIG. 5 is another schematic diagram of the filtering method according to an embodiment of the present application;
图6是本申请实施例的滤波方法的又一个示意图;FIG. 6 is another schematic diagram of the filtering method according to an embodiment of the present application;
图7是本申请实施例的滤波方法的一个示意图;FIG. 7 is a schematic diagram of a filtering method according to an embodiment of the present application;
图8是本申请实施例的滤波装置的一个示意图;FIG. 8 is a schematic diagram of a filtering device according to an embodiment of the present application;
图9是本申请实施例的滤波装置的另一个示意图;FIG. 9 is another schematic diagram of the filtering device of the embodiment of the present application;
图10是本申请实施例的图像编码器的一个示意图;Fig. 10 is a schematic diagram of an image encoder according to an embodiment of the present application;
图11是本申请实施例的图像解码器的一个示意图;Fig. 11 is a schematic diagram of an image decoder according to an embodiment of the present application;
图12是本申请实施例的图像处理设备的一个示意图。Fig. 12 is a schematic diagram of an image processing device according to an embodiment of the present application.
具体实施方式Detailed ways
参照附图,通过下面的说明书,本申请的前述以及其它特征将变得明显。在说明书和附图中,具体公开了本申请的特定实施方式,其表明了其中可以采用本申请的原则的部分实施方式,应了解的是,本申请不限于所描述的实施方式,相反,本申请包括落入所附权利要求的范围内的全部修改、变型以及等同物。With reference to the drawings, the foregoing and other features of this application will become apparent through the following description. In the specification and drawings, specific implementations of the application are specifically disclosed, which indicate some implementations in which the principles of the application can be adopted. It should be understood that the application is not limited to the described implementations. On the contrary, the present application is not limited to the described implementations. The application includes all modifications, variations and equivalents falling within the scope of the appended claims.
在本申请实施例中,术语“第一”、“第二”等用于对不同元素从称谓上进行区分,但并不表示这些元素的空间排列或时间顺序等,这些元素不应被这些术语所限制。术语“和/或”包括相关联列出的术语的一种或多个中的任何一个和所有组合。术语“包含”、“包括”、“具有”等是指所陈述的特征、元素、元件或组件的存在,但并不排除存在或添加一个或多个其他特征、元素、元件或组件。In the embodiments of this application, the terms "first", "second", etc. are used to distinguish different elements from the terms, but they do not indicate the spatial arrangement or chronological order of these elements. These elements should not be used by these terms. Limited. The term "and/or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having" and the like refer to the existence of the stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
在本申请实施例中,单数形式“一”、“该”等包括复数形式,应广义地理解为“一种”或“一类”而并不是限定为“一个”的含义;此外术语“所述”应理解为既包括单数形式也包括复数形式,除非上下文另外明确指出。此外术语“根据”应理解为“至少部分根据……”,术语“基于”应理解为“至少部分基于……”,除非上下文另外明确指出。In the embodiments of this application, the singular forms "a", "the", etc. include plural forms, which should be broadly understood as "a" or "a type" rather than being limited to the meaning of "a"; in addition, the term "so" "Said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "based on" should be understood as "based at least in part on...", and the term "based on" should be understood as "based at least in part on...", unless the context clearly dictates otherwise.
下面结合附图对本申请实施例的各种实施方式进行说明。这些实施方式只是示例性的,不是对本申请的限制。Various implementations of the embodiments of the present application will be described below with reference to the accompanying drawings. These implementation manners are only exemplary, and not a limitation of the present application.
实施例的第一方面The first aspect of the embodiment
本申请实施例提供了一种滤波方法,该方法应用于编码器的一侧。图4是本申请实施例的滤波方法的一个示意图,如图4所示,本申请实施例的滤波方法包括:The embodiment of the present application provides a filtering method, which is applied to one side of an encoder. FIG. 4 is a schematic diagram of the filtering method of the embodiment of the present application. As shown in FIG. 4, the filtering method of the embodiment of the present application includes:
401:针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;401: Determine a quantization scale for each set of filter coefficients in multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
402:使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每 组滤波系数的量化结果;402: Use the quantization scale corresponding to each group of filter coefficients to perform a quantization operation on each group of filter coefficients to obtain a quantization result of each group of filter coefficients;
403:使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。403: Use the quantization result of each set of filter coefficients to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
本申请实施例通过修改当前CC-ALF的滤波过程,使用自适应尺度(adaptive scale)来量化CC-ALF的滤波系数,可以充分利用需要量化到的比特范围,降低精度损失,提高编码效率。The embodiment of the present application modifies the current CC-ALF filtering process and uses an adaptive scale to quantize the CC-ALF filter coefficients, which can make full use of the bit range that needs to be quantized, reduce precision loss, and improve coding efficiency.
在本申请实施例中,跨分量自适应环路滤波器(CC-ALF)具有多组滤波系数,例如四组,每组滤波系数具有多个滤波系数,例如8个,但本申请不限于此,该CC-ALF也可以具有其他数量组的滤波系数,每组滤波系数也可以包含其他数量的滤波系数。In the embodiment of the present application, the cross-component adaptive loop filter (CC-ALF) has multiple sets of filter coefficients, such as four sets, and each set of filter coefficients has multiple filter coefficients, such as 8, but the application is not limited to this The CC-ALF may also have other number of groups of filter coefficients, and each group of filter coefficients may also include other numbers of filter coefficients.
在401中,确定量化尺度,可以是,获取CC-ALF的每组滤波系数的多个原始滤波系数,根据该多个原始滤波系数中的最大值计算每组滤波系数对应的量化尺度。这里,多个原始滤波系数中的最大值是指该多个原始滤波系数中绝对值最大的原始滤波系数。In 401, determining the quantization scale may be to obtain multiple original filter coefficients of each group of filter coefficients of CC-ALF, and calculate the quantization scale corresponding to each group of filter coefficients according to the maximum value of the multiple original filter coefficients. Here, the maximum value among the multiple original filter coefficients refers to the original filter coefficient with the largest absolute value among the multiple original filter coefficients.
在一些实施例中,根据表示量化尺度的比特数,还可以将该量化尺度限制到能够通过该比特数表示的范围内。例如,根据表示量化尺度的比特数确定一个范围(称为第一范围),将该量化尺度限制到该第一范围内,得到限制后的量化尺度。In some embodiments, according to the number of bits representing the quantization scale, the quantization scale may also be limited to a range that can be represented by the number of bits. For example, a range (referred to as the first range) is determined according to the number of bits representing the quantization scale, and the quantization scale is limited to the first range to obtain the restricted quantization scale.
在402中,进行量化操作,可以是,利用每组滤波系数对应的量化尺度对每组滤波系数的每个原始滤波系数进行量化操作,得到每组滤波系数的每个原始滤波系数的量化结果。In 402, the quantization operation may be performed by using the quantization scale corresponding to each group of filter coefficients to perform a quantization operation on each original filter coefficient of each group of filter coefficients to obtain a quantization result of each original filter coefficient of each group of filter coefficients.
在一些实施例中,根据表示量化结果的比特数,还可以将该量化结果限制到能够通过该比特数表示的范围内。例如,根据表示量化结果的比特数确定一个范围(称为第二范围),将上述量化结果限制到该第二范围内,得到限制后的量化结果。In some embodiments, according to the number of bits representing the quantization result, the quantization result may also be limited to a range that can be represented by the number of bits. For example, a range (referred to as a second range) is determined according to the number of bits representing the quantization result, and the quantization result is limited to the second range to obtain the limited quantization result.
在403中,进行滤波操作,可以是,根据每组滤波系数的量化结果以及每组滤波系数对应的量化尺度,对输入图像的亮度信息进行滤波操作,得到色度补偿信息,作为该跨分量自适应环路滤波器(CC-ALF)的输出。In 403, the filtering operation can be performed on the luminance information of the input image according to the quantization result of each group of filter coefficients and the quantization scale corresponding to each group of filter coefficients to obtain chrominance compensation information, which is used as the cross-component self The output of the adaptive loop filter (CC-ALF).
在一些实施例中,输入图像的亮度信息可以通过SAO亮度滤波器(SAO Luma)对输入图像进行滤波操作而获得,关于该SAO亮度滤波器的具体处理过程,可以参考相关技术,此处不再赘述。本申请实施例利用该亮度信息中的边缘信息获得色度补偿信息。In some embodiments, the brightness information of the input image can be obtained by filtering the input image through the SAO Luma filter (SAO Luma). For the specific processing process of the SAO Luma filter, reference may be made to the related technology. Go into details. The embodiment of the present application uses the edge information in the luminance information to obtain chrominance compensation information.
在本申请实施例中,上述量化尺度的值(Scale Value)还可以保存在(be signaled to)视频序列bin文件的自适应参数集(Adaption Parameter Set,APS)中,也即编入码流中,以便解码器端通过从接收到的码流中读取该Scale Value,利用该Scale Value对输入图像的像素进行滤波。In the embodiment of the present application, the value of the aforementioned quantization scale (Scale Value) can also be stored (be signaled to) in the adaptation parameter set (Adaption Parameter Set, APS) of the bin file of the video sequence, that is, encoded into the code stream , So that the decoder side reads the Scale Value from the received code stream, and uses the Scale Value to filter the pixels of the input image.
图5是本申请实施例的滤波方法的另一个示意图,图5示出了针对每组滤波系数的处理过程,以每组滤波系数包含8个系数,量化尺度通过2比特来表示,以及量化结果(量化后的滤波系数)通过6比特来表示为例,但本申请不限于此,如前所述,每组滤波系数也可以包含其他数量的系数,量化尺度也可以通过3比特或其他数量的比特来表示,量化结果也可以通过其他数量的比特来表示。如图5所示,该方法包括:Fig. 5 is another schematic diagram of the filtering method of an embodiment of the present application. Fig. 5 shows the processing procedure for each set of filter coefficients. Each set of filter coefficients contains 8 coefficients, the quantization scale is represented by 2 bits, and the quantization result (Quantized filter coefficients) are represented by 6 bits as an example, but the application is not limited to this. As mentioned above, each set of filter coefficients can also contain other numbers of coefficients, and the quantization scale can also be represented by 3 bits or other numbers. It is expressed in bits, and the quantization result can also be expressed in other numbers of bits. As shown in Figure 5, the method includes:
501:获取小数形式的原始系数(raw coefficients),以C i表示CC-ALF滤波器中的系数,且,i∈[1,8]; 501: Obtain raw coefficients in decimal form, and use C i to represent the coefficients in the CC-ALF filter, and i∈[1,8];
502:找到所述原始系数中的最大值,通过C max表示; 502: Find the maximum value of the original coefficients, which is represented by C max;
503:计算量化尺度Scale;503: Calculate the quantization scale Scale;
在一些实施例中,
Figure PCTCN2019129144-appb-000001
例如,Scale=floor(2.6)=2;
In some embodiments,
Figure PCTCN2019129144-appb-000001
For example, Scale=floor(2.6)=2;
504:将量化尺度Scale限制到范围[0,3]内,得到Scale’,由此,该量化尺度可以通过2比特来表示;504: Limit the quantization scale Scale to the range [0,3] to obtain Scale'. Therefore, the quantization scale can be represented by 2 bits;
505:使用量化尺度对原始滤波系数进行量化,得到量化结果C′ i505: Use the quantization scale to quantize the original filter coefficients to obtain a quantization result C′ i ;
在一些实施例中,C′ i=round(C i×128×2 Scale’); In some embodiments, C′ i =round(C i ×128×2 Scale′ );
506:将C′ i限制到范围[-32,31]内,得到C″ i,由此,该量化后的滤波系数可以通过6比特来表示; 506: Limit C′ i to the range [-32,31] to obtain C″ i , thus, the quantized filter coefficient can be represented by 6 bits;
507:对输入图像的像素进行滤波时,得到色度信息Pi′ chroma 507: Obtain chrominance information Pi' chroma when filtering the pixels of the input image.
在一些实施例中,Pi′ chroma=Pi chroma+round(∑C″ i×Pi luma)÷128÷2 Scale’,上述Pi chroma是通过色度滤波器(ALF Chroma)对输入图像进行滤波操作而得到的色度信息,上述round(∑C″ i×Pi luma)÷128÷2 Scale’是色度补偿信息。 In some embodiments, Pi' chroma = Pi chroma + round (∑C " i × Pi luma ) ÷ 128 ÷ 2 Scale' , and the above-mentioned Pi chroma is obtained by filtering the input image through a chroma filter (ALF Chroma) In the obtained chromaticity information, the above-mentioned round (ΣC" i ×Pi luma )÷128÷2 Scale' is chromaticity compensation information.
图6是本申请实施例的滤波方法的又一个示意图,图6示出了针对每组滤波系数的处理过程,仍然以每组滤波系数包含8个系数,量化尺度通过2比特来表示,以及量化结果(量化后的滤波系数)通过6比特来表示为例,但本申请不限于此,如前所述,每组滤波系数也可以包含其他数量的系数,量化尺度也可以通过3比特或其他数量的比特来表示,量化结果也可以通过其他数量的比特来表示。如图6所示,该方法 包括:Fig. 6 is another schematic diagram of the filtering method according to an embodiment of the present application. Fig. 6 shows the processing process for each set of filter coefficients, still assuming that each set of filter coefficients contains 8 coefficients, the quantization scale is represented by 2 bits, and the quantization The result (quantized filter coefficient) is represented by 6 bits as an example, but the application is not limited to this. As mentioned above, each set of filter coefficients can also contain other numbers of coefficients, and the quantization scale can also be represented by 3 bits or other numbers. The quantization result can also be expressed by other numbers of bits. As shown in Figure 6, the method includes:
601:获取小数形式的原始系数(raw coefficients),以C i表示CC-ALF滤波器中的系数,且,i∈[1,8]; 601: Obtain raw coefficients in decimal form, and use C i to represent the coefficients in the CC-ALF filter, and i∈[1,8];
602:找到所述原始系数中的最大值,通过C max表示; 602: Find the maximum value of the original coefficients, which is represented by C max;
603:计算量化尺度Scale;603: Calculate the quantization scale Scale;
在一些实施例中,
Figure PCTCN2019129144-appb-000002
In some embodiments,
Figure PCTCN2019129144-appb-000002
604:将量化尺度Scale限制到范围[0,3]内,得到Scale’,由此,该量化尺度可以通过2比特来表示;604: Limit the quantization scale Scale to the range [0,3] to obtain Scale'. Therefore, the quantization scale can be represented by 2 bits;
605:使用量化尺度对原始滤波系数进行量化,得到量化结果C′ i605: Use the quantization scale to quantize the original filter coefficients to obtain a quantization result C′ i ;
在一些实施例中,C′ i=round(C i×32×2 Scale’); In some embodiments, C′ i =round(C i ×32×2 Scale′ );
606:将C′ i限制到范围[-32,31]内,得到C″ i,由此,该量化后的滤波系数可以通过6比特来表示; 606: Limit C′ i to the range [-32,31] to obtain C″ i , thus, the quantized filter coefficient can be represented by 6 bits;
607:对输入图像的像素进行滤波时,得到色度信息Pi′ chroma 607: Obtain chrominance information Pi' chroma when filtering the pixels of the input image.
在一些实施例中,Pi′ chroma=Pi chroma+round(∑C″ i×Pi luma)÷32÷2 Scale’,上述Pi chroma是通过色度滤波器(ALF Chroma)对输入图像进行滤波操作而得到的色度信息,上述round(∑C″ i×Pi luma)÷32÷2 Scale’是色度补偿信息。 In some embodiments, Pi' chroma = Pi chroma + round (∑C " i × Pi luma ) ÷ 32 ÷ 2 Scale' , and the above-mentioned Pi chroma is obtained by filtering the input image through a chroma filter (ALF Chroma) In the obtained chromaticity information, the above-mentioned round (ΣC" i ×Pi luma )÷32÷2 Scale' is chromaticity compensation information.
在图5和图6的示例中,上述2比特的Scale值是基于每个滤波器(也即每组滤波系数)的最大滤波系数得到的,因此是自适应的。如前所述,该Scale值可以保存到视频序列bin文件的APS中,编入发送的码流。但本申请不限于此,上述Scale值也可以是其他比特深度(如前所述的3比特),或者保存到视频序列bin文件的其他位置。In the examples of FIG. 5 and FIG. 6, the aforementioned 2-bit Scale value is obtained based on the maximum filter coefficient of each filter (that is, each group of filter coefficients), so it is adaptive. As mentioned earlier, the Scale value can be saved in the APS of the bin file of the video sequence and compiled into the transmitted code stream. However, this application is not limited to this, and the aforementioned Scale value may also be other bit depths (3 bits as described above), or stored in other locations of the bin file of the video sequence.
值得注意的是,以上附图4-6仅对本申请实施例进行了示意性说明,但本申请不限于此。例如可以适当地调整各个操作之间的执行顺序,此外还可以增加其他的一些操作或者减少其中的某些操作。本领域的技术人员可以根据上述内容进行适当地变型,而不仅限于上述附图4-6的记载。It is worth noting that the above figures 4-6 only schematically illustrate the embodiments of the present application, but the present application is not limited thereto. For example, the order of execution among various operations can be appropriately adjusted, and some other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the foregoing content, and are not limited to the description of the foregoing FIGS. 4-6.
值得注意的是,以上仅对与本申请相关的各步骤或过程进行了说明,但本申请不限于此。该方法还可以包括其他步骤或者过程,关于这些步骤或者过程的具体内容,可以参考相关技术。It is worth noting that the above only describes the steps or processes related to the application, but the application is not limited thereto. The method may also include other steps or processes. For the specific content of these steps or processes, reference may be made to related technologies.
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由 此获得了更高的精度并提高了编码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving coding efficiency.
实施例的第二方面The second aspect of the embodiment
本申请实施例提供一种滤波方法,该方法应用于解码器的一侧,与实施例的第一方面的方法对应,相同的内容不再重复说明。图7是本申请实施例的滤波方法的一个示意图,如图7所示,本申请实施例的滤波方法包括:The embodiment of the present application provides a filtering method, which is applied to one side of the decoder, and corresponds to the method of the first aspect of the embodiment, and the same content will not be repeated. FIG. 7 is a schematic diagram of the filtering method of the embodiment of the present application. As shown in FIG. 7, the filtering method of the embodiment of the present application includes:
701:从接收到的码流中获取量化尺度Scale;701: Obtain the quantization scale Scale from the received code stream;
702:利用所述量化尺度Scale对输入图像的像素进行滤波,输出色度补偿信息,所述色度补偿信息用于对输入图像的色度信息进行补偿。702: Filter the pixels of the input image by using the quantization scale Scale, and output chrominance compensation information, where the chrominance compensation information is used to compensate the chrominance information of the input image.
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由此获得了更高的精度并提高了解码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving decoding efficiency.
实施例的第三方面The third aspect of the embodiment
本申请实施例提供了一种滤波装置,该滤波装置对应实施例的第一方面的方法,内容相同之处不再重复说明。The embodiment of the present application provides a filtering device, which corresponds to the method of the first aspect of the embodiment, and the description of the same content is not repeated.
图8是本申请实施例的滤波装置的示意图,如图8所示,本申请实施例的滤波装置800包括:确定单元801、量化单元802以及滤波单元803,确定单元801针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;量化单元802使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;滤波单元803使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。FIG. 8 is a schematic diagram of a filtering device of an embodiment of the present application. As shown in FIG. 8, the filtering device 800 of an embodiment of the present application includes: a determining unit 801, a quantizing unit 802, and a filtering unit 803. Each set of filter coefficients in the multiple sets of filter coefficients of the channel filter (CC-ALF) determines a quantization scale; the quantization unit 802 uses the quantization scale corresponding to each set of filter coefficients to perform a quantization operation on each set of filter coefficients to obtain each set of filter coefficients. The quantization result of the coefficient; the filtering unit 803 uses the quantization result of each set of filter coefficients to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
在一些实施例中,确定单元801获取所述跨分量自适应环路滤波器(CC-ALF)的每组滤波系数的多个原始滤波系数(C i,i∈[1,8]),根据所述多个原始滤波系数(C i)中的最大值(C max)计算每组滤波系数对应的量化尺度(Scale)。 In some embodiments, the determining unit 801 obtains multiple original filter coefficients (C i , i ∈ [1, 8]) of each set of filter coefficients of the cross-component adaptive loop filter (CC-ALF), according to The maximum value (C max ) of the plurality of original filter coefficients (C i ) is calculated for the quantization scale (Scale) corresponding to each group of filter coefficients.
在一些实施例中,确定单元801还根据表示量化尺度的比特数确定第一范围,将所述量化尺度(Scale)限制到所述第一范围内,得到限制后的量化尺度(Scale′)。In some embodiments, the determining unit 801 further determines the first range according to the number of bits representing the quantization scale, limits the quantization scale (Scale) to the first range, and obtains the restricted quantization scale (Scale').
在一些实施例中,所述多个原始滤波系数中的最大值C max为所述多个原始滤波系数C i中绝对值最大的原始滤波系数。 In some embodiments, the maximum value C max in the plurality of original filter coefficients is the original filter coefficient with the largest absolute value among the plurality of original filter coefficients C i.
在一些实施例中,量化单元802利用每组滤波系数对应的量化尺度(Scale)对每 组滤波系数的每个原始滤波系数(C i)进行量化操作,得到每组滤波系数的每个原始滤波系数(C i)的量化结果(C′ i)。 In some embodiments, the quantization unit 802 uses the quantization scale (Scale) corresponding to each group of filter coefficients to perform a quantization operation on each original filter coefficient (C i ) of each group of filter coefficients to obtain each original filter coefficient of each group of filter coefficients. results quantized coefficients (C i) of (C 'i).
在一些实施例中,量化单元802还根据表示量化结果的比特数确定第二范围,将所述量化结果(C′ i)限制到第二范围内,得到限制后的量化结果(C″ i)。 In some embodiments, the quantization unit 802 further determines the second range according to the number of bits representing the quantization result, limits the quantization result (C′ i ) to the second range, and obtains the restricted quantization result (C″ i ) .
在一些实施例中,滤波单元803根据每组滤波系数的量化结果(C″ i)以及每组滤波系数对应的量化尺度(Scale′),对输入图像的亮度信息进行滤波操作,得到色度补偿信息,作为所述跨分量自适应环路滤波器(CC-ALF)的输出。 In some embodiments, the filtering unit 803 performs a filtering operation on the brightness information of the input image according to the quantization result (C" i ) of each set of filter coefficients and the quantization scale (Scale') corresponding to each set of filter coefficients to obtain chroma compensation. Information as the output of the cross-component adaptive loop filter (CC-ALF).
在一些实施例中,针对每组滤波系数:In some embodiments, for each set of filter coefficients:
确定单元801根据以下公式计算所述量化尺度:
Figure PCTCN2019129144-appb-000003
The determining unit 801 calculates the quantization scale according to the following formula:
Figure PCTCN2019129144-appb-000003
量化单元802根据以下公式计算所述量化结果:C′ i=round(C i×128×2 Scale’); The quantization unit 802 calculates the quantization result according to the following formula: C′ i =round(C i ×128×2 Scale′ );
滤波单元803根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷128÷2 Scale’The filtering unit 803 calculates the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷128÷2 Scale' ;
其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is For the quantization result of the original filter coefficient, C" i is the quantization result after restriction, and Pi luma is the brightness information of the input image.
在一些实施例中,针对每组滤波系数:In some embodiments, for each set of filter coefficients:
确定单元801根据以下公式计算所述量化尺度:
Figure PCTCN2019129144-appb-000004
The determining unit 801 calculates the quantization scale according to the following formula:
Figure PCTCN2019129144-appb-000004
量化单元802根据以下公式计算所述量化结果(C′ i):C′ i=round(C i×32×2 Scale’); The quantization unit 802 calculates the quantization result (C′ i ) according to the following formula: C′ i =round(C i ×32×2 Scale′ );
滤波单元803根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷32÷2 Scale’The filtering unit 803 calculates the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷32÷2 Scale' ;
其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is For the quantization result of the original filter coefficient, C" i is the quantization result after restriction, and Pi luma is the brightness information of the input image.
在一些实施例中,如图8所示,装置800还包括:In some embodiments, as shown in FIG. 8, the apparatus 800 further includes:
处理单元804,其将所述量化尺度保存在自适应参数集(APS)中。The processing unit 804 saves the quantization scale in an adaptive parameter set (APS).
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由此获得了更高的精度并提高了解码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving decoding efficiency.
实施例的第四方面Fourth aspect of the embodiment
本申请实施例提供了一种滤波装置,该滤波装置对应实施例的第二方面的方法,内容相同之处不再重复说明。The embodiment of the present application provides a filtering device, which corresponds to the method of the second aspect of the embodiment, and the same contents will not be repeated.
图9是本申请实施例的滤波装置的示意图,如图9所示,本申请实施例的滤波装置900包括:读取单元901和滤波单元902,读取单元901从接收到的码流中获取量化尺度Scale;滤波单元902利用所述量化尺度Scale对输入图像的像素进行滤波,输出色度补偿信息,所述色度补偿信息用于对输入图像的色度信息进行补偿。FIG. 9 is a schematic diagram of a filtering device according to an embodiment of the present application. As shown in FIG. 9, the filtering device 900 according to an embodiment of the present application includes: a reading unit 901 and a filtering unit 902. The reading unit 901 obtains from the received code stream The quantization scale Scale; the filtering unit 902 uses the quantization scale Scale to filter the pixels of the input image, and output chrominance compensation information, which is used to compensate the chrominance information of the input image.
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由此获得了更高的精度并提高了解码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving decoding efficiency.
实施例的第五方面Fifth aspect of the embodiment
本申请实施例提供了一种图像编码器,图10是本申请实施例的图像编码器的示意图,如图10所示,本申请实施例的图像编码器1000包括:亮度滤波器(SAO Luma)1001、自适应环路滤波器1002以及色度滤波器(ALF Chroma)1003,亮度滤波器(SAO Luma)1001对输入图像进行滤波操作,输出所述输入图像的亮度信息;自适应环路滤波器1002对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;色度滤波器(ALF Chroma)1003对输入图像进行滤波操作,输出所述输入图像的色度信息。An embodiment of the present application provides an image encoder. FIG. 10 is a schematic diagram of an image encoder according to an embodiment of the present application. As shown in FIG. 10, the image encoder 1000 according to an embodiment of the present application includes: a luminance filter (SAO Luma) 1001, adaptive loop filter 1002, and chroma filter (ALF Chroma) 1003. Luminance filter (SAO Luma) 1001 performs filtering operations on the input image, and outputs the brightness information of the input image; adaptive loop filter 1002 performs a filtering operation on the brightness information of the input image, and outputs chrominance compensation information; a chroma filter (ALF Chroma) 1003 performs a filtering operation on the input image, and outputs the chroma information of the input image.
在本申请实施例中,上述色度补偿信息用于对所述输入图像的色度信息进行补偿,并且,该自适应性环路滤波器1002被配置为实现实施例的第一方面的方法,可以包含实施例的第三方面的装置,其内容被合并与此,此处不再赘述。In the embodiment of the present application, the aforementioned chrominance compensation information is used to compensate the chrominance information of the input image, and the adaptive loop filter 1002 is configured to implement the method of the first aspect of the embodiment, It may include the device of the third aspect of the embodiment, the content of which is incorporated here, and will not be repeated here.
在本申请实施例中,上述自适应环路滤波器1002可以包含用于输出蓝色的色度补偿信息的跨分量自适应环路滤波器(CC-ALF Cb),也可以包含用于输出红色的色度补偿信息的跨分量自适应环路滤波器(CC-ALF Cr),CC-ALF Cb和CC-ALF Cr可以分别实现实施例的第一方面的方法。此处省略说明。In the embodiment of the present application, the above-mentioned adaptive loop filter 1002 may include a cross-component adaptive loop filter (CC-ALF Cb) for outputting chrominance compensation information for blue, and may also include a cross-component adaptive loop filter (CC-ALF Cb) for outputting red The cross-component adaptive loop filter (CC-ALF Cr) of the chrominance compensation information, CC-ALF Cb and CC-ALF Cr can respectively implement the method of the first aspect of the embodiment. The description is omitted here.
在本申请实施例中,对亮度滤波器(SAO Luma)1001和色度滤波器(ALF Chroma)1003的处理不做限制,具体可以参考现有技术。In the embodiment of the present application, the processing of the luminance filter (SAO Luma) 1001 and the chrominance filter (ALF Chroma) 1003 is not limited, and the prior art can be referred to for details.
本申请实施例还提供了一种图像编码器,该图像编码器包括存储器和处理器,存储器存储有计算机程序,处理器被配置为执行上述计算机程序而实现实施例的第一方面的方法,其内容被合并与此,此处不再赘述。The embodiment of the present application also provides an image encoder, the image encoder includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the foregoing computer program to implement the method of the first aspect of the embodiment. The content is merged here, so I won’t repeat it here.
值得注意的是,以上仅对与本申请相关的各组成进行了说明,但本申请不限于此。 该编码器还可以包括其他组成,如图1所示的亮度自适应环路滤波器(ALF Luma)、蓝色的色度滤波器(SAO Cb)、红色的色度滤波器(SAO Cr)等,关于这些组成的具体内容,可以参考相关技术。It is worth noting that the above only describes the components related to the application, but the application is not limited to this. The encoder can also include other components, such as the luminance adaptive loop filter (ALF Luma) as shown in Figure 1, the blue chrominance filter (SAO Cb), the red chrominance filter (SAO Cr), etc. For the specific content of these components, you can refer to related technologies.
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由此获得了更高的精度并提高了解码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving decoding efficiency.
实施例的第六方面Sixth aspect of the embodiment
本申请实施例还提供了一种图像解码器,图11是本申请实施例的图像解码器的示意图,如图11所示,本申请实施例的图像解码器1100也包括:亮度滤波器(SAO Luma)1101、自适应环路滤波器1102以及色度滤波器(ALF Chroma)1103,亮度滤波器(SAO Luma)1101对输入图像进行滤波操作,输出所述输入图像的亮度信息;自适应环路滤波器1102对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;色度滤波器(ALF Chroma)1103对输入图像进行滤波操作,输出所述输入图像的色度信息。The embodiment of the present application also provides an image decoder. FIG. 11 is a schematic diagram of the image decoder of the embodiment of the present application. As shown in FIG. 11, the image decoder 1100 of the embodiment of the present application also includes: a luminance filter (SAO Luma) 1101, adaptive loop filter 1102, and chroma filter (ALF Chroma) 1103. Luma filter (SAO Luma) 1101 performs filtering operations on the input image, and outputs the brightness information of the input image; adaptive loop The filter 1102 performs a filtering operation on the brightness information of the input image and outputs chroma compensation information; the chroma filter (ALF Chroma) 1103 performs a filtering operation on the input image, and outputs the chroma information of the input image.
在本申请实施例中,与实施例的第五方面的图像编码器1000不同的是,自适应环路滤波器(CC-ALF Cb/Cr)1102用于从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。并且,该自适应性环路滤波器1102被配置为实现实施例的第二方面的方法,可以包含实施例的第四方面的装置,其内容被合并与此,此处不再赘述。In this embodiment of the application, unlike the image encoder 1000 in the fifth aspect of the embodiment, the adaptive loop filter (CC-ALF Cb/Cr) 1102 is used to obtain the quantization scale from the received code stream. , Using the quantization scale to perform a filtering operation on the luminance information of the input image, and output chrominance compensation information, where the chrominance compensation information is used to compensate the chrominance information of the input image. In addition, the adaptive loop filter 1102 is configured to implement the method of the second aspect of the embodiment, and may include the device of the fourth aspect of the embodiment, the content of which is incorporated herein, and will not be repeated here.
在本申请实施例中,上述自适应环路滤波器1102可以包含用于输出蓝色的色度补偿信息的跨分量自适应环路滤波器(CC-ALF Cb),也可以包含用于输出红色的色度补偿信息的跨分量自适应环路滤波器(CC-ALF Cr),CC-ALF Cb和CC-ALF Cr可以分别实现实施例的第二方面的方法。此处省略说明。In the embodiment of the present application, the above-mentioned adaptive loop filter 1102 may include a cross-component adaptive loop filter (CC-ALF Cb) for outputting chrominance compensation information for blue, and may also include a cross-component adaptive loop filter (CC-ALF Cb) for outputting red The cross-component adaptive loop filter (CC-ALF Cr) of the chrominance compensation information, CC-ALF Cb and CC-ALF Cr can respectively implement the method of the second aspect of the embodiment. The description is omitted here.
在本申请实施例中,对亮度滤波器(SAO Luma)1101和色度滤波器(ALF Chroma)1103的处理不做限制,具体可以参考现有技术。In the embodiment of the present application, the processing of the luminance filter (SAO Luma) 1101 and the chrominance filter (ALF Chroma) 1103 is not limited, and the prior art can be referred to for details.
本申请实施例还提供了一种图像解码器,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器被配置为执行上述计算机程序而实现实施例的第二方面的方法,其内容被合并与此,此处不再赘述。An embodiment of the present application further provides an image decoder, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the above computer program to implement the method of the second aspect of the embodiment, which The content is merged here, so I won’t repeat it here.
值得注意的是,以上仅对与本申请相关的各组成进行了说明,但本申请不限于此。该解码器还可以包括其他组成,具体可以参考相关技术。It is worth noting that the above only describes the components related to the application, but the application is not limited to this. The decoder may also include other components. For details, please refer to related technologies.
根据本申请实施例,在CC-ALF系数量化中使用了自适应量化尺度(Scale),由此获得了更高的精度并提高了解码效率。According to the embodiment of the present application, an adaptive quantization scale (Scale) is used in the quantization of CC-ALF coefficients, thereby obtaining higher accuracy and improving decoding efficiency.
实施例的第七方面Seventh aspect of the embodiment
本申请实施例的第七方面提供了一种编解码系统,包括图像编码器和图像解码器,该图像编码器被配置为:针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息;该图像解码器被配置为:从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。The seventh aspect of the embodiments of the present application provides an encoding and decoding system, including an image encoder and an image decoder, and the image encoder is configured to: address multiple sets of cross-component adaptive loop filters (CC-ALF) Each group of filter coefficients in the filter coefficients determines a quantization scale; uses the quantization scale corresponding to each group of filter coefficients to quantize each group of filter coefficients to obtain the quantization result of each group of filter coefficients; use the quantization result of each group of filter coefficients to The luminance information of the input image is filtered to obtain the chrominance compensation information; the image decoder is configured to: obtain a quantization scale from the received code stream, use the quantization scale to perform a filtering operation on the luminance information of the input image, and output Chrominance compensation information, where the chrominance compensation information is used to compensate the chrominance information of the input image.
关于图像编码器的具体内容,可以参考实施例的第五方面的说明,关于图像解码器的具体内容,可以参考实施例的第六方面的说明。For the specific content of the image encoder, refer to the description of the fifth aspect of the embodiment, and for the specific content of the image decoder, refer to the description of the sixth aspect of the embodiment.
实施例的第八方面Eighth aspect of the embodiment
本申请实施例提供一种图像处理设备,该图像处理设备包括如实施例的第五方面的图像编码器,或者包括实施例的第六方面的图像解码器,其内容被合并与此。An embodiment of the present application provides an image processing device that includes the image encoder according to the fifth aspect of the embodiments, or includes the image decoder according to the sixth aspect of the embodiments, the content of which is combined with this.
图12是本申请实施例的图像处理设备的示意图。如图12所示,图像处理设备1200可以包括:中央处理器(CPU)1201和存储器1202;存储器1202耦合到中央处理器1201。其中该存储器1202可存储各种数据;此外还存储信息处理的程序,并且在中央处理器1201的控制下执行该程序。Fig. 12 is a schematic diagram of an image processing device according to an embodiment of the present application. As shown in FIG. 12, the image processing device 1200 may include: a central processing unit (CPU) 1201 and a memory 1202; the memory 1202 is coupled to the central processing unit 1201. The memory 1202 can store various data; in addition, it also stores information processing programs, which are executed under the control of the central processing unit 1201.
在一些实施例中,实施例的第三方面或第四方面的滤波装置可以被集成到中央处理器1201中。其中,中央处理器1201可以被配置为实现如实施例的第一方面或第二方面所述的方法。In some embodiments, the filtering device of the third aspect or the fourth aspect of the embodiment may be integrated into the central processing unit 1201. Wherein, the central processing unit 1201 may be configured to implement the method described in the first aspect or the second aspect of the embodiment.
在一些实施例中,实施例的第三方面或第四方面的滤波装置可以与中央处理器1201分开配置,例如可以将实施例的第三方面或第四方面的滤波装置配置为与中央 处理器1201连接的芯片,通过中央处理器1201的控制来实现实施例的第三方面或第四方面的滤波装置的功能。In some embodiments, the filtering device of the third aspect or the fourth aspect of the embodiment may be configured separately from the central processing unit 1201. For example, the filtering device of the third aspect or the fourth aspect of the embodiment may be configured to be connected to the central processing unit 1201. The chip connected to 1201 realizes the function of the filter device of the third aspect or the fourth aspect of the embodiment through the control of the central processing unit 1201.
此外,如图12所示,图像处理设备还可以包括:输入输出(I/O)设备1203和显示器1204等;其中,上述部件的功能与现有技术类似,此处不再赘述。值得注意的是,图像处理设备也并不是必须要包括图12中所示的所有部件;此外,图像处理设备还可以包括图12中没有示出的部件,可以参考现有技术。In addition, as shown in FIG. 12, the image processing device may further include: an input/output (I/O) device 1203, a display 1204, etc.; wherein the functions of the above-mentioned components are similar to those in the prior art, and will not be repeated here. It is worth noting that the image processing device does not have to include all the components shown in FIG. 12; in addition, the image processing device may also include components not shown in FIG. 12, and reference may be made to the prior art.
本申请实施例提供一种计算机可读程序,其中当在图像处理设备中执行所述程序时,所述程序使得所述图像处理设备执行如实施例的第一方面或第二方面所述的方法。The embodiment of the present application provides a computer-readable program, wherein when the program is executed in an image processing device, the program causes the image processing device to execute the method described in the first aspect or the second aspect of the embodiment .
本申请实施例提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得图像处理设备执行如实施例的第一方面或第二方面所述的方法。The embodiment of the present application provides a storage medium storing a computer readable program, wherein the computer readable program causes an image processing device to execute the method described in the first aspect or the second aspect of the embodiment.
本申请以上的装置和方法可以由硬件实现,也可以由硬件结合软件实现。本申请涉及这样的计算机可读程序,当该程序被逻辑部件所执行时,能够使该逻辑部件实现上文所述的装置或构成部件,或使该逻辑部件实现上文所述的各种方法或操作。本申请还涉及用于存储以上程序的存储介质,如硬盘、磁盘、光盘、DVD、flash存储器等。The above devices and methods of this application can be implemented by hardware, or can be implemented by hardware combined with software. This application relates to such a computer-readable program. When the program is executed by a logic component, the logic component can realize the above-mentioned device or constituent component, or the logic component can realize the above-mentioned various methods. Or operation. This application also relates to storage media used to store the above programs, such as hard disks, magnetic disks, optical disks, DVDs, flash memory, etc.
结合本申请实施例描述的方法/装置可直接体现为硬件、由处理器执行的软件模块或二者组合。例如,图中所示的功能框图中的一个或多个和/或功能框图的一个或多个组合,既可以对应于计算机程序流程的各个软件模块,亦可以对应于各个硬件模块。这些软件模块,可以分别对应于图所示的各个操作。这些硬件模块例如可利用现场可编程门阵列(FPGA)将这些软件模块固化而实现。The method/device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams shown in the figure may correspond to each software module of the computer program flow or each hardware module. These software modules can respectively correspond to the operations shown in the figure. These hardware modules can be implemented by solidifying these software modules by using a field programmable gate array (FPGA), for example.
软件模块可以位于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动磁盘、CD-ROM或者本领域已知的任何其它形式的存储介质。可以将一种存储介质耦接至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息;或者该存储介质可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。该软件模块可以存储在移动终端的存储器中,也可以存储在可插入移动终端的存储卡中。例如,若设备(如移动终端)采用的是较大容量的MEGA-SIM卡或者大容量的闪存装置,则该软件模块可存储在该MEGA-SIM卡或者大容量的闪存装置中。The software module can be located in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. A storage medium may be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be a component of the processor. The processor and the storage medium may be located in the ASIC. The software module can be stored in the memory of the mobile terminal, or can be stored in a memory card that can be inserted into the mobile terminal. For example, if the device (such as a mobile terminal) uses a larger-capacity MEGA-SIM card or a large-capacity flash memory device, the software module can be stored in the MEGA-SIM card or a large-capacity flash memory device.
针对附图中描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,可以实现为用于执行本申请所描述功能的通用处理器、数字信号处理器(DSP)、专 用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,还可以实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、与DSP通信结合的一个或多个微处理器或者任何其它这种配置。One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can be implemented as general-purpose processors, digital signal processors (DSPs) for performing the functions described in this application. ), application specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof. One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, or multiple micro-processing Processor, one or more microprocessors in communication with the DSP, or any other such configuration.
以上结合具体的实施方式对本申请进行了描述,但本领域技术人员应该清楚,这些描述都是示例性的,并不是对本申请保护范围的限制。本领域技术人员可以根据本申请的精神和原理对本申请做出各种变型和修改,这些变型和修改也在本申请的范围内。The application is described above in conjunction with specific implementations, but it should be clear to those skilled in the art that these descriptions are all exemplary and do not limit the scope of protection of the application. Those skilled in the art can make various variations and modifications to the application according to the spirit and principle of the application, and these variations and modifications are also within the scope of the application.
关于包括以上实施例的实施方式,还公开下述的附记:Regarding the implementation including the above examples, the following supplementary notes are also disclosed:
1、一种滤波方法,其中,所述方法包括:1. A filtering method, wherein the method includes:
针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;Determine a quantization scale for each set of filter coefficients in the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;Perform a quantization operation on each set of filter coefficients using the quantization scale corresponding to each set of filter coefficients to obtain the quantization result of each set of filter coefficients;
使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。The quantization result of each set of filter coefficients is used to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
2、根据附记1所述的方法,其中,确定量化尺度,包括:2. The method according to appendix 1, wherein determining the quantization scale includes:
获取所述跨分量自适应环路滤波器(CC-ALF)的每组滤波系数的多个原始滤波系数(C i,i∈[1,8]); Acquiring multiple original filter coefficients (C i , i∈[1,8]) of each set of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
根据所述多个原始滤波系数(C i)中的最大值(C max)计算每组滤波系数对应的量化尺度(Scale)。 Calculate the quantization scale (Scale) corresponding to each group of filter coefficients according to the maximum value (C max ) of the plurality of original filter coefficients (C i ).
3、根据附记2所述的方法,其中,确定量化尺度,还包括:3. The method according to appendix 2, wherein determining the quantization scale further includes:
根据表示量化尺度的比特数确定第一范围;Determine the first range according to the number of bits representing the quantization scale;
将所述量化尺度(Scale)限制到所述第一范围内,得到限制后的量化尺度(Scale′)。The quantization scale (Scale) is restricted to the first range to obtain a restricted quantization scale (Scale').
4、根据附记2所述的方法,其中,所述多个原始滤波系数中的最大值C max为所述多个原始滤波系数C i中绝对值最大的原始滤波系数。 4. The method according to appendix 2, wherein the maximum value C max of the plurality of original filter coefficients is the original filter coefficient with the largest absolute value among the plurality of original filter coefficients C i.
5、根据附记1所述的方法,其中,进行量化操作,包括:5. The method according to appendix 1, wherein the quantization operation includes:
利用每组滤波系数对应的量化尺度(Scale)对每组滤波系数的每个原始滤波系数 (C i)进行量化操作,得到每组滤波系数的每个原始滤波系数(C i)的量化结果(C′ i)。 Use the quantization scale (Scale) corresponding to each set of filter coefficients to quantize each original filter coefficient (C i ) of each set of filter coefficients to obtain the quantization result of each original filter coefficient (C i) of each set of filter coefficients ( C′ i ).
6、根据附记5所述的方法,其中,进行量化操作,还包括:6. The method according to appendix 5, wherein performing the quantization operation further includes:
根据表示量化结果的比特数确定第二范围,将所述量化结果(C′ i)限制到第二范围内,得到限制后的量化结果(C″ i)。 The second range is determined according to the number of bits representing the quantization result, and the quantization result (C' i ) is limited to the second range to obtain the limited quantization result (C" i ).
7、根据附记1所述的方法,其中,进行滤波操作,包括:7. The method according to Supplement 1, wherein the filtering operation includes:
根据每组滤波系数的量化结果(C″ i)以及每组滤波系数对应的量化尺度(Scale′),对输入图像的亮度信息进行滤波操作,得到色度补偿信息,作为所述跨分量自适应环路滤波器(CC-ALF)的输出。 According to the quantization result (C" i ) of each set of filter coefficients and the quantization scale (Scale') corresponding to each set of filter coefficients, the luminance information of the input image is filtered to obtain chrominance compensation information, which is used as the cross-component adaptation The output of the loop filter (CC-ALF).
8、根据附记1所述的方法,其中,针对每组滤波系数:8. The method according to Supplement 1, wherein, for each set of filter coefficients:
根据以下公式计算所述量化尺度:
Figure PCTCN2019129144-appb-000005
The quantization scale is calculated according to the following formula:
Figure PCTCN2019129144-appb-000005
根据以下公式计算所述量化结果:C′ i=round(C i×128×2 Scale’); Calculate the quantization result according to the following formula: C′ i =round(C i ×128×2 Scale′ );
根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷128÷2 Scale’Calculate the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷128÷2 Scale' ;
其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is As for the quantization result of the original filter coefficient, C" i is the limited quantization result, and Pi luma is the brightness information of the input image.
9、根据附记1所述的方法,其中,针对每组滤波系数:9. The method according to appendix 1, wherein, for each set of filter coefficients:
根据以下公式计算所述量化尺度:
Figure PCTCN2019129144-appb-000006
The quantization scale is calculated according to the following formula:
Figure PCTCN2019129144-appb-000006
根据以下公式计算所述量化结果(C′ i):C′ i=round(C i×32×2 Scale’); Calculate the quantization result (C′ i ) according to the following formula: C′ i =round(C i ×32×2 Scale′ );
根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷32÷2 Scale’Calculate the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷32÷2 Scale' ;
其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is For the quantization result of the original filter coefficient, C" i is the quantization result after restriction, and Pi luma is the brightness information of the input image.
10、根据附记1所述的方法,其中,所述方法还包括:10. The method according to Supplement 1, wherein the method further includes:
将所述量化尺度保存在自适应参数集(APS)中。The quantization scale is stored in the adaptive parameter set (APS).
11、一种图像编码器,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器被配置为执行上述计算机程序而实现以下方法:11. An image encoder comprising a memory and a processor, the memory storing a computer program, and the processor is configured to execute the above computer program to implement the following method:
针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;Determine a quantization scale for each set of filter coefficients in the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波 系数的量化结果;Use the quantization scale corresponding to each group of filter coefficients to quantize each group of filter coefficients to obtain the quantization result of each group of filter coefficients;
使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。The quantization result of each set of filter coefficients is used to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
12、一种图像解码器,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器被配置为执行上述计算机程序而实现以下方法:12. An image decoder, comprising a memory and a processor, the memory storing a computer program, and the processor is configured to execute the above computer program to implement the following method:
从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。Obtain the quantization scale from the received code stream, use the quantization scale to filter the luminance information of the input image, and output chrominance compensation information. The chrominance compensation information is used to perform the chrominance information of the input image. make up.
13、一种编解码系统,包括图像编码器和图像解码器,13. An encoding and decoding system, including an image encoder and an image decoder,
所述图像编码器被配置为:针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息;The image encoder is configured to: determine a quantization scale for each group of filter coefficients in a plurality of sets of filter coefficients of a cross-component adaptive loop filter (CC-ALF); use a pair of quantization scales corresponding to each group of filter coefficients Perform a quantization operation on each set of filter coefficients to obtain a quantization result of each set of filter coefficients; use the quantization result of each set of filter coefficients to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information;
所述图像解码器被配置为:从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。The image decoder is configured to: obtain a quantization scale from the received code stream, use the quantization scale to perform a filtering operation on the luminance information of the input image, and output chrominance compensation information. The chrominance compensation information is used to The chrominance information of the input image is compensated.

Claims (12)

  1. 一种滤波装置,其特征在于,所述装置包括:A filtering device, characterized in that the device comprises:
    确定单元,其针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;A determining unit, which determines a quantization scale for each set of filter coefficients in the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF);
    量化单元,其使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;A quantization unit, which uses the quantization scale corresponding to each group of filter coefficients to perform a quantization operation on each group of filter coefficients to obtain a quantization result of each group of filter coefficients;
    滤波单元,其使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息。The filtering unit uses the quantization result of each set of filter coefficients to perform a filtering operation on the luminance information of the input image to obtain chrominance compensation information.
  2. 根据权利要求1所述的装置,其中,所述确定单元获取所述跨分量自适应环路滤波器(CC-ALF)的每组滤波系数的多个原始滤波系数(C i,i∈[1,8]),根据所述多个原始滤波系数(C i)中的最大值(C max)计算每组滤波系数对应的量化尺度(Scale)。 The apparatus according to claim 1, wherein the determining unit obtains a plurality of original filter coefficients (C i , i∈[1) of each set of filter coefficients of the cross-component adaptive loop filter (CC-ALF) , 8]), calculate the quantization scale (Scale) corresponding to each group of filter coefficients according to the maximum value (C max ) of the plurality of original filter coefficients (C i ).
  3. 根据权利要求2所述的装置,其中,所述确定单元还根据表示量化尺度的比特数确定第一范围,将所述量化尺度(Scale)限制到所述第一范围内,得到限制后的量化尺度(Scale′)。3. The device according to claim 2, wherein the determining unit further determines the first range according to the number of bits representing the quantization scale, and limits the quantization scale (Scale) to the first range to obtain the restricted quantization Scale (Scale').
  4. 根据权利要求2所述的装置,其中,所述多个原始滤波系数中的最大值C max为所述多个原始滤波系数C i中绝对值最大的原始滤波系数。 3. The apparatus according to claim 2, wherein the maximum value C max of the plurality of original filter coefficients is the original filter coefficient with the largest absolute value among the plurality of original filter coefficients C i.
  5. 根据权利要求1所述的装置,其中,所述量化单元利用每组滤波系数对应的量化尺度(Scale)对每组滤波系数的每个原始滤波系数(C i)进行量化操作,得到每组滤波系数的每个原始滤波系数(C i)的量化结果(C′ i)。 The device according to claim 1, wherein the quantization unit uses the quantization scale (Scale) corresponding to each set of filter coefficients to perform a quantization operation on each original filter coefficient (C i) of each set of filter coefficients to obtain each set of filter coefficients. The quantization result (C′ i ) of each original filter coefficient (C i) of the coefficient.
  6. 根据权利要求5所述的装置,其中,所述量化单元还根据表示量化结果的比特数确定第二范围,将所述量化结果(C′ i)限制到第二范围内,得到限制后的量化结果(C″ i)。 5. The apparatus according to claim 5, wherein the quantization unit further determines the second range according to the number of bits representing the quantization result, and limits the quantization result (C′ i ) to the second range to obtain the restricted quantization Result (C″ i ).
  7. 根据权利要求1所述的装置,其中,所述滤波单元根据每组滤波系数的量化结果(C″ i)以及每组滤波系数对应的量化尺度(Scale′),对输入图像的亮度信息进行滤波操作,得到色度补偿信息,作为所述跨分量自适应环路滤波器(CC-ALF)的输出。 The device according to claim 1, wherein the filtering unit filters the brightness information of the input image according to the quantization result (C" i ) of each set of filter coefficients and the quantization scale (Scale') corresponding to each set of filter coefficients Operation, chrominance compensation information is obtained as the output of the cross-component adaptive loop filter (CC-ALF).
  8. 根据权利要求1所述的装置,其中,针对每组滤波系数:The device according to claim 1, wherein for each set of filter coefficients:
    所述确定单元根据以下公式计算所述量化尺度:
    Figure PCTCN2019129144-appb-100001
    The determining unit calculates the quantization scale according to the following formula:
    Figure PCTCN2019129144-appb-100001
    所述量化单元根据以下公式计算所述量化结果:C′ i=round(C i×128×2 Scale’); The quantization unit calculates the quantization result according to the following formula: C′ i =round(C i ×128×2 Scale′ );
    所述滤波单元根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷128÷2 Scale’The filtering unit calculates the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷128÷2 Scale' ;
    其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is For the quantization result of the original filter coefficient, C" i is the quantization result after restriction, and Pi luma is the brightness information of the input image.
  9. 根据权利要求1所述的装置,其中,针对每组滤波系数:The device according to claim 1, wherein for each set of filter coefficients:
    所述确定单元根据以下公式计算所述量化尺度:
    Figure PCTCN2019129144-appb-100002
    The determining unit calculates the quantization scale according to the following formula:
    Figure PCTCN2019129144-appb-100002
    所述量化单元根据以下公式计算所述量化结果(C′ i):C′ i=round(C i×32×2 Scale’); The quantization unit calculates the quantization result (C′ i ) according to the following formula: C′ i =round(C i ×32×2 Scale′ );
    所述滤波单元根据以下公式计算所述色度补偿信息:round(∑C″ i×Pi luma)÷32÷2 Scale’The filtering unit calculates the chromaticity compensation information according to the following formula: round(∑C″ i ×Pi luma )÷32÷2 Scale' ;
    其中,scale为量化尺度,Scale′是限制后的量化尺度,C max为一组滤波系数中的多个原始滤波系数(C i)中的最大值,C i为原始滤波系数,C′ i为所述原始滤波系数的量化结果,C″ i是限制后的量化结果,Pi luma为输入图像的亮度信息。 Among them, scale is the quantization scale, Scale′ is the limited quantization scale, C max is the maximum value among multiple original filter coefficients (C i ) in a set of filter coefficients, C i is the original filter coefficient, and C'i is For the quantization result of the original filter coefficient, C" i is the quantization result after restriction, and Pi luma is the brightness information of the input image.
  10. 根据权利要求1所述的装置,其中,所述装置还包括:The device according to claim 1, wherein the device further comprises:
    处理单元,其将所述量化尺度保存在自适应参数集(APS)中。The processing unit saves the quantization scale in an adaptive parameter set (APS).
  11. 一种图像编码器,包括:An image encoder, including:
    亮度滤波器(SAO Luma),其对输入图像进行滤波操作,输出所述输入图像的亮度信息;Luma filter (SAO Luma), which performs a filtering operation on an input image and outputs the brightness information of the input image;
    自适应环路滤波器(CC-ALF Cb/Cr),其对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;以及An adaptive loop filter (CC-ALF Cb/Cr), which performs a filtering operation on the luminance information of the input image, and outputs chrominance compensation information; and
    色度滤波器(ALF Chroma),其对输入图像进行滤波操作,输出所述输入图像的色度信息;Chroma filter (ALF Chroma), which performs a filtering operation on the input image, and outputs the chroma information of the input image;
    其中,所述自适应环路滤波器(CC-ALF Cb/Cr)被配置为:针对跨分量自适应环路滤波器(CC-ALF)的多组滤波系数中的每一组滤波系数确定一个量化尺度;使用每组滤波系数对应的量化尺度对每组滤波系数进行量化操作,得到每组滤波系数的量化结果;使用每组滤波系数的量化结果对输入图像的亮度信息进行滤波操作,得到色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。Wherein, the adaptive loop filter (CC-ALF Cb/Cr) is configured to determine one filter coefficient for each of the multiple sets of filter coefficients of the cross-component adaptive loop filter (CC-ALF) Quantization scale; use the quantization scale corresponding to each set of filter coefficients to quantize each set of filter coefficients to obtain the quantization result of each set of filter coefficients; use the quantization result of each set of filter coefficients to filter the brightness information of the input image to obtain the color The chrominance compensation information is used to compensate the chrominance information of the input image.
  12. 一种图像解码器,包括:An image decoder, including:
    亮度滤波器(SAO Luma),其对输入图像进行滤波操作,输出所述输入图像的亮度信息;Luma filter (SAO Luma), which performs a filtering operation on an input image and outputs the brightness information of the input image;
    自适应环路滤波器(CC-ALF Cb/Cr),其对所述输入图像的亮度信息进行滤波操作,输出色度补偿信息;以及An adaptive loop filter (CC-ALF Cb/Cr), which performs a filtering operation on the luminance information of the input image, and outputs chrominance compensation information; and
    色度滤波器(ALF Chroma),其对输入图像进行滤波操作,输出所述输入图像的色度信息;Chroma filter (ALF Chroma), which performs a filtering operation on the input image, and outputs the chroma information of the input image;
    其中,所述自适应环路滤波器(CC-ALF Cb/Cr)被配置为:从接收到的码流中获取量化尺度,利用所述量化尺度对输入图像的亮度信息进行滤波操作,输出色度补偿信息,所述色度补偿信息用于对所述输入图像的色度信息进行补偿。Wherein, the adaptive loop filter (CC-ALF Cb/Cr) is configured to obtain a quantization scale from the received code stream, use the quantization scale to filter the brightness information of the input image, and output color The chrominance compensation information is used to compensate the chrominance information of the input image.
PCT/CN2019/129144 2019-12-27 2019-12-27 Filtering method and device WO2021128265A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/129144 WO2021128265A1 (en) 2019-12-27 2019-12-27 Filtering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/129144 WO2021128265A1 (en) 2019-12-27 2019-12-27 Filtering method and device

Publications (1)

Publication Number Publication Date
WO2021128265A1 true WO2021128265A1 (en) 2021-07-01

Family

ID=76573520

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129144 WO2021128265A1 (en) 2019-12-27 2019-12-27 Filtering method and device

Country Status (1)

Country Link
WO (1) WO2021128265A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710936A (en) * 2011-01-04 2012-10-03 香港中文大学 High performance loop filters in video compression
US20140286392A1 (en) * 2011-11-09 2014-09-25 Sk Telecom Co., Ltd. Method and apparatus for encoding/decoding image by using adaptive loop filter on frequency domain using conversion
CN105306957A (en) * 2015-10-23 2016-02-03 北京中星微电子有限公司 Adaptive loop filtering method and device
CN107431814A (en) * 2015-01-08 2017-12-01 微软技术许可有限责任公司 The change of ρ domains speed control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710936A (en) * 2011-01-04 2012-10-03 香港中文大学 High performance loop filters in video compression
US20140286392A1 (en) * 2011-11-09 2014-09-25 Sk Telecom Co., Ltd. Method and apparatus for encoding/decoding image by using adaptive loop filter on frequency domain using conversion
CN107431814A (en) * 2015-01-08 2017-12-01 微软技术许可有限责任公司 The change of ρ domains speed control
CN105306957A (en) * 2015-10-23 2016-02-03 北京中星微电子有限公司 Adaptive loop filtering method and device

Similar Documents

Publication Publication Date Title
TW202101979A (en) Adaptive loop filter with adaptive parameter set
KR20210135513A (en) Non-linear adaptive loop filtering in video processing
JP2018078611A (en) Sample adaptive offset control
US20220312006A1 (en) Cross-component adaptive loop filter for chroma
WO2020259631A1 (en) Signaling coding of transform-skipped blocks
EP4006825A1 (en) Image processing method and apparatus, computing device, and storage medium
JP2023089032A (en) Using secondary transform in coding video
WO2024016520A1 (en) Video compression method, system and device, and computer non-volatile readable storage medium
WO2020094154A1 (en) Improvements for region based adaptive loop filter
US20210160541A1 (en) Signaling Multiple Transmission Selection
US10757424B2 (en) FLC-based image compression method and device
JP2018530278A (en) Method and device for encoding and decoding a sequence of pictures, and corresponding computer program product and computer readable medium
CN113994666A (en) Implicit selection of transform candidates
WO2021128265A1 (en) Filtering method and device
KR102608822B1 (en) Image processing method and device using dynamic range of color components
CN109996078B (en) Image compression method and device and electronic equipment
US11917144B2 (en) Efficient in-loop filtering for video coding
EP3829167A1 (en) Decoding prediction method and apparatus, and computer storage medium
WO2021203381A1 (en) Video encoding and decoding method and apparatus, and computer-readable storage medium
WO2021042300A1 (en) Encoding method, decoding method, and encoding apparatus and decoding apparatus
WO2021128277A1 (en) Cross component adaptive loop filtering method and apparatus, and video coding and decoding device
WO2018068263A1 (en) Image coding method and device, and image processing apparatus
US11245896B1 (en) Deblocking filter level decision method
CN113382257B (en) Encoding method, encoding device, electronic device and computer-readable storage medium
WO2024011370A1 (en) Video image processing method and apparatus, and coder/decoder, code stream and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19957201

Country of ref document: EP

Kind code of ref document: A1