[go: up one dir, main page]

CN114666584A - A coding method, device, equipment and medium based on high frequency zero setting - Google Patents

A coding method, device, equipment and medium based on high frequency zero setting Download PDF

Info

Publication number
CN114666584A
CN114666584A CN202210340865.7A CN202210340865A CN114666584A CN 114666584 A CN114666584 A CN 114666584A CN 202210340865 A CN202210340865 A CN 202210340865A CN 114666584 A CN114666584 A CN 114666584A
Authority
CN
China
Prior art keywords
coefficient
frequency
threshold
resolution
texture complexity
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210340865.7A
Other languages
Chinese (zh)
Other versions
CN114666584B (en
Inventor
王军
李聿维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
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 Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN202210340865.7A priority Critical patent/CN114666584B/en
Publication of CN114666584A publication Critical patent/CN114666584A/en
Application granted granted Critical
Publication of CN114666584B publication Critical patent/CN114666584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution

Landscapes

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

Abstract

本发明公开了一种基于高频置零的编码方法、装置、设备及介质,本发明根据位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数,获取当前编码图像的分辨率,并根据分辨率以及分辨率阈值确定缩放系数,根据缩放系数以及纹理复杂度参数进行计算,得到当前编码块的权重系数,根据权重系数以及尺寸信息确定高频系数阈值,将位置表示大于高频系数阈值的频域系数的亮度通道进行置零处理,能够减少纹理复杂区域的亮度信息,从而有利于减少码率、提高编码效率而几乎不改变人眼视觉效果,本发明可广泛应用于编码技术领域。

Figure 202210340865

The invention discloses an encoding method, device, equipment and medium based on high-frequency zero-setting. The present invention performs filtering processing on the co-located block at the corresponding position of the original image according to the position information, obtains the texture complexity parameter, and obtains the resolution of the current encoded image. Determine the scaling factor according to the resolution and the resolution threshold, calculate according to the scaling factor and texture complexity parameters, obtain the weight coefficient of the current coding block, determine the high frequency coefficient threshold according to the weight coefficient and size information, and express the position greater than the high The brightness channel of the frequency domain coefficient of the frequency coefficient threshold is zeroed, which can reduce the brightness information of the complex texture area, thereby helping to reduce the code rate and improve the coding efficiency without changing the visual effect of the human eye. The present invention can be widely used in coding. technical field.

Figure 202210340865

Description

一种基于高频置零的编码方法、装置、设备及介质A coding method, device, equipment and medium based on high frequency zero setting

技术领域technical field

本发明涉及编码领域,尤其是一种基于高频置零的编码方法、装置、设备及介质。The present invention relates to the field of coding, in particular to a coding method, device, equipment and medium based on high-frequency zero-setting.

背景技术Background technique

现有的AVS3视频编码标准中的视频编码器通过变换模块将上级编码模块中得到的像素域残差信息变换到频率域从而得到频域系数,然后通过量化模块将频域系数积进行简化表示传递至下级编码模块进行后续编码。现今为了利用更少的比特数来展现相同的视频视觉效果,在AVS3视频编码标准中根据图片在像素域的纹理信息来更改频率系数的量化系数,会导致在纹理简单区域(平坦区域)的量化范围变小,导致量化后的值拥有更小的步长,需要用更多的比特数来编码该区域,或者在纹理复杂区域的量化范围变大,导致量化后的值有更大的步长,编码该区域只需使用少量比特数,但是导致视觉效果无明显变化,在视觉展现效果与编码效率的平衡之间仍然无法准确把控。The video encoder in the existing AVS3 video coding standard transforms the pixel domain residual information obtained in the upper-level coding module into the frequency domain through the transform module to obtain the frequency domain coefficients, and then the frequency domain coefficient products are simplified and expressed through the quantization module. To the lower encoding module for subsequent encoding. Nowadays, in order to use fewer bits to show the same video visual effect, in the AVS3 video coding standard, the quantization coefficient of the frequency coefficient is changed according to the texture information of the picture in the pixel domain, which will lead to quantization in the simple texture area (flat area). The range becomes smaller, resulting in a smaller step size for the quantized value, which requires more bits to encode the region, or the quantization range becomes larger in a complex texture area, resulting in a larger step size for the quantized value , only a small number of bits are used to encode this area, but the visual effect has no obvious change, and the balance between the visual presentation effect and the coding efficiency is still unable to be accurately controlled.

发明内容SUMMARY OF THE INVENTION

有鉴于此,为了解决上述技术问题,本发明的目的提供一种基于高频置零的编码方法、装置、设备及介质。In view of this, in order to solve the above-mentioned technical problems, the purpose of the present invention is to provide an encoding method, apparatus, device and medium based on high-frequency zero-setting.

本发明实施例采用的技术方案是:The technical solution adopted in the embodiment of the present invention is:

一种基于高频置零的编码方法,包括:A coding method based on high frequency zeroing, comprising:

获取当前编码块在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示;Obtain the position information and size information of the current coding block in the current coded image and the position representation of the frequency domain coefficients of the transform module;

根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数;Perform filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter;

获取所述当前编码图像的分辨率,并根据所述分辨率以及分辨率阈值确定缩放系数;acquiring the resolution of the currently encoded image, and determining a scaling factor according to the resolution and a resolution threshold;

根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数;Calculate according to the scaling coefficient and the texture complexity parameter to obtain the weight coefficient of the current coding block;

根据所述权重系数以及所述尺寸信息确定高频系数阈值,将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理。A high frequency coefficient threshold is determined according to the weight coefficient and the size information, and the luminance channel whose position represents a frequency domain coefficient larger than the high frequency coefficient threshold is zeroed.

进一步,所述根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数,包括:Further, performing filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter, including:

通过拉普拉斯算子对原始图像对应位置的同位块进行高通滤波处理,得到纹理复杂度参数;所述纹理复杂度参数为像素矩阵。High-pass filtering is performed on the co-located block at the corresponding position of the original image by the Laplacian operator to obtain a texture complexity parameter; the texture complexity parameter is a pixel matrix.

进一步,所述根据所述分辨率以及分辨率阈值确定缩放系数,包括:Further, determining the scaling factor according to the resolution and the resolution threshold includes:

计算所述分辨率与所述分辨率阈值的比值,得到缩放系数。The ratio of the resolution to the resolution threshold is calculated to obtain a scaling factor.

进一步,所述根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数,包括:Further, the calculation according to the scaling coefficient and the texture complexity parameter to obtain the weight coefficient of the current coding block includes:

根据所述纹理复杂度参数以及所述尺寸信息,计算归一化高通系数;所述归一化高通系数表征所述当前编码块的活动性程度;According to the texture complexity parameter and the size information, a normalized high-pass coefficient is calculated; the normalized high-pass coefficient represents the activity level of the current coding block;

根据所述归一化高通系数以及所述缩放系数,通过预设函数计算得到所述当前编码块的权重系数。According to the normalized high-pass coefficient and the scaling coefficient, the weight coefficient of the current coding block is obtained by calculating a preset function.

进一步,所述尺寸信息包括高度和宽度,根据所述权重系数以及所述尺寸信息确定高频系数阈值,包括:Further, the size information includes height and width, and the high-frequency coefficient threshold is determined according to the weight coefficient and the size information, including:

计算所述高度与所述权重系数的第一乘积,得到高频高度阈值;Calculate the first product of the height and the weight coefficient to obtain a high-frequency height threshold;

计算所述宽度与所述权重系数的第二乘积,得到高频宽度阈值;Calculate the second product of the width and the weight coefficient to obtain a high-frequency width threshold;

所述高频系数阈值包括所述高频高度阈值以及所述高频高度阈值。The high frequency coefficient threshold includes the high frequency height threshold and the high frequency height threshold.

进一步,所述位置表示包括高度表示以及宽度表示,所述将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理,包括:Further, the position representation includes a height representation and a width representation, and performing zero-setting processing on the luminance channel of the frequency domain coefficient whose position representation is greater than the high-frequency coefficient threshold includes:

当所述高度表示大于所述高频高度阈值或者所述宽度表示大于所述高频宽度阈值,将所述位置表示对应的频域系数的亮度通道进行置零处理。When the height representation is larger than the high-frequency height threshold or the width representation is larger than the high-frequency width threshold, zeroing is performed on the luminance channel of the frequency domain coefficient corresponding to the position representation.

进一步,所述方法还包括:Further, the method also includes:

根据所述权重系数对所述当前编码块的代价函数进行修改。The cost function of the current coding block is modified according to the weight coefficient.

本发明实施例还提供一种基于高频置零的编码装置,包括:An embodiment of the present invention also provides an encoding device based on high-frequency zero-setting, including:

获取模块,用于获取在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示;an acquisition module for acquiring the position information, size information and the position representation of the frequency domain coefficients of the transform module in the currently encoded image;

滤波模块,用于根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数;a filtering module, configured to perform filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter;

确定模块,用于获取所述当前编码图像的分辨率,并根据所述分辨率以及分辨率阈值确定缩放系数;a determining module, configured to acquire the resolution of the currently encoded image, and determine a scaling factor according to the resolution and a resolution threshold;

权重模块,用于根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数;a weighting module, configured to calculate according to the scaling factor and the texture complexity parameter to obtain the weighting factor of the current coding block;

置零模块,用于根据所述权重系数以及所述尺寸信息确定高频系数阈值,将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理。A zero-setting module, configured to determine a high-frequency coefficient threshold according to the weight coefficient and the size information, and perform zero-setting processing on the luminance channel whose position represents a frequency domain coefficient greater than the high-frequency coefficient threshold.

本发明实施例还提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现所述方法。An embodiment of the present invention further provides an electronic device, the electronic device includes a processor and a memory, and the memory stores at least one instruction, at least a piece of program, a code set or an instruction set, the at least one instruction, the at least one A program, the code set or the instruction set is loaded and executed by the processor to implement the method.

本发明实施例还提供一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现所述方法。An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one piece of program, code set or instruction set is stored in the storage medium, the at least one instruction, the at least one piece of program, the code A set or set of instructions is loaded and executed by a processor to implement the method.

本发明的有益效果是:通过获取当前编码块在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示,根据位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数,获取当前编码图像的分辨率,并根据分辨率以及分辨率阈值确定缩放系数,根据缩放系数以及纹理复杂度参数进行计算,得到当前编码块的权重系数,根据权重系数以及尺寸信息确定高频系数阈值,从而确定一个更加符合人眼视觉系统的高频系数阈值,由于人眼对纹理复杂区域的失真不敏感,而对于平坦区域的变化相对比较敏感,且同时亮度信息在视频码流中占比很高,因此将位置表示大于高频系数阈值的频域系数的亮度通道进行置零处理,能够减少纹理复杂区域的亮度信息,从而有利于减少码率、提高编码效率而几乎不改变人眼视觉效果。The beneficial effects of the present invention are: by obtaining the position information and size information of the current coding block in the current coded image and the position representation of the frequency domain coefficients of the transform module, and filtering the co-located blocks corresponding to the original image according to the position information, the texture is obtained. Complexity parameter, obtain the resolution of the current coded image, and determine the scaling factor according to the resolution and the resolution threshold, calculate according to the scaling factor and the texture complexity parameter, and obtain the weight coefficient of the current coding block, which is determined according to the weight coefficient and size information The high-frequency coefficient threshold is used to determine a high-frequency coefficient threshold that is more in line with the human visual system. Since the human eye is not sensitive to the distortion of the complex texture area, it is relatively sensitive to the change of the flat area, and at the same time, the brightness information is in the video stream. Therefore, zeroing the luminance channel of the frequency domain coefficient whose position represents the frequency domain coefficient greater than the high frequency coefficient threshold can reduce the luminance information of the complex texture area, which is beneficial to reduce the bit rate and improve the coding efficiency without changing almost Human visual effects.

附图说明Description of drawings

图1为本发明基于高频置零的编码方法的步骤流程示意图;Fig. 1 is the step flow diagram of the coding method based on high frequency zeroing of the present invention;

图2为本发明具体实施例拉普拉斯算子的示意图。FIG. 2 is a schematic diagram of a Laplacian operator according to a specific embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

如图1所示,本发明实施例提供一种基于高频置零的编码方法,包括但不限于应用于AVS3视频编码标准,包括步骤S100-S600:As shown in FIG. 1 , an embodiment of the present invention provides an encoding method based on high-frequency zero-setting, including but not limited to being applied to the AVS3 video encoding standard, including steps S100-S600:

S100、获取当前编码块的位置信息、尺寸信息以及变换模块的频域系数的位置表示。S100. Acquire position information, size information of the current coding block, and position representations of frequency domain coefficients of the transform module.

本发明实施例中,通过变换模块得到当前编码块在当前编码图像的位置信息。其中,尺寸信息包括当前编码块的高度H和宽度W;变换模块的频域系数具有多个,每一频域系数具有对应的位置表示(x,y),其中x为宽度表示,y为高度表示。In the embodiment of the present invention, the position information of the current coding block in the current coded image is obtained through the transformation module. The size information includes the height H and width W of the current coding block; the transform module has multiple frequency domain coefficients, and each frequency domain coefficient has a corresponding position representation (x, y), where x is the width representation and y is the height express.

S200、根据位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数。S200. Perform filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter.

可选地,将当前编码图像的原始信息与当前编码块的位置信息传递给高通滤波器,根据位置信息确定原始图像中对应位置的同位块,如图2所示,高通滤波器将该同位块通过9抽头的拉普拉斯算子进行高通滤波,将高通滤波后的结果图像的像素值加和从而得到纹理复杂度参数。需要说明的是,纹理复杂度参数为高通滤波处理之后的同位块的像素矩阵。Optionally, the original information of the current coded image and the position information of the current coded block are passed to the high-pass filter, and the co-located block of the corresponding position in the original image is determined according to the position information, as shown in FIG. High-pass filtering is performed by a 9-tap Laplacian operator, and the pixel values of the resulting image after high-pass filtering are added to obtain the texture complexity parameter. It should be noted that the texture complexity parameter is the pixel matrix of the co-located block after the high-pass filtering process.

S300、获取当前编码图像的分辨率,并根据分辨率以及分辨率阈值确定缩放系数。S300. Acquire the resolution of the currently encoded image, and determine the scaling factor according to the resolution and the resolution threshold.

可选地,分辨率阈值可以根据实际情况进行调整,本发明实施例中以分辨率阈值为4k的分辨率为例。具体地,在获取当前编码图像的分辨率之后,计算当前编码图像的分辨率与4k的分辨率的比值,从而得到缩放系数。Optionally, the resolution threshold may be adjusted according to the actual situation. In this embodiment of the present invention, a resolution with a resolution threshold of 4k is used as an example. Specifically, after obtaining the resolution of the currently encoded image, the ratio of the resolution of the current encoded image to the resolution of 4k is calculated, so as to obtain the scaling factor.

S400、根据缩放系数以及纹理复杂度参数进行计算,得到当前编码块的权重系数。S400. Calculate according to the scaling coefficient and the texture complexity parameter to obtain the weight coefficient of the current coding block.

可选地,步骤S400包括步骤S410-S420:Optionally, step S400 includes steps S410-S420:

S410、根据纹理复杂度参数以及尺寸信息,计算归一化高通系数。S410. Calculate a normalized high-pass coefficient according to the texture complexity parameter and size information.

需要说明的是,归一化高通系数表征当前编码块的活动性程度,亦称为活动性参数。具体地,通过计算纹理复杂度参数与尺寸信息的比值可以得到归一化高通系数。It should be noted that the normalized high-pass coefficient represents the degree of activity of the current coding block, and is also referred to as an activity parameter. Specifically, the normalized high-pass coefficient can be obtained by calculating the ratio of the texture complexity parameter to the size information.

S420、根据归一化高通系数以及缩放系数,通过预设函数计算得到当前编码块的权重系数。S420. According to the normalized high-pass coefficient and the scaling coefficient, calculate and obtain the weight coefficient of the current coding block through a preset function.

需要说明的是,权重系数w’是对当前编码块在频率域高频分量置零的指导参数。具体地,权重系数w’是的计算公式为:It should be noted that the weight coefficient w' is a guide parameter for zeroing the high frequency components of the current coding block in the frequency domain. Specifically, the calculation formula of the weight coefficient w' is:

Figure BDA0003579280380000041
Figure BDA0003579280380000041

其中,G为归一化高通系数,S为缩放系数,a为预设经验值常数。Among them, G is a normalized high-pass coefficient, S is a scaling coefficient, and a is a preset empirical value constant.

S500、根据权重系数以及尺寸信息确定高频系数阈值,将位置表示大于高频系数阈值的频域系数的亮度通道进行置零处理。S500. Determine a high-frequency coefficient threshold according to the weight coefficient and size information, and perform zero-setting processing on a luminance channel whose position represents a frequency-domain coefficient greater than the high-frequency coefficient threshold.

本发明实施例中,高频系数阈值包括高频高度阈值Th_h以及高频宽度阈值Th_w。In this embodiment of the present invention, the high-frequency coefficient threshold includes a high-frequency height threshold Th_h and a high-frequency width threshold Th_w.

可选地,步骤S500中的根据权重系数以及尺寸信息确定高频系数阈值,包括步骤S510-S520:Optionally, determining the high-frequency coefficient threshold according to the weight coefficient and size information in step S500 includes steps S510-S520:

S510、计算高度与权重系数的第一乘积,得到高频高度阈值。S510. Calculate the first product of the height and the weight coefficient to obtain a high-frequency height threshold.

具体地,高频高度阈值Th_h的计算公式为:Th_h=H×w’。Specifically, the calculation formula of the high-frequency height threshold Th_h is: Th_h=H×w'.

S520、计算宽度与权重系数的第二乘积,得到高频宽度阈值。S520. Calculate the second product of the width and the weight coefficient to obtain a high-frequency width threshold.

具体地,高频宽度阈值Th_w的计算公式为:Th_w=W×w’。Specifically, the calculation formula of the high frequency width threshold Th_w is: Th_w=W×w'.

本发明实施例中,步骤S500中的将位置表示大于高频系数阈值的频域系数的亮度通道进行置零处理,包括步骤S530:In this embodiment of the present invention, in step S500, zeroing is performed on the luminance channel whose position represents the frequency domain coefficient greater than the high frequency coefficient threshold, including step S530:

S530、当高度表示大于高频高度阈值或者宽度表示大于高频宽度阈值,将位置表示对应的频域系数的亮度通道进行置零处理。S530. When the height indicates that the height is greater than the high-frequency height threshold or the width indicates that the width is greater than the high-frequency width threshold, perform zero-setting processing on the luminance channel of the corresponding frequency domain coefficient of the position.

需要说明的是,每一频域系数含有亮度通道以及色度通道。本发明实施例中,当高度y>高频高度阈值Th_h或者宽度x>高频宽度阈值Th_w,则将该位置表示(x,y)对应的频域系数的亮度通道进行置零处理,而对于色度通道而言,频域系数的色度通道则不作处理,这是由于色度通道所占的比特数不会特别高,但是如果对色度的频率域同样进行置零操作会导致色彩的偏移,所以在此处仅对亮度通道进行处理而色度通道保持不变。需要说明的是,其他实施例中也可以对色度通道进行相应的处理。It should be noted that each frequency domain coefficient contains a luminance channel and a chrominance channel. In this embodiment of the present invention, when the height y>the high-frequency height threshold Th_h or the width x>the high-frequency width threshold Th_w, the luminance channel of the frequency domain coefficient corresponding to the position representing (x, y) is zeroed, and for For the chrominance channel, the chrominance channel of the frequency domain coefficient is not processed. This is because the number of bits occupied by the chrominance channel will not be particularly high, but if the frequency domain of the chrominance is also zeroed, the color will be changed. offset, so only the luma channel is processed here and the chroma channel remains unchanged. It should be noted that, in other embodiments, corresponding processing may also be performed on the chrominance channel.

S600、根据权重系数对当前编码块的代价函数进行修改。S600. Modify the cost function of the current coding block according to the weight coefficient.

需要说明的是,由于高频置零会对当前编码块引入额外的失真,这一操作会导致后续编码步骤中其他编码块想通过代价函数来获得最优解的准确度,即会导致匹配不准的问题。而如果在当前编码块与后续一个编码块之间不解决匹配不准确的问题,会导致失真以及匹配误差逐步积累,最终会使得后续的图像视觉效果变得很差,同时由于引入失真,编码器需要更多的比特数来编码后续的视频图像,最终会导致视觉效果变得很差但是编码所需比特数不降反升的结果。因此,本发明实施例中对当前编码块的代价函数进行修改来遏制引入的失真带来的负面影响。It should be noted that since high-frequency zeroing will introduce additional distortion to the current coding block, this operation will cause other coding blocks in the subsequent coding steps to use the cost function to obtain the accuracy of the optimal solution, which will lead to mismatches. accurate question. However, if the problem of inaccurate matching between the current coding block and the subsequent coding block is not solved, distortion and matching errors will gradually accumulate, and eventually the visual effect of the subsequent image will become poor. At the same time, due to the introduction of distortion, the encoder will More bits are required to encode subsequent video images, which will eventually lead to poor visual effects, but the number of bits required for encoding does not drop but rises. Therefore, in the embodiment of the present invention, the cost function of the current coding block is modified to suppress the negative influence caused by the introduced distortion.

具体地,代价函数为:Specifically, the cost function is:

J=D+λ×RJ=D+λ×R

其中,J为代价函数的代价,D表示失真,λ是由编码器其他编码模块传递过来的系数,R为当前编码块编码后的比特数,本发明实施例中为了保证后续的编码块匹配到准确的参考块上,利用权重系数w’对λ进行修改调整得到新的λ值即λ_n,从而对代价函数进行更新,有利于保证后续编码块匹配的准确度,具体地:Among them, J is the cost of the cost function, D is the distortion, λ is the coefficient passed from other coding modules of the encoder, and R is the number of bits encoded by the current coding block. In this embodiment of the present invention, in order to ensure that subsequent coding blocks match On the accurate reference block, the weight coefficient w' is used to modify and adjust λ to obtain a new λ value, namely λ_n, so as to update the cost function, which is beneficial to ensure the matching accuracy of subsequent coding blocks, specifically:

λ_n=w’×λ+bλ_n=w’×λ+b

其中,λ_n为修改后的λ参数,b为预设常数值。Among them, λ_n is the modified λ parameter, and b is the preset constant value.

更新后的代价函数J’为:The updated cost function J' is:

J’=D+λ_n×RJ'=D+λ_n×R

可选地,在上述步骤S600完成之后,将经过高频置零之后的新的频域系数(新的频域系数)频率域系数传递给量化模块进行量化,将一定范围内的数值用该范围的最低数值表示,假设量化前频率系数的取值范围为1到100,经过量化之后,数值在1到10之间的系数都用1来表示,即量化为1;数值在11到20之间的系数都用11来表示,即量化为11,如此类推;从而继续完成后续的编码流程。Optionally, after the above-mentioned step S600 is completed, the new frequency domain coefficient (new frequency domain coefficient) frequency domain coefficient after high-frequency zeroing is passed to the quantization module for quantization, and the numerical value within a certain range is used in this range. The lowest value of , it is assumed that the value range of the frequency coefficient before quantization is 1 to 100. After quantization, the coefficients whose value is between 1 and 10 are represented by 1, that is, the quantization is 1; the value is between 11 and 20. The coefficients of are all represented by 11, that is, quantized to 11, and so on; so as to continue to complete the subsequent encoding process.

本发明实施例在现有变换模块与量化模块之间新增编码模块,用于实现基于高频置零的编码方法,通过确定权重系数确定高频系数阈值的方式,根据位置表示与高频系数阈值之间的关系进行亮度通道的高频置零,减少纹理复杂区域的亮度信息而对于平坦区域的亮度信息不作任何改变,整个置零方案的复杂度更低且实现使用更少的比特数量编码出在主观质量上人眼察觉不出差别或者有很少差别的视频。另外,由于削减了高频分量,使得后续量化模块的计算量变少,而且减少的计算量在大部分测试视频中比新引入模块增大的计算量更少,最终得到的结果是编码时间甚至有小幅度下降。In this embodiment of the present invention, a new coding module is added between the existing transform module and the quantization module, which is used to implement a coding method based on high-frequency zero-setting. The threshold of the high-frequency coefficient is determined by determining the weight coefficient. The relationship between the thresholds performs high-frequency zeroing of the brightness channel, reducing the brightness information of the complex texture area without making any changes to the brightness information of the flat area. The complexity of the entire zeroing scheme is lower and the number of bits used for encoding is less. A video with little or no difference in subjective quality to the human eye. In addition, due to the reduction of high-frequency components, the calculation amount of the subsequent quantization module is reduced, and the reduced calculation amount is less than that of the newly introduced module in most test videos. The final result is that the encoding time is even shorter. A small decrease.

本发明实施例还提供一种基于高频置零的编码装置,包括:An embodiment of the present invention also provides an encoding device based on high-frequency zero-setting, including:

获取模块,用于获取在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示;an acquisition module for acquiring the position information, size information and the position representation of the frequency domain coefficients of the transform module in the currently encoded image;

滤波模块,用于根据位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数;The filtering module is used for filtering the co-located block corresponding to the original image according to the position information to obtain the texture complexity parameter;

确定模块,用于获取当前编码图像的分辨率,并根据分辨率以及分辨率阈值确定缩放系数;A determination module, used to obtain the resolution of the currently encoded image, and determine the scaling factor according to the resolution and the resolution threshold;

权重模块,用于根据缩放系数以及纹理复杂度参数进行计算,得到当前编码块的权重系数;The weight module is used to calculate according to the scaling coefficient and texture complexity parameter to obtain the weight coefficient of the current coding block;

置零模块,用于根据权重系数以及尺寸信息确定高频系数阈值,将位置表示大于高频系数阈值的频域系数的亮度通道进行置零处理。The zero-setting module is used to determine the high-frequency coefficient threshold according to the weight coefficient and the size information, and perform zero-setting processing on the luminance channel whose position represents the frequency domain coefficient greater than the high-frequency coefficient threshold.

上述方法实施例中的内容均适用于本装置实施例中,本装置实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。The contents in the above method embodiments are all applicable to the present device embodiments, the specific functions implemented by the present device embodiments are the same as the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

本发明实施例还提供了一种电子设备,电子设备包括处理器和存储器,存储器中存储有至少一条指令、至少一段程序、代码集或指令集,至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现前述实施例的基于高频置零的编码方法。本发明实施例的电子设备包括但不限于手机、平板电脑、电脑等终端。An embodiment of the present invention further provides an electronic device, the electronic device includes a processor and a memory, and the memory stores at least one instruction, at least one program, code set or instruction set, at least one instruction, at least one program, code set or instruction set The set is loaded and executed by the processor to implement the high frequency zeroing based encoding method of the previous embodiment. The electronic devices in the embodiments of the present invention include but are not limited to terminals such as mobile phones, tablet computers, and computers.

上述方法实施例中的内容均适用于本设备实施例中,本设备实施例所具体实现的功能与上述方法实施例相同,并且达到的有益效果与上述方法实施例所达到的有益效果也相同。The contents in the above method embodiments are all applicable to the present device embodiments, the specific functions implemented by the present device embodiments are the same as the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

本发明实施例还提供一种计算机可读存储介质,存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现前述实施例的基于高频置零的编码方法。Embodiments of the present invention further provide a computer-readable storage medium, where at least one instruction, at least one piece of program, code set or instruction set is stored in the storage medium, and at least one instruction, at least one piece of program, code set or instruction set is loaded by a processor And execute to realize the encoding method based on high frequency zeroing in the foregoing embodiment.

本发明实施例还提供一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行前述实施例的基于高频置零的编码方法。Embodiments of the present invention further provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the encoding method based on high-frequency zeroing of the foregoing embodiments.

本申请的说明书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that, in this application, "at least one (item)" refers to one or more, and "a plurality" refers to two or more. "And/or" is used to describe the relationship between related objects, indicating that there can be three kinds of relationships, for example, "A and/or B" can mean: only A, only B, and both A and B exist , where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms. Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM for short), Random Access Memory (RAM for short), magnetic disk or CD, etc. that can store programs medium.

以上,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (10)

1.一种基于高频置零的编码方法,其特征在于,包括:1. a coding method based on high frequency zeroing, is characterized in that, comprises: 获取当前编码块在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示;Obtain the position information and size information of the current coding block in the current coded image and the position representation of the frequency domain coefficients of the transform module; 根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数;Perform filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter; 获取所述当前编码图像的分辨率,并根据所述分辨率以及分辨率阈值确定缩放系数;acquiring the resolution of the currently encoded image, and determining a scaling factor according to the resolution and a resolution threshold; 根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数;Calculate according to the scaling coefficient and the texture complexity parameter to obtain the weight coefficient of the current coding block; 根据所述权重系数以及所述尺寸信息确定高频系数阈值,将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理。A high frequency coefficient threshold is determined according to the weight coefficient and the size information, and the luminance channel whose position represents a frequency domain coefficient larger than the high frequency coefficient threshold is zeroed. 2.根据权利要求1所述基于高频置零的编码方法,其特征在于:所述根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数,包括:2. The coding method based on high-frequency zeroing according to claim 1, wherein the filtering process is performed on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter, comprising: 通过拉普拉斯算子对原始图像对应位置的同位块进行高通滤波处理,得到纹理复杂度参数;所述纹理复杂度参数为像素矩阵。A high-pass filtering process is performed on the co-located block at the corresponding position of the original image by the Laplacian operator to obtain a texture complexity parameter; the texture complexity parameter is a pixel matrix. 3.根据权利要求1所述基于高频置零的编码方法,其特征在于:所述根据所述分辨率以及分辨率阈值确定缩放系数,包括:3. The encoding method based on high-frequency zeroing according to claim 1, wherein: determining the scaling factor according to the resolution and the resolution threshold, comprising: 计算所述分辨率与所述分辨率阈值的比值,得到缩放系数。The ratio of the resolution to the resolution threshold is calculated to obtain a scaling factor. 4.根据权利要求1-3任一项所述基于高频置零的编码方法,其特征在于:所述根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数,包括:4. The encoding method based on high frequency zeroing according to any one of claims 1 to 3, wherein the calculation is performed according to the scaling coefficient and the texture complexity parameter to obtain the encoding of the current encoding block. Weighting factors, including: 根据所述纹理复杂度参数以及所述尺寸信息,计算归一化高通系数;所述归一化高通系数表征所述当前编码块的活动性程度;According to the texture complexity parameter and the size information, a normalized high-pass coefficient is calculated; the normalized high-pass coefficient represents the activity level of the current coding block; 根据所述归一化高通系数以及所述缩放系数,通过预设函数计算得到所述当前编码块的权重系数。According to the normalized high-pass coefficient and the scaling coefficient, the weight coefficient of the current coding block is obtained by calculating a preset function. 5.根据权利要求1所述基于高频置零的编码方法,其特征在于:所述尺寸信息包括高度和宽度,根据所述权重系数以及所述尺寸信息确定高频系数阈值,包括:5. The encoding method based on high-frequency zeroing according to claim 1, wherein: the size information includes height and width, and determining a high-frequency coefficient threshold according to the weight coefficient and the size information, comprising: 计算所述高度与所述权重系数的第一乘积,得到高频高度阈值;Calculate the first product of the height and the weight coefficient to obtain a high-frequency height threshold; 计算所述宽度与所述权重系数的第二乘积,得到高频宽度阈值;Calculate the second product of the width and the weight coefficient to obtain a high-frequency width threshold; 所述高频系数阈值包括所述高频高度阈值以及所述高频高度阈值。The high frequency coefficient threshold includes the high frequency height threshold and the high frequency height threshold. 6.根据权利要求5所述基于高频置零的编码方法,其特征在于:所述位置表示包括高度表示以及宽度表示,所述将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理,包括:6 . The encoding method based on high frequency zeroing according to claim 5 , wherein the position representation includes a height representation and a width representation, and the position representation is a frequency domain coefficient larger than the high frequency coefficient threshold. 7 . The brightness channel of the zero is zeroed, including: 当所述高度表示大于所述高频高度阈值或者所述宽度表示大于所述高频宽度阈值,将所述位置表示对应的频域系数的亮度通道进行置零处理。When the height representation is larger than the high-frequency height threshold or the width representation is larger than the high-frequency width threshold, zeroing is performed on the luminance channel of the frequency domain coefficient corresponding to the position representation. 7.根据权利要求1所述基于高频置零的编码方法,其特征在于:所述方法还包括:7. The encoding method based on high frequency zeroing according to claim 1, wherein the method further comprises: 根据所述权重系数对所述当前编码块的代价函数进行修改。The cost function of the current coding block is modified according to the weight coefficient. 8.一种基于高频置零的编码装置,其特征在于,包括:8. An encoding device based on high-frequency zero-setting, characterized in that, comprising: 获取模块,用于获取在当前编码图像的位置信息、尺寸信息以及变换模块的频域系数的位置表示;an acquisition module for acquiring the position information, size information and the position representation of the frequency domain coefficients of the transform module in the currently encoded image; 滤波模块,用于根据所述位置信息对原始图像对应位置的同位块进行滤波处理,得到纹理复杂度参数;a filtering module, configured to perform filtering processing on the co-located block at the corresponding position of the original image according to the position information to obtain a texture complexity parameter; 确定模块,用于获取所述当前编码图像的分辨率,并根据所述分辨率以及分辨率阈值确定缩放系数;a determining module, configured to acquire the resolution of the currently encoded image, and determine a scaling factor according to the resolution and a resolution threshold; 权重模块,用于根据所述缩放系数以及所述纹理复杂度参数进行计算,得到所述当前编码块的权重系数;a weighting module, configured to calculate according to the scaling factor and the texture complexity parameter to obtain the weighting factor of the current coding block; 置零模块,用于根据所述权重系数以及所述尺寸信息确定高频系数阈值,将所述位置表示大于所述高频系数阈值的频域系数的亮度通道进行置零处理。A zero-setting module, configured to determine a high-frequency coefficient threshold according to the weight coefficient and the size information, and perform zero-setting processing on the luminance channel whose position represents a frequency domain coefficient greater than the high-frequency coefficient threshold. 9.一种电子设备,其特征在于,所述电子设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如权利要求1-7中任一项所述方法。9. An electronic device, characterized in that the electronic device comprises a processor and a memory, and the memory stores at least one instruction, at least a piece of program, a code set or an instruction set, the at least one instruction, the at least one A program, the code set or the instruction set is loaded and executed by the processor to implement the method of any of claims 1-7. 10.一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如权利要求1-7中任一项所述方法。10. A computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one piece of program, code set or instruction set, the at least one instruction, the at least one piece of program, the code A set or set of instructions is loaded and executed by a processor to implement the method of any of claims 1-7.
CN202210340865.7A 2022-04-02 2022-04-02 A coding method, device, equipment and medium based on high-frequency zeroing Active CN114666584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210340865.7A CN114666584B (en) 2022-04-02 2022-04-02 A coding method, device, equipment and medium based on high-frequency zeroing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210340865.7A CN114666584B (en) 2022-04-02 2022-04-02 A coding method, device, equipment and medium based on high-frequency zeroing

Publications (2)

Publication Number Publication Date
CN114666584A true CN114666584A (en) 2022-06-24
CN114666584B CN114666584B (en) 2023-05-09

Family

ID=82033879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210340865.7A Active CN114666584B (en) 2022-04-02 2022-04-02 A coding method, device, equipment and medium based on high-frequency zeroing

Country Status (1)

Country Link
CN (1) CN114666584B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116260973A (en) * 2023-03-31 2023-06-13 北京百度网讯科技有限公司 Time domain filtering method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392975A (en) * 2017-07-27 2017-11-24 神华集团有限责任公司 The multiple dimensioned splits' positions cognitive method of image adaptive, electronic equipment
US20180302621A1 (en) * 2017-04-14 2018-10-18 Apple Inc. Techniques for Calculation of Quantization Matrices in Video Coding
CN108961390A (en) * 2018-06-08 2018-12-07 华中科技大学 Real-time three-dimensional method for reconstructing based on depth map
CN111383177A (en) * 2020-03-23 2020-07-07 中国科学院金属研究所 Laser ultrasonic visual image resolution improving method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302621A1 (en) * 2017-04-14 2018-10-18 Apple Inc. Techniques for Calculation of Quantization Matrices in Video Coding
CN107392975A (en) * 2017-07-27 2017-11-24 神华集团有限责任公司 The multiple dimensioned splits' positions cognitive method of image adaptive, electronic equipment
CN108961390A (en) * 2018-06-08 2018-12-07 华中科技大学 Real-time three-dimensional method for reconstructing based on depth map
CN111383177A (en) * 2020-03-23 2020-07-07 中国科学院金属研究所 Laser ultrasonic visual image resolution improving method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116260973A (en) * 2023-03-31 2023-06-13 北京百度网讯科技有限公司 Time domain filtering method and device, electronic equipment and storage medium
CN116260973B (en) * 2023-03-31 2024-03-19 北京百度网讯科技有限公司 Time domain filtering method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114666584B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
Ma et al. Objective quality assessment for color-to-gray image conversion
CN108235037B (en) Encoding and decoding image data
US11259029B2 (en) Method, device, apparatus for predicting video coding complexity and storage medium
CN110062230B (en) Image coding method and device
CN112534466B (en) Directional scaling system and method
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
CN108694030B (en) Method and apparatus for processing high dynamic range images
CN110956594A (en) Image filtering method, device, electronic device and storage medium
WO2019091196A1 (en) Image processing method and apparatus
CN114666584B (en) A coding method, device, equipment and medium based on high-frequency zeroing
CN112801879A (en) Image super-resolution reconstruction method and device, electronic equipment and storage medium
CN118657679A (en) A method and device for enhancing details of high dynamic range infrared images
CN113422956B (en) Image coding method and device, electronic equipment and storage medium
CN115842915A (en) Video coding method and device
JP2008005107A (en) Video alignment method
CN116744125B (en) Image color data processing method, device, equipment and storage medium
CN110740324B (en) Coding control method and related device
CN114727108A (en) Quantization factor adjusting method and device, electronic equipment and storage medium
Toprak et al. A new full-reference image quality metric based on just noticeable difference
US7657110B2 (en) Image compression using a color visual model
US9924176B2 (en) Hybrid block based compression
CN112637597A (en) JPEG image compression method, device, computer equipment and storage medium
CN114998163B (en) Infrared digital image gray level mapping method
CN118830253A (en) Model Adjustment for Local Illumination Compensation in Video Coding
CN115131265A (en) Method and device for determining human eye perception threshold value and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant