CN111541854B - Motion vector fitting, frame rate conversion method and device and electronic equipment - Google Patents
Motion vector fitting, frame rate conversion method and device and electronic equipment Download PDFInfo
- Publication number
- CN111541854B CN111541854B CN202010303943.7A CN202010303943A CN111541854B CN 111541854 B CN111541854 B CN 111541854B CN 202010303943 A CN202010303943 A CN 202010303943A CN 111541854 B CN111541854 B CN 111541854B
- Authority
- CN
- China
- Prior art keywords
- fitting
- motion vector
- interpolation block
- block
- interpolation
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0127—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234381—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Television Systems (AREA)
Abstract
本公开涉及图像处理技术领域,具体涉及一种运动矢量拟合方法、运动矢量拟合装置、帧率转换方法和电子设备。所述方法包括:基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量;根据各所述数量选择对应的目标拟合方法进行拟合,得到各所述插值块对应的拟合运动矢量。本公开可以根据插值块的特征选择适合的目标拟合方法,进而提高拟合运动矢量的准确性,以改善视频播放的流畅度。
The present disclosure relates to the technical field of image processing, and in particular, to a motion vector fitting method, a motion vector fitting device, a frame rate conversion method and electronic equipment. The method includes: determining the number of target projection blocks passing through each interpolation block on the image to be interpolated based on motion estimation and motion vector projection; The fitted motion vector corresponding to the block. The present disclosure can select a suitable target fitting method according to the characteristics of the interpolation block, thereby improving the accuracy of fitting motion vectors and improving the smoothness of video playback.
Description
技术领域technical field
本公开涉及图像处理技术领域,具体涉及一种运动矢量拟合方法、运动矢量拟合装置、帧率转换方法和电子设备。The present disclosure relates to the technical field of image processing, and in particular, to a motion vector fitting method, a motion vector fitting device, a frame rate conversion method, and an electronic device.
背景技术Background technique
随着多媒体领域的不断发展,人们对视频的要求也越来越高。为了提高视频的质量,往往需要对视频格式进行必要的转换。其中,帧率转换技术是视频转换技术中非常重要的一环。With the continuous development of the multimedia field, people's requirements for video are getting higher and higher. In order to improve the quality of the video, it is often necessary to perform necessary conversion on the video format. Among them, the frame rate conversion technology is a very important part of the video conversion technology.
帧率是以帧为单位的位图图像连续出现在显示器上的频率,现有的帧率转换算法无法有效改善运动物体出现模糊的情况,存在使得视频播放不够流畅的问题。The frame rate is the frequency at which bitmap images in frame units appear continuously on the display. The existing frame rate conversion algorithm cannot effectively improve the blurring of moving objects, and there is a problem that the video playback is not smooth enough.
发明内容SUMMARY OF THE INVENTION
本公开的目的在于提供一种运动矢量拟合方法、运动矢量拟合装置、帧率转换方法和电子设备,进而至少在一定程度上克服相关技术中运动矢量拟合方法过于简单、单一,导致拟合运动矢量的准确性较低,影响视频播放的流畅度的问题。The purpose of the present disclosure is to provide a motion vector fitting method, a motion vector fitting device, a frame rate conversion method and an electronic device, so as to at least to a certain extent overcome the simplicity and singleness of the motion vector fitting method in the related art, which leads to false The accuracy of the combined motion vector is low, which affects the smoothness of video playback.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的第一方面,提供一种运动矢量拟合方法,包括:According to a first aspect of the present disclosure, there is provided a motion vector fitting method, comprising:
基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量;Determine the number of target projection blocks passing through each interpolation block on the image to be interpolated based on motion estimation and motion vector projection;
根据各数量,确定对应的目标拟合方法进行拟合,获得各插值块对应的拟合运动矢量。According to each quantity, the corresponding target fitting method is determined for fitting, and the fitted motion vector corresponding to each interpolation block is obtained.
根据本公开的第二方面,提供一种帧率转换方法,包括:According to a second aspect of the present disclosure, there is provided a frame rate conversion method, comprising:
获取待插值图像中各插值块对应的拟合运动矢量;其中,拟合运动矢量通过上述的运动矢量拟合方法得到;Obtain the fitted motion vector corresponding to each interpolation block in the image to be interpolated; wherein, the fitted motion vector is obtained by the above-mentioned motion vector fitting method;
利用拟合运动矢量对待插值图像进行运动补偿插值。Motion compensation interpolation is performed on the image to be interpolated using the fitted motion vector.
根据本公开的第三方面,提供一种运动矢量拟合装置,包括:According to a third aspect of the present disclosure, there is provided a motion vector fitting device, comprising:
数量确定模块,用于基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量;A quantity determination module, for determining the quantity of target projection blocks passing through each interpolation block on the image to be interpolated based on motion estimation and motion vector projection;
矢量拟合模块,用于根据各数量,确定对应的目标拟合方法进行拟合,获得各插值块对应的拟合运动矢量。The vector fitting module is used to determine the corresponding target fitting method for fitting according to each quantity, and obtain the fitting motion vector corresponding to each interpolation block.
根据本公开的第四方面,提供一种帧率转换装置,包括:According to a fourth aspect of the present disclosure, there is provided a frame rate conversion device, comprising:
运动拟合模块,用于获取待插值图像中各插值块对应的拟合运动矢量;其中,拟合运动矢量通过上述的运动矢量拟合方法得到;a motion fitting module, used to obtain the fitted motion vector corresponding to each interpolation block in the image to be interpolated; wherein, the fitted motion vector is obtained by the above-mentioned motion vector fitting method;
运动补偿模块,用于利用拟合运动矢量对待插值图像进行运动补偿插值。The motion compensation module is used to perform motion compensation interpolation on the image to be interpolated by using the fitted motion vector.
根据本公开的第五方面,提供一种计算机可读介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述的运动矢量拟合方法或帧率转换方法。According to a fifth aspect of the present disclosure, there is provided a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned motion vector fitting method or frame rate conversion method.
根据本公开的第六方面,提供一种电子设备,其特征在于,包括:According to a sixth aspect of the present disclosure, an electronic device is provided, characterized in that it includes:
处理器;以及processor; and
存储器,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现上述的运动矢量拟合方法或帧率转换方法。The memory is used for storing one or more programs, and when the one or more programs are executed by one or more processors, enables the one or more processors to implement the above-mentioned motion vector fitting method or frame rate conversion method.
本公开的一种实施例所提供的运动矢量拟合方法中,通过确定穿过各插值块的目标投影块的数量,对插值块进行分类,进而根据该数量对应的目标拟合方法进行拟合,最终得到各插值块对应的拟合运动矢量。通过根据插值块的特征对插值块进行分类,选择对应的目标拟合方法,可以根据插值块的特征选择适合的目标拟合方法,进而提高拟合运动矢量的准确性,以改善视频播放的流畅度。In the motion vector fitting method provided by an embodiment of the present disclosure, the number of target projection blocks passing through each interpolation block is determined, the interpolation blocks are classified, and then the fitting is performed according to the target fitting method corresponding to the number , and finally obtain the fitted motion vector corresponding to each interpolation block. By classifying the interpolation blocks according to the characteristics of the interpolation blocks and selecting the corresponding target fitting method, the suitable target fitting method can be selected according to the characteristics of the interpolation blocks, thereby improving the accuracy of the fitted motion vector and improving the smoothness of video playback. Spend.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. In the attached image:
图1示意性示出本公开示例性实施例中一种运动矢量拟合方法的流程图;FIG. 1 schematically shows a flowchart of a motion vector fitting method in an exemplary embodiment of the present disclosure;
图2示意性示出本公开示例性实施例中一种确定穿过待插值图像上各插值块的目标投影块的数量的方法的流程图;2 schematically shows a flowchart of a method for determining the number of target projection blocks passing through each interpolation block on an image to be interpolated in an exemplary embodiment of the present disclosure;
图3示意性示出本公开示例性实施例中一种得到各插值块对应的拟合运动矢量的方法的流程图;3 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to each interpolation block in an exemplary embodiment of the present disclosure;
图4示意性示出本公开示例性实施例中一种通过基于面积和可信度的拟合方法进行拟合,得到插值块对应的拟合运动矢量的方法的流程图;FIG. 4 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to an interpolation block by performing fitting by a fitting method based on area and reliability in an exemplary embodiment of the present disclosure;
图5示意性示出本公开示例性实施例中根据重叠面积和可信度得到插值块对应的拟合运动矢量的方法的流程图;FIG. 5 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to an interpolation block according to an overlapping area and a reliability in an exemplary embodiment of the present disclosure;
图6示意性示出本公开示例性实施例中一种通过联合拟合方法进行拟合,得到插值块对应的拟合运动矢量的方法的流程图;6 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to an interpolation block by performing fitting through a joint fitting method in an exemplary embodiment of the present disclosure;
图7示意性示出本公开示例性实施例中基于联合拟合规则和预设参数对第一拟合运动矢量和第二拟合运动矢量进行拟合,得到插值块对应的拟合运动矢量的方法的流程图;FIG. 7 schematically illustrates the fitting of the first fitted motion vector and the second fitted motion vector based on the joint fitting rule and preset parameters in an exemplary embodiment of the present disclosure to obtain the fitting motion vector corresponding to the interpolation block. flow chart of the method;
图8示意性示出本公开示例性实施例中一种通过基于时空邻域的拟合方法进行拟合,得到插值块对应的拟合运动矢量的方法的流程图;FIG. 8 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to an interpolation block by performing a fitting method based on a spatiotemporal neighborhood in an exemplary embodiment of the present disclosure;
图9示意性示出本公开示例性实施例中根据第一插值块和第二插值块得到插值块对应的拟合运动矢量的方法的流程图;9 schematically shows a flowchart of a method for obtaining a fitted motion vector corresponding to an interpolation block according to a first interpolation block and a second interpolation block in an exemplary embodiment of the present disclosure;
图10示意性示出本公开示例性实施例中根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及与插值块之间的距离,得到插值块对应的拟合运动矢量的方法的流程图;FIG. 10 schematically shows the method of obtaining the fitted motion vector corresponding to the interpolation block according to the fitted motion vector corresponding to the target first interpolation block and the target second interpolation block and the distance from the interpolation block in an exemplary embodiment of the present disclosure. flow chart of the method;
图11示意性示出本公开示例性实施例中一种帧率转换方法的流程图;FIG. 11 schematically shows a flowchart of a frame rate conversion method in an exemplary embodiment of the present disclosure;
图12示意性示出本公开示例性实施例中一种目标投影块穿过插值块的示意图;FIG. 12 schematically shows a schematic diagram of a target projection block passing through an interpolation block in an exemplary embodiment of the present disclosure;
图13示意性示出本公开示例性实施例中运动矢量拟合装置的组成示意图;FIG. 13 schematically shows the composition diagram of the motion vector fitting apparatus in the exemplary embodiment of the present disclosure;
图14示意性示出本公开示例性实施例中帧率转换装置的组成示意图;FIG. 14 schematically shows a composition diagram of a frame rate conversion apparatus in an exemplary embodiment of the present disclosure;
图15示意性示出本公开示例性实施例中电子设备的计算机系统的结构示意图。FIG. 15 schematically shows a schematic structural diagram of a computer system of an electronic device in an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
在相关的运动补偿插帧算法中,通常需要针对待插帧图像确定对应的拟合运动矢量。例如,可以对待插帧图像进行分块得到多个插值块,进而针对每个插值块确定对应的拟合运动矢量。在相关拟合运动矢量的确定方法中,往往会采用在多个穿过插值块的运动矢量中确定一个运动矢量为拟合运动矢量的方式。然而,这种简单、单一的方法往往会造成确定的拟合运动矢量准确性较低的问题,进而可能会导致最终得到的视频质量较低。In the related motion compensation frame insertion algorithm, it is usually necessary to determine the corresponding fitted motion vector for the image to be inserted. For example, the to-be-interpolated image may be divided into blocks to obtain multiple interpolation blocks, and then a corresponding fitting motion vector may be determined for each interpolation block. In the method for determining the relevant fitted motion vector, a manner of determining one motion vector as the fitted motion vector among a plurality of motion vectors passing through the interpolation block is often adopted. However, this simple, single approach often results in lower accuracy of the determined fitted motion vectors, which in turn may result in lower quality video.
针对上述的现有技术所存在的缺点和不足,本示例实施方式中提供了一种运动矢量拟合方法,可以应用于手机、平板电脑、数码相机等终端设备。In view of the above-mentioned shortcomings and deficiencies of the prior art, this exemplary embodiment provides a motion vector fitting method, which can be applied to terminal devices such as mobile phones, tablet computers, and digital cameras.
参考图1中所示,上述的运动矢量拟合方法可以包括以下步骤S110至S120:Referring to Fig. 1, the above-mentioned motion vector fitting method may include the following steps S110 to S120:
步骤S110,基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量。Step S110, determining the number of target projection blocks passing through each interpolation block on the image to be interpolated based on motion estimation and motion vector projection.
本示例实施方式中,运动估计用于获取待插值图像对应的运动矢量,可以包括双向运动估计等运动估计方式;运动矢量投影用于将运动矢量投影至待插值图像生成运动矢量对应的投影块,可以包括基于距离的运动矢量投影等运动矢量投影方式。In this exemplary embodiment, motion estimation is used to obtain the motion vector corresponding to the image to be interpolated, and may include motion estimation methods such as bidirectional motion estimation; motion vector projection is used to project the motion vector to the image to be interpolated to generate a projection block corresponding to the motion vector, It can include motion vector projection methods such as distance-based motion vector projection.
本示例实施方式中,参照图2所示,基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量,可以包括以下步骤S210至S220:In this exemplary embodiment, referring to FIG. 2 , determining the number of target projection blocks passing through each interpolation block on the image to be interpolated based on motion estimation and motion vector projection may include the following steps S210 to S220:
步骤S210,获取待插值图像对应的运动矢量,并对运动矢量进行投影以确定运动矢量对应的投影块在待插值图像上的位置。In step S210, the motion vector corresponding to the image to be interpolated is acquired, and the motion vector is projected to determine the position of the projection block corresponding to the motion vector on the image to be interpolated.
本示例实施方式中,待插值运动图像对应的运动矢量可以包括通过双向运动估计方式对待插值图像进行处理得到的前向运动矢量或者后向运动矢量;此外,待插值图像对应的运动矢量还可以包括根据其它运动估计方式对待插值图像进行处理得到的其它运动矢量,本公开对此不做特殊限定。In this exemplary embodiment, the motion vector corresponding to the moving image to be interpolated may include a forward motion vector or a backward motion vector obtained by processing the image to be interpolated by bidirectional motion estimation; in addition, the motion vector corresponding to the image to be interpolated may also include Other motion vectors obtained by processing the image to be interpolated according to other motion estimation methods are not specifically limited in the present disclosure.
本示例实施方式中,对运动矢量进行投影时,可以采用基于距离的运动矢量投影,其中,距离是指投影块中心点到各重叠的插值块的中心点的距离;此外,还可以采用其他方式进行运动矢量投影,本公开对此不做特殊限定。通过对运动矢量进行投影,可以确定运动矢量对应的投影块在待插值图像上的位置。In this example implementation, when projecting motion vectors, distance-based motion vector projection may be used, where the distance refers to the distance from the center point of the projection block to the center point of each overlapping interpolation block; in addition, other methods may also be used. Perform motion vector projection, which is not specifically limited in the present disclosure. By projecting the motion vector, the position of the projected block corresponding to the motion vector on the image to be interpolated can be determined.
步骤S220,根据预设分割规则将待插值图像划分为至少一个插值块,并根据插值块和投影块在待插值图像上的位置,确定穿过各插值块的目标投影块的数量。Step S220: Divide the image to be interpolated into at least one interpolation block according to a preset segmentation rule, and determine the number of target projection blocks passing through each interpolation block according to the positions of the interpolation block and the projection block on the image to be interpolated.
本示例实施方式中,预设分割规则可以包括预设插值块数量。此时,可以根据预设插值块数量将待插值图像平均划分为形状相同、大小相同的插值块。此外,预设分割规则还可以包括预设插值块大小等参数,进而根据参数将待插值图像划分为至少一个插值块。需要说明的是,为了保证对待插值图像中各个区域的处理相同,预设分割规则包括用于将待插值图像划分为形状、大小均相同的插值块的分割规则。In this example embodiment, the preset division rule may include a preset number of interpolation blocks. At this time, the image to be interpolated may be evenly divided into interpolation blocks of the same shape and size according to the preset number of interpolation blocks. In addition, the preset segmentation rule may further include parameters such as a preset interpolation block size, and further divide the image to be interpolated into at least one interpolation block according to the parameters. It should be noted that, in order to ensure the same processing of each region in the image to be interpolated, the preset segmentation rules include segmentation rules for dividing the image to be interpolated into interpolation blocks with the same shape and size.
本示例实施方式中,在将待插值图像划分为至少一个插值块之后,可以根据投影块在待插值图像中的位置确定穿过各插值块的目标投影块的数量。其中,穿过插值块的目标投影块是指与插值块存在重叠的投影块。例如,图12所示的投影块均为穿过插值块的目标投影块。In this exemplary embodiment, after the image to be interpolated is divided into at least one interpolation block, the number of target projection blocks passing through each interpolation block may be determined according to the position of the projection block in the image to be interpolated. The target projection block passing through the interpolation block refers to the projection block that overlaps with the interpolation block. For example, the projection blocks shown in FIG. 12 are all target projection blocks passing through the interpolation block.
步骤S120,根据各数量,确定对应的目标拟合方法进行拟合,获取各插值块对应的拟合运动矢量。Step S120, according to each quantity, determine a corresponding target fitting method to perform fitting, and obtain a fitting motion vector corresponding to each interpolation block.
本示例实施方式中,在确定穿过各插值块的目标投影块的数量之后,可以选择该数量对应的目标拟合方法进行拟合,进而得到各插值块对应的拟合运动矢量。In this exemplary embodiment, after determining the number of target projection blocks passing through each interpolation block, a target fitting method corresponding to the number can be selected for fitting, and then a fitted motion vector corresponding to each interpolation block can be obtained.
举例而言,参照图3所示,根据各数量选择对应的目标拟合方法进行拟合,得到各插值块对应的拟合运动矢量,可以包括以下步骤S310至S320:For example, referring to FIG. 3 , selecting the corresponding target fitting method for fitting according to each quantity, and obtaining the fitting motion vector corresponding to each interpolation block, may include the following steps S310 to S320:
步骤S310,在数量大于等于预设阈值时,通过基于面积和可信度的拟合方法进行拟合,得到插值块对应的拟合运动矢量;和/或通过基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法进行联合拟合,得到插值块对应的拟合运动矢量。Step S310, when the number is greater than or equal to a preset threshold, perform fitting by a fitting method based on area and reliability to obtain a fitted motion vector corresponding to the interpolation block; and/or by fitting based on area and reliability The method and the motion vector fitting method based on the spatiotemporal neighborhood are jointly fitted to obtain the fitted motion vector corresponding to the interpolation block.
本示例实施方式中,预设阈值可以根据不同场景的需求进行不同的设定,取正整数。举例而言,在更加信任穿过插值块的目标投影块时,可以将预设阈值设置为较小值,在更加信任相邻拟合运动矢量时,可以将预设阈值设置为较大值,本公开对此不做特殊限定。In this example implementation, the preset threshold can be set differently according to the requirements of different scenarios, taking a positive integer. For example, when the target projection block passing through the interpolation block is more trusted, the preset threshold can be set to a smaller value, and when the adjacent fitted motion vector is more trusted, the preset threshold can be set to a larger value, This disclosure does not make any special limitation on this.
本示例实施方式中,在穿过插值块的目标投影块的数量大于等于预设阈值时,可以通过重叠面积和可信度确定每个目标投影块对应的运动矢量对于该插值块对应的拟合运动矢量的贡献度,进而确定该插值块的拟合运动矢量;或者,也可以通过基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法进行联合拟合,得到插值块对应的拟合运动矢量。此外,还可以通过对穿过待插值图像上各插值块的目标投影块的数量按任意规则进行进一步分类,进而分别采用通过基于面积和可信度的拟合方法进行拟合,和通过基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法进行联合拟合,分别得到不同分类的插值块对应的拟合运动矢量。In this example implementation, when the number of target projection blocks passing through the interpolation block is greater than or equal to a preset threshold, the fit of the motion vector corresponding to each target projection block to the interpolation block can be determined by the overlap area and the reliability. The contribution degree of the motion vector, and then determine the fitted motion vector of the interpolation block; or, it is also possible to perform joint fitting by the fitting method based on area and reliability and the motion vector fitting method based on spatiotemporal neighborhood to obtain the interpolation value. The fitted motion vector corresponding to the block. In addition, the number of target projection blocks passing through each interpolation block on the image to be interpolated can be further classified according to any rules, and then the fitting method based on area and reliability can be used for fitting, and the area-based fitting method can be used for fitting. It performs joint fitting with the reliability fitting method and the motion vector fitting method based on the spatiotemporal neighborhood, and obtains the fitted motion vectors corresponding to the interpolation blocks of different classifications respectively.
举例而言,在预设阈值取值为1时,可以通过设置分类阈值2,将插值块分为数量小于2和数量大于等于2的两类插值块,然后对数量等于1的插值块进行基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法进行联合拟合,得到对应的拟合运动矢量;对数量大于等于2的插值块,进行通过基于面积和可信度的拟合方法进行拟合,得到插值块对应的拟合运动矢量。需要说明的是,还可以根据其它的分类方法进行进一步分类,本公开对此不做特殊限定。For example, when the preset threshold value is 1, by setting the classification threshold 2, the interpolation blocks can be divided into two types of interpolation blocks whose number is less than 2 and whose number is greater than or equal to 2, and then the number of interpolation blocks equal to 1 is based on The area and reliability fitting method and the spatiotemporal neighborhood-based motion vector fitting method are jointly fitted to obtain the corresponding fitted motion vector; for the interpolation blocks whose number is greater than or equal to 2, the The fitting method is fitted to obtain the fitted motion vector corresponding to the interpolation block. It should be noted that further classification may be performed according to other classification methods, which is not specifically limited in the present disclosure.
具体的,参照图4所示,通过基于面积和可信度的拟合方法进行拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S410至S430:Specifically, as shown in FIG. 4 , the fitting motion vector corresponding to the interpolation block is obtained by performing a fitting method based on area and reliability, which may include the following steps S410 to S430:
步骤S410,获取与插值块对应的目标投影块,并获取各目标投影块对应的运动矢量的可信度。Step S410, acquiring target projection blocks corresponding to the interpolation blocks, and acquiring the reliability of the motion vector corresponding to each target projection block.
其中,运动矢量的可信度可以根据以下至少一个参数或者多个参数的组合进行计算:该运动矢量对应的绝对误差和(SAD)、绝对变换差之和(STAD)、纹理梯度,位置惩罚,候选MV的准确度等;具体计算的方式可以是加和、加权平均等,本公开对此不做特殊限定。Wherein, the reliability of the motion vector can be calculated according to at least one of the following parameters or a combination of multiple parameters: the sum of absolute errors (SAD) corresponding to the motion vector, the sum of absolute transformation differences (STAD), the texture gradient, the position penalty, The accuracy of the candidate MV, etc.; the specific calculation method may be summation, weighted average, etc., which is not specially limited in the present disclosure.
本示例实施方式中,在获取与插值块对应的目标投影块之后,方法还包括:根据预设筛选条件对目标投影块进行筛选,将不满足预设筛选条件的目标投影块删除。In this example implementation, after acquiring the target projection blocks corresponding to the interpolation blocks, the method further includes: screening the target projection blocks according to the preset filtering conditions, and deleting the target projection blocks that do not meet the preset filtering conditions.
本示例实施方式中,在获取插值块对应的目标投影块之后,还可以根据预设筛选条件对目标投影块进行筛选,以不满足预设筛选条件的目标投影块删除,提高拟合的准确性。举例而言,可以设置距离阈值,将目标投影块中心点与插值块中心点之间的距离大于预设距离的目标投影块删除;再如,还可以通过确定各目标投影块对应的重复率,并将重复率不在前预设数量的目标投影块删除;此外,还可以设置其它的预设筛选条件对目标投影块进行筛选,本公开对此不做特殊限制。In this example implementation, after the target projection blocks corresponding to the interpolation blocks are obtained, the target projection blocks can also be screened according to the preset screening conditions, and the target projection blocks that do not meet the preset screening conditions are deleted, so as to improve the accuracy of fitting . For example, a distance threshold can be set to delete the target projection blocks whose distance between the center point of the target projection block and the center point of the interpolation block is greater than the preset distance; for another example, by determining the repetition rate corresponding to each target projection block, And delete the target projection blocks whose repetition rate is not the previous preset number; in addition, other preset filtering conditions can also be set to filter the target projection blocks, which is not limited in the present disclosure.
步骤S420,计算各目标投影块与插值块的重叠面积。Step S420: Calculate the overlapping area of each target projection block and the interpolation block.
本示例实施方式中,穿过插值块的目标投影块是指与插值块存在重叠的投影块,因此可以通过目标投影块与插值块之间的重叠面积作为该目标投影块的一个参数。In this exemplary embodiment, the target projection block passing through the interpolation block refers to the projection block that overlaps with the interpolation block, so the overlapping area between the target projection block and the interpolation block can be used as a parameter of the target projection block.
步骤S430,根据重叠面积和可信度对目标投影块对应的运动矢量进行拟合,得到插值块对应的拟合运动矢量Step S430: Fit the motion vector corresponding to the target projection block according to the overlapping area and the reliability to obtain the fitted motion vector corresponding to the interpolation block
本示例实施方式中,可以根据各目标投影块的可信度以及各目标投影块与插值块的重叠面积将各目标投影块对应的运动矢量进行拟合,进而得到插值块对应的拟合运动矢量。In this example implementation, the motion vector corresponding to each target projection block can be fitted according to the reliability of each target projection block and the overlapping area between each target projection block and the interpolation block, and then the fitted motion vector corresponding to the interpolation block is obtained. .
举例而言,上述的根据重叠面积和可信度对目标投影块对应的运动矢量进行拟合,得到插值块对应的拟合运动矢量,参照图5所示,可以包括如下步骤S510至S530:For example, the above-mentioned fitting the motion vector corresponding to the target projection block according to the overlap area and the reliability, to obtain the fitting motion vector corresponding to the interpolation block, as shown in FIG. 5 , may include the following steps S510 to S530:
步骤S510,计算各目标投影块对应的运动矢量、重叠面积和可信度的乘积得到第一乘积,并对所有目标投影块对应的第一乘积求和,得到第一乘积和。Step S510: Calculate the product of the motion vector, overlap area and reliability corresponding to each target projection block to obtain a first product, and sum the first products corresponding to all target projection blocks to obtain a first sum of products.
本示例实施方式中,可以先针对每个目标投影块分别计算对应的运动矢量、重叠面积和可信度的乘积得到第一乘积,并将穿过该插值块的所有目标投影块对应的第一乘积求和,得到第一乘积和。In this example implementation, the first product can be obtained by calculating the product of the corresponding motion vector, overlap area and reliability for each target projection block, and the first product corresponding to all target projection blocks passing through the interpolation block is calculated. Sum the products to get the first sum of products.
步骤S520,计算各目标投影块对应的重叠面积和可信度的乘积得到第二乘积,并对所有目标投影块对应的第二乘积求和,得到第二乘积和。Step S520: Calculate the product of the overlap area corresponding to each target projection block and the reliability to obtain a second product, and sum the second products corresponding to all target projection blocks to obtain a second sum of products.
本示例实施方式中,可以先针对每个目标投影块分别计算对应的重叠面积和可信度的乘积得到第二乘积,并对应的将穿过该插值块的所有目标投影块对应的第二乘积求和,得到第二乘积和。In this example implementation, the product of the corresponding overlapping area and the reliability may be calculated for each target projection block to obtain the second product, and the corresponding second product of all target projection blocks that will pass through the interpolation block Summed to get the second sum of products.
步骤S530,计算第一乘积和与第二乘积和的商,得到插值块对应的拟合运动矢量。Step S530: Calculate the quotient of the first sum of products and the second sum of products to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,可以通过计算第一乘积和和第二场景和的商,并将计算得到商确定为该插值块对应的拟合运动矢量。In this example implementation, the quotient of the first sum of products and the second sum of the scene can be calculated, and the calculated quotient can be determined as the fitting motion vector corresponding to the interpolation block.
具体的,上述根据重叠面积和可信度对目标投影块对应的运动矢量进行拟合,得到插值块对应的拟合运动矢量的方法可以表示为:Specifically, the above-mentioned method for fitting the motion vector corresponding to the target projection block according to the overlapping area and the reliability degree to obtain the fitting motion vector corresponding to the interpolation block can be expressed as:
其中,为计算得到拟合运动矢量,A为穿过插值块的目标投影块的数量,为第i个目标投影块与插值块之间的重叠面积,为第i个目标投影块的可信度,MVi为第i个目标投影块对应的运动矢量。in, To calculate the fitted motion vector, A is the number of target projection blocks passing through the interpolation block, is the overlapping area between the ith target projection block and the interpolation block, is the reliability of the i-th target projection block, and MV i is the motion vector corresponding to the i-th target projection block.
本示例实施方式中,参照图6所示,通过基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法对插值块进行联合拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S610至S630:In this example implementation, referring to FIG. 6 , the interpolation blocks are jointly fitted by the fitting method based on area and reliability and the motion vector fitting method based on spatio-temporal neighborhoods to obtain the fitting motion corresponding to the interpolation blocks. Vector, which may include the following steps S610 to S630:
步骤S610,通过基于面积和可信度的拟合方法进行拟合,得到插值块对应的第一预设参数和第一拟合运动矢量。Step S610, performing fitting by a fitting method based on area and reliability, to obtain a first preset parameter and a first fitting motion vector corresponding to the interpolation block.
本示例实施方式中,可以先以穿过该插值块的大于等于预设阈值的目标投影块为基础,通过基于面积和可信度的拟合方式对其目标投影块进行计算,得到插值块对应的第一拟合运动矢量。同时,还可以获取计算第一拟合运动矢量过程中的第一预设参数进行后续的联合拟合。举例而言,第一预设参数可以是目标投影块的数量等,本公开对此不做特殊限定。In this example implementation, based on the target projection block that passes through the interpolation block that is greater than or equal to the preset threshold, the target projection block can be calculated by a fitting method based on area and reliability, and the corresponding interpolation block can be obtained. The first fitted motion vector of . At the same time, the first preset parameters in the process of calculating the first fitted motion vector may also be acquired for subsequent joint fitting. For example, the first preset parameter may be the number of target projection blocks, etc., which is not specifically limited in the present disclosure.
步骤S620,通过基于时空邻域的运动矢量拟合方法进行拟合,得到插值块对应的第二预设参数和第二拟合运动矢量。Step S620 , perform fitting by using a motion vector fitting method based on a spatiotemporal neighborhood to obtain a second preset parameter and a second fitted motion vector corresponding to the interpolation block.
本示例实施方式中,可以通过基于时空领域的运动矢量拟合方法对该插值块的邻近插值块对应的拟合运动矢量进行进一步拟合,得到第二拟合运动矢量。同时,还可以获取计算第二拟合运动矢量过程中的第二预设参数进行后续拟合。举例而言,第二预设参数可以是邻近插值块数量等,本公开对此不做特殊限制。In this exemplary embodiment, a second fitted motion vector may be obtained by further fitting the fitted motion vector corresponding to the adjacent interpolation block of the interpolation block by a motion vector fitting method based on the spatiotemporal domain. At the same time, the second preset parameters in the process of calculating the second fitted motion vector may also be acquired for subsequent fitting. For example, the second preset parameter may be the number of adjacent interpolation blocks, etc., which is not particularly limited in the present disclosure.
步骤S630,基于联合拟合规则、第一预设参数和第二预设参数对第一拟合运动矢量和第二拟合运动矢量进行联合拟合,得到插值块对应的拟合运动矢量。Step S630: Perform joint fitting on the first fitted motion vector and the second fitted motion vector based on the joint fitting rule, the first preset parameter and the second preset parameter, to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,由于第一拟合运动矢量可能是通过多个目标投影块对应的运动矢量进行拟合得到的,第二拟合运动矢量可能是通过多个邻近插值块对应的拟合运动矢量进行进一步拟合得到的,因此第一预设参数可以包括目标投影块数量,而第二预设参数可以包括计算第二拟合运动矢量过程中邻近插值块数量。In this example implementation, since the first fitted motion vector may be obtained by fitting motion vectors corresponding to multiple target projection blocks, the second fitted motion vector may be obtained by fitting motions corresponding to multiple adjacent interpolation blocks The vector is obtained by further fitting, so the first preset parameter may include the number of target projection blocks, and the second preset parameter may include the number of adjacent interpolation blocks in the process of calculating the second fitted motion vector.
此外,第一预设参数和第二预设参数还可以根据计算第一拟合运动矢量和第二拟合运动矢量过程中的其它参数进行设定。但需要说明的是,一般情况下,第一预设参数和第二预设参数在设定时,所选择的参数可以是计算第一拟合运动矢量过程中和计算第二拟合运动矢量过程中,相互对应的参数。In addition, the first preset parameter and the second preset parameter may also be set according to other parameters in the process of calculating the first fitted motion vector and the second fitted motion vector. However, it should be noted that, in general, when the first preset parameter and the second preset parameter are set, the selected parameters may be the process of calculating the first fitted motion vector and the process of calculating the second fitted motion vector. , the parameters corresponding to each other.
本示例实施方式中,联合拟合规则可以包括用于对第一拟合运动矢量和第二拟合运动矢量进行联合拟合的任意规则。举例而言,联合拟合规则可以包括权重规则,该权重规则可以包括第一权重和第二权重。此时,参照图7所示,基于联合拟合规则第一预设参数、和第二预设参数对第一拟合运动矢量和第二拟合运动矢量进行联合拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S710至S730:In this example embodiment, the joint fitting rule may include any rule for jointly fitting the first fitted motion vector and the second fitted motion vector. For example, the joint fitting rule may include a weighting rule, which may include a first weight and a second weight. At this time, referring to FIG. 7 , based on the first preset parameter and the second preset parameter of the joint fitting rule, joint fitting is performed on the first fitted motion vector and the second fitted motion vector to obtain the corresponding interpolation block. Fitting the motion vector may include the following steps S710 to S730:
步骤S710,计算所述第一权重与所述目标投影块的数量的乘积,得到第四乘积。Step S710: Calculate the product of the first weight and the number of the target projection blocks to obtain a fourth product.
本示例实施方式中,由于第一拟合运动矢量可能是通过多个目标投影块对应的运动矢量进行拟合得到的,因此第一预设参数可以包括计算第一拟合运动矢量过程中目标投影块的数量。此时,可以先计算第一权重和目标投影块数量的乘积,得到第四乘积。In this example implementation, since the first fitted motion vector may be obtained by fitting motion vectors corresponding to multiple target projection blocks, the first preset parameter may include the target projection in the process of calculating the first fitted motion vector number of blocks. At this time, the product of the first weight and the number of target projection blocks may be calculated first to obtain the fourth product.
步骤S720,计算第二权重与邻近插值块数量的乘积,得到第五乘积。Step S720: Calculate the product of the second weight and the number of adjacent interpolation blocks to obtain a fifth product.
本示例实施方式中,由于第二拟合运动矢量可能是通过多个邻近插值块对应的拟合运动矢量进行进一步拟合得到的,因此第二预设参数可以包括计算第二拟合运动矢量过程中邻近插值块数量。此时,可以先计算第二权重和邻近插值块数量的乘积,得到第五乘积。In this example embodiment, since the second fitted motion vector may be obtained by further fitting the fitted motion vectors corresponding to multiple adjacent interpolation blocks, the second preset parameter may include the process of calculating the second fitted motion vector The number of adjacent interpolation blocks in the . At this time, the product of the second weight and the number of adjacent interpolation blocks may be calculated first to obtain the fifth product.
步骤S730,以第四乘积为第一拟合运动矢量的权重,第五乘积为第二拟合运动矢量的权重,计算第一拟合运动矢量和第二拟合运动矢量的加权平均值,得到插值块对应的拟合运动矢量。Step S730, taking the fourth product as the weight of the first fitted motion vector and the fifth product as the weight of the second fitted motion vector, calculate the weighted average of the first fitted motion vector and the second fitted motion vector, to obtain The fitted motion vector corresponding to the interpolation block.
本示例实施方式中,可以以第四乘积为第一拟合运动矢量的权重,以第五乘积为第二拟合运动矢量的权重,计算第一拟合运动矢量和第二拟合运动矢量的加权平均值,并以计算得到的加权平均值为该插值块对应的拟合运动矢量。In this example implementation, the fourth product may be used as the weight of the first fitted motion vector, and the fifth product may be used as the weight of the second fitted motion vector to calculate the difference between the first fitted motion vector and the second fitted motion vector. The weighted average value is calculated as the fitted motion vector corresponding to the interpolation block.
具体的,上述基于联合拟合规则、第一预设参数和第二预设参数对第一拟合运动矢量和第二拟合运动矢量进行联合拟合,得到插值块对应的拟合运动矢量的方法可以表示为:Specifically, the above-mentioned joint fitting is performed on the first fitted motion vector and the second fitted motion vector based on the joint fitting rule, the first preset parameter and the second preset parameter to obtain the fitting motion vector corresponding to the interpolation block. The method can be expressed as:
MVn=(B*w1*MVn1+C*w2*MVn2)/(B*w1+C*w2) (2)MV n =(B*w 1 *MV n1 +C*w 2 *MV n2 )/(B*w 1 +C*w 2 ) (2)
其中,MVn为计算得到拟合运动矢量,B为第一预设参数,w1为第一拟合运动矢量对应的第一权重,MVn1为第一拟合运动矢量,C为第二预设参数,w2为第二拟合运动矢量对应的第二权重,MVn2为第二拟合运动矢量。Among them, MV n is the fitted motion vector obtained by calculation, B is the first preset parameter, w 1 is the first weight corresponding to the first fitted motion vector, MV n1 is the first fitted motion vector, and C is the second preset Assuming parameters, w 2 is the second weight corresponding to the second fitted motion vector, and MV n2 is the second fitted motion vector.
需要说明的是,由于不同场景下对不同拟合运动矢量的信任度不同,用户还可以根据场景需求对第一权重和第二权重进行设置;此外,还可以在对不同插值块进行拟合时,设置不同的第一权重和第二权重,本公开对权重的设置方式不做特殊限定。It should be noted that, due to the different degrees of confidence in different fitted motion vectors in different scenarios, the user can also set the first weight and the second weight according to the needs of the scenario; in addition, when fitting different interpolation blocks , to set different first weights and second weights, and the present disclosure does not specifically limit the setting method of the weights.
步骤S320,在数量小于预设阈值时,通过基于时空邻域的拟合方法进行拟合,得到插值块对应的拟合运动矢量。Step S320, when the number is less than the preset threshold, perform fitting by a fitting method based on a spatiotemporal neighborhood to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,在穿过插值块的目标投影块的数量小于预设阈值时,可以通过与该插值块位置邻近的第一插值块和时间邻近的第二插值块进行拟合,确定该插值块的拟合运动矢量。In this example implementation, when the number of target projection blocks passing through the interpolation block is less than a preset threshold, the first interpolation block that is adjacent to the interpolation block and the second interpolation block that is adjacent in time can be fitted to determine the The fitted motion vector for the interpolation block.
具体的,参照图8所示,通过基于时空邻域的拟合方法进行拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S810至S830:Specifically, referring to FIG. 8 , the fitting motion vector corresponding to the interpolation block is obtained by performing fitting based on the fitting method of the spatiotemporal neighborhood, which may include the following steps S810 to S830:
步骤S810,根据预设空间阈值获取待插值图像中与插值块的位置邻近的第一插值块。Step S810: Acquire a first interpolation block adjacent to the position of the interpolation block in the image to be interpolated according to a preset spatial threshold.
本示例实施方式中,预设空间阈值可以用于限定与插值块中心点的距离。即在所有插值块中,插值块中心点与该插值块中心点之间的距离小于预设空间阈值的插值块为第一插值块。例如,在预设空间阈值为10个像素时,在插值块中心点与该插值块中心点之间的距离小于10个像素时,该插值块则为第一插值块。In this example implementation, the preset spatial threshold may be used to limit the distance from the center point of the interpolation block. That is, among all the interpolation blocks, the interpolation block whose distance between the center point of the interpolation block and the center point of the interpolation block is smaller than the preset spatial threshold is the first interpolation block. For example, when the preset spatial threshold is 10 pixels, when the distance between the center point of the interpolation block and the center point of the interpolation block is less than 10 pixels, the interpolation block is the first interpolation block.
步骤S820,根据预设时间阈值获取与待插值图像时间相邻的视频图像中,与插值块位置相同的第二插值块。Step S820: Acquire, according to a preset time threshold, a second interpolation block with the same position as the interpolation block in the video image time-adjacent to the image to be interpolated.
本示例实施方式中,预设时间阈值可以用于限定与待插值图像之间的时间差值。即根据预设时间阈值获取与待插值图像时间相邻的视频图像,并在其中确定与该插值块位置相同的第二插值块。例如,在预设时间阈值为10时,可以获取与待插值图像时间相邻在10以内的视频图像,并将所有视频图像中与该插值块位置相同的插值块确定为第二插值块。In this exemplary embodiment, the preset time threshold may be used to define the time difference between the image to be interpolated and the image to be interpolated. That is, a video image adjacent in time to the image to be interpolated is acquired according to a preset time threshold, and a second interpolation block with the same position as the interpolation block is determined therein. For example, when the preset time threshold is 10, video images that are temporally adjacent to the image to be interpolated within 10 may be acquired, and the interpolation block in the same position as the interpolation block in all video images is determined as the second interpolation block.
步骤S830,根据第一插值块和第二插值块进行拟合,得到插值块对应的拟合运动矢量。Step S830, perform fitting according to the first interpolation block and the second interpolation block, to obtain a fitted motion vector corresponding to the interpolation block.
需要说明的是,在获取第一插值块和第二插值块后,对应于对目标投影块的筛选,还可以根据预设筛选条件对第一插值块和第二插值块进行筛选,以将不满足预设筛选条件的目标投影块删除,提高拟合的准确性。It should be noted that, after obtaining the first interpolation block and the second interpolation block, corresponding to the screening of the target projection block, the first interpolation block and the second interpolation block can also be screened according to the preset screening conditions, so as to select the The target projection blocks that meet the preset filter conditions are deleted to improve the accuracy of fitting.
本示例实施方式中,可以通过空间邻近的第一插值块和时间邻近的第二插值块确定该插值块对应的拟合运动矢量。举例而言,参照图9所示,根据第一插值块和第二插值块进行拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S910至S920:In this exemplary embodiment, the fitting motion vector corresponding to the interpolation block may be determined by using the first interpolation block that is adjacent in space and the second interpolation block that is adjacent to time. For example, referring to FIG. 9 , performing fitting according to the first interpolation block and the second interpolation block to obtain a fitted motion vector corresponding to the interpolation block may include the following steps S910 to S920:
步骤S910,获取第一插值块和第二插值块中,已经具有拟合运动矢量的目标第一插值块和目标第二插值块。Step S910: Obtain the target first interpolation block and the target second interpolation block that already have the fitted motion vector in the first interpolation block and the second interpolation block.
本示例实施方式中,可以通过对第一插值块和第二插值块对应的拟合运动矢量进行进一步拟合,因此需要获取第一插值块和第二插值块中已经得到拟合运动矢量的目标第一插值块和目标第二插值块。In this example embodiment, the fitting motion vectors corresponding to the first interpolation block and the second interpolation block can be further fitted, so it is necessary to obtain the target of the fitted motion vector in the first interpolation block and the second interpolation block. The first interpolation block and the target second interpolation block.
举例而言,在对待插值图像进行处理时,可以通过从左到右,从上到下的顺序确定每个插值块的拟合运动矢量。在这种情况下,可以通过第一插值块与该插值块的位置确定第一插值块是否已经具有拟合运动矢量,并获取已经具有拟合运动矢量的目标第一插值块;而针对视频进行处理时,可能是按照时间顺序进行处理的,此时则可以通过第二插值块与该插值块的时间先后确定第二插值块是否具有拟合运动矢量,进而获取已经具有拟合运动矢量的目标第二插值块。For example, when the image to be interpolated is processed, the fitted motion vector of each interpolation block can be determined in the order from left to right and from top to bottom. In this case, it is possible to determine whether the first interpolation block already has a fitted motion vector through the position of the first interpolation block and the interpolation block, and obtain the target first interpolation block that already has the fitted motion vector; When processing, it may be processed in time sequence. At this time, it can be determined whether the second interpolation block has a fitted motion vector through the time sequence of the second interpolation block and the interpolation block, and then the target that already has the fitted motion vector can be obtained. The second interpolation block.
步骤S920,根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及与插值块之间的距离进行拟合,得到插值块对应的拟合运动矢量。Step S920: Fitting is performed according to the fitted motion vectors corresponding to the target first interpolation block and the target second interpolation block and the distances between the interpolation blocks to obtain a fitted motion vector corresponding to the interpolation blocks.
本示例实施方式中,可以根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及各目标第一插值块和各目标第二插值块与该插值块之间的距离进行拟合,得到该插值块对应的拟合运动矢量。In this example implementation, fitting can be performed according to the fitted motion vectors corresponding to the target first interpolation block and the target second interpolation block and the distance between each target first interpolation block and each target second interpolation block and the interpolation block , to obtain the fitted motion vector corresponding to the interpolation block.
举例而言,参照图10所示,根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及与插值块之间的距离进行拟合,得到插值块对应的拟合运动矢量,可以包括以下步骤S1010至S1050:For example, referring to FIG. 10 , fitting is performed according to the fitted motion vectors corresponding to the target first interpolation block and the target second interpolation block and the distance between the interpolation blocks to obtain the fitted motion vector corresponding to the interpolation block, The following steps S1010 to S1050 may be included:
步骤S1010,获取目标第一插值块与插值块之间的空间距离,以及目标第二插值块与插值块之间的时间距离。Step S1010, obtaining the spatial distance between the target first interpolation block and the interpolation block, and the temporal distance between the target second interpolation block and the interpolation block.
本示例实施方式中,由于空间距离越远的目标第一插值块和时间距离越远的目标第二插值块对该插值块的影响越小,可以分别获取目标第一插值块与该插值块之间的空间距离和目标第二插值块与该插值块之间的时间距离。In this example implementation, since the target first interpolation block with a farther spatial distance and the target second interpolation block with a farther temporal distance have less influence on the interpolation block, the difference between the target first interpolation block and the interpolation block can be obtained respectively. and the temporal distance between the target second interpolation block and the interpolation block.
步骤S1020,对空间距离和时间距离进行归一化,以获取目标第一插值块和目标第二插值块对应的标准距离。Step S1020: Normalize the spatial distance and the temporal distance to obtain standard distances corresponding to the target first interpolation block and the target second interpolation block.
本示例实施方式中,为了便于进行计算,需要对空间距离和时间距离进行归一化,以获取目标第一插值块和目标第二插值块对应的标准距离。举例而言,可以针对空间距离和时间距离分别设置归一化规则,将其归一化的标准距离。例如,可以将空间距离为1像素确定为标准距离为1,进而根据该规则对所有目标第一插值块进行归一化;将与待插值图像在时间线上相邻的前1个和后1个视频图像定义为标准距离为1,进而将从待插值图像开始,向前第N个和向后第N个视频图像的标准距离确定为N。In this exemplary embodiment, in order to facilitate the calculation, the spatial distance and the temporal distance need to be normalized to obtain standard distances corresponding to the target first interpolation block and the target second interpolation block. For example, normalization rules can be set separately for spatial distance and temporal distance, and the standard distance to normalize them. For example, a spatial distance of 1 pixel can be determined as a standard distance of 1, and then all target first interpolation blocks can be normalized according to this rule; The standard distance of each video image is defined as 1, and then starting from the image to be interpolated, the standard distance of the Nth forward and Nth backward video images is determined as N.
步骤S1030,对所有标准距离求和,得到标准距离和。Step S1030, summing all standard distances to obtain a standard distance sum.
本示例实施方式中,在将空间距离和时间距离进行归一化后,可以对归一化之后的所有标准距离进行求和。具体的,将所有目标第一插值块和目标第二插值块对应的标准距离全部加和,得到标准距离和。In this exemplary embodiment, after the spatial distance and the temporal distance are normalized, all standard distances after the normalization can be summed. Specifically, the standard distances corresponding to all the target first interpolation blocks and the target second interpolation blocks are all added to obtain the standard distance sum.
步骤S1040,针对各目标第一插值块和各目标第二插值块,分别计算对应的拟合运动矢量和标准距离的乘积得到第三乘积,并对所有第三乘积求和,得到第三乘积和。Step S1040, for each target first interpolation block and each target second interpolation block, respectively calculate the product of the corresponding fitted motion vector and the standard distance to obtain the third product, and sum all the third products to obtain the third product sum .
本示例实施方式中,可以先针对每个目标第一插值块和每个目标第二插值块分别计算对应的拟合运动矢量和标准距离的乘积得到第三乘积,并将所有的目标第一插值块和目标第二插值块对应的第三乘积求和,得到第三乘积和。In this example implementation, the product of the corresponding fitted motion vector and the standard distance may be calculated for each target first interpolation block and each target second interpolation block to obtain a third product, and all target first interpolation blocks The third product corresponding to the block and the target second interpolation block is summed to obtain the third product sum.
步骤S1050,计算第三乘积和与标准距离和的商,得到插值块对应的拟合运动矢量。Step S1050: Calculate the quotient of the third product sum and the standard distance sum to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,可以通过计算第三乘积和和标准距离和的商,并将计算得到商确定为该插值块对应的拟合运动矢量。In this exemplary embodiment, the quotient of the third sum of products and the sum of standard distances can be calculated, and the calculated quotient can be determined as the fitting motion vector corresponding to the interpolation block.
具体的,上述根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及与插值块之间的距离进行拟合,得到插值块对应的拟合运动矢量的方法可以表示为:Specifically, the above-mentioned method for fitting the fitted motion vector corresponding to the target first interpolation block and the target second interpolation block and the distance between the interpolation block and the interpolation block, and obtaining the fitted motion vector corresponding to the interpolation block can be expressed as:
其中,MVn2为计算得到拟合运动矢量,D为该插值块对应的目标第一插值块和目标第二插值块的数量之和,为第i个目标第一插值块或目标第二插值块对应的标准距离,MVi2为第i个目标第一插值块或目标第二插值块对应的拟合运动矢量。Among them, MV n2 is the fitted motion vector obtained by calculation, D is the sum of the number of the target first interpolation block and the target second interpolation block corresponding to the interpolation block, is the standard distance corresponding to the i-th target first interpolation block or target second interpolation block, and MV i2 is the fitted motion vector corresponding to the i-th target first interpolation block or target second interpolation block.
此外,本示例实施方式中还提供了一种帧率转换方法,参照图11所示,上述的帧率转换方法可以包括以下步骤S1110至S1120:In addition, this exemplary embodiment also provides a frame rate conversion method. Referring to FIG. 11 , the above frame rate conversion method may include the following steps S1110 to S1120:
步骤S1110,获取待插值图像中各插值块对应的拟合运动矢量。Step S1110: Obtain the fitted motion vector corresponding to each interpolation block in the image to be interpolated.
其中,拟合运动矢量为通过上述运动矢量拟合方法得到的待插值图像中各插值块对应的拟合运动矢量。The fitted motion vector is a fitted motion vector corresponding to each interpolation block in the image to be interpolated obtained by the above motion vector fitting method.
步骤S1120,利用所述拟合运动矢量对所述待插值图像进行运动补偿插值。Step S1120, performing motion compensation interpolation on the image to be interpolated by using the fitted motion vector.
本示例实施方式中,可以通过上述方法得到的拟合运动矢量对待插值图像进行运动补偿插值,以实现帧率转换。In this exemplary embodiment, the image to be interpolated can be subjected to motion compensation interpolation on the fitted motion vector obtained by the above method, so as to realize frame rate conversion.
需要注意的是,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It should be noted that the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
进一步的,参考图13所示,本示例的实施方式中还提供一种运动矢量拟合装置1300,包括:数量确定模块1310和矢量拟合模块1320。其中:Further, referring to FIG. 13 , the embodiment of this example further provides a motion vector
数量确定模块1310可以用于基于运动估计和运动矢量投影确定穿过待插值图像上各插值块的目标投影块的数量。The
矢量拟合模块1320可以用于根据各数量,确定对应的目标拟合方法进行拟合,获得各插值块对应的拟合运动矢量。The vector fitting module 1320 may be configured to determine a corresponding target fitting method for fitting according to each quantity, and obtain a fitted motion vector corresponding to each interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于在所述数量大于等于预设阈值时,通过基于面积和可信度的拟合方法进行拟合,得到所述插值块对应的拟合运动矢量,和/或通过基于面积和可信度的拟合方法和基于时空邻域的运动矢量拟合方法进行联合拟合,得到所述插值块对应的拟合运动矢量;在所述数量小于所述预设阈值时,通过基于时空邻域的拟合方法进行拟合,得到所述插值块对应的拟合运动矢量。In this example embodiment, the vector fitting module 1320 may be configured to perform fitting by a fitting method based on area and reliability when the quantity is greater than or equal to a preset threshold, to obtain the fitting motion corresponding to the interpolation block vector, and/or perform joint fitting through a fitting method based on area and reliability and a motion vector fitting method based on spatiotemporal neighborhood to obtain a fitted motion vector corresponding to the interpolation block; When the preset threshold is set, a fitting method based on a spatiotemporal neighborhood is performed to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于获取与插值块对应的目标投影块,并获取各目标投影块对应的运动矢量的可信度;计算各目标投影块与插值块的重叠面积;根据重叠面积和可信度对目标投影块对应的运动矢量进行拟合,得到插值块对应的拟合运动矢量。In this example embodiment, the vector fitting module 1320 can be used to obtain target projection blocks corresponding to the interpolation blocks, and obtain the reliability of the motion vector corresponding to each target projection block; calculate the overlapping area of each target projection block and the interpolation block ; Fit the motion vector corresponding to the target projection block according to the overlapping area and reliability, and obtain the fitting motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于计算各目标投影块对应的运动矢量、重叠面积和可信度的乘积得到第一乘积,并对所有目标投影块对应的第一乘积求和,得到第一乘积和;计算各目标投影块对应的重叠面积和可信度的乘积得到第二乘积,并对所有目标投影块对应的第二乘积求和,得到第二乘积和;计算第一乘积和与第二乘积和的商,得到插值块对应的拟合运动矢量。In this example embodiment, the vector fitting module 1320 may be configured to calculate the product of the motion vector, overlap area and reliability corresponding to each target projection block to obtain the first product, and sum the first products corresponding to all target projection blocks , obtain the first sum of products; calculate the product of overlapping area and reliability corresponding to each target projection block to obtain the second product, and sum the second products corresponding to all target projection blocks to obtain the second sum of products; calculate the first The quotient of the sum of products and the second sum of products obtains the fitted motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于根据预设筛选条件对目标投影块进行筛选,将不满足预设筛选条件的目标投影块删除。In this example embodiment, the vector fitting module 1320 may be configured to filter the target projection blocks according to the preset filter conditions, and delete the target projection blocks that do not meet the preset filter conditions.
本示例实施方式中,矢量拟合模块1320可以用于根据预设空间阈值获取待插值图像中与插值块的位置邻近的第一插值块;根据预设时间阈值获取与待插值图像时间相邻的视频图像中,与插值块位置相同的第二插值块;根据第一插值块和第二插值块进行拟合,得到插值块对应的拟合运动矢量。In this exemplary embodiment, the vector fitting module 1320 may be configured to obtain the first interpolation block adjacent to the position of the interpolation block in the image to be interpolated according to the preset spatial threshold; obtain the temporally adjacent image to be interpolated according to the preset time threshold In the video image, the second interpolation block has the same position as the interpolation block; the fitting is performed according to the first interpolation block and the second interpolation block to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于获取第一插值块和第二插值块中,已经具有拟合运动矢量的目标第一插值块和目标第二插值块;根据目标第一插值块和目标第二插值块对应的拟合运动矢量以及与插值块之间的距离进行拟合,得到插值块对应的拟合运动矢量。In this example embodiment, the vector fitting module 1320 can be used to obtain the target first interpolation block and the target second interpolation block that already have the fitted motion vector in the first interpolation block and the second interpolation block; according to the target first interpolation block The fitted motion vector corresponding to the block and the target second interpolation block and the distance between the block and the interpolation block are fitted to obtain the fitted motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于获取目标第一插值块与插值块之间的空间距离,以及目标第二插值块与插值块之间的时间距离;对空间距离和时间距离进行归一化,以获取目标第一插值块和目标第二插值块对应的标准距离;对所有标准距离求和,得到标准距离和;针对各目标第一插值块和各目标第二插值块,分别计算对应的拟合运动矢量和标准距离的乘积得到第三乘积,并对所有第三乘积求和,得到第三乘积和;计算第三乘积和与标准距离和的商,得到插值块对应的拟合运动矢量。In this example embodiment, the vector fitting module 1320 can be used to obtain the spatial distance between the target first interpolation block and the interpolation block, and the temporal distance between the target second interpolation block and the interpolation block; Perform normalization to obtain the standard distances corresponding to the target first interpolation block and the target second interpolation block; sum all standard distances to obtain the standard distance sum; for each target first interpolation block and each target second interpolation block, Calculate the product of the corresponding fitted motion vector and the standard distance to obtain the third product, and sum all the third products to obtain the third product sum; calculate the quotient of the third product sum and the standard distance sum to obtain the corresponding interpolation block. Fit the motion vector.
本示例实施方式中,矢量拟合模块1320可以用于通过基于面积和可信度的拟合方法进行拟合,得到所述插值块对应的第一预设参数和第一拟合运动矢量;通过基于时空邻域的运动矢量拟合方法进行拟合,得到所述插值块对应的第二预设参数和第二拟合运动矢量;基于联合拟合规则、所述第一预设参数和所述第二预设参数对所述第一拟合运动矢量和所述第二拟合运动矢量进行联合拟合,得到所述插值块对应的拟合运动矢量。In this exemplary embodiment, the vector fitting module 1320 may be configured to perform fitting by using a fitting method based on area and reliability, to obtain the first preset parameter and the first fitting motion vector corresponding to the interpolation block; Perform fitting based on the motion vector fitting method of the spatiotemporal neighborhood to obtain the second preset parameter and the second fitted motion vector corresponding to the interpolation block; based on the joint fitting rule, the first preset parameter and the The second preset parameter performs joint fitting on the first fitted motion vector and the second fitted motion vector to obtain a fitted motion vector corresponding to the interpolation block.
本示例实施方式中,矢量拟合模块1320可以用于计算所述第一权重与所述目标投影块的数量的乘积,得到第四乘积;计算第二权重与邻近插值块数量的乘积,得到第五乘积;以第四乘积为第一拟合运动矢量的权重,第五乘积为第二拟合运动矢量的权重,计算第一拟合运动矢量和第二拟合运动矢量的加权平均值,得到插值块对应的拟合运动矢量。In this example implementation, the vector fitting module 1320 may be configured to calculate the product of the first weight and the number of target projection blocks to obtain the fourth product; calculate the product of the second weight and the number of adjacent interpolation blocks to obtain the fourth product Five products; take the fourth product as the weight of the first fitted motion vector, and the fifth product as the weight of the second fitted motion vector, calculate the weighted average of the first fitted motion vector and the second fitted motion vector, and obtain The fitted motion vector corresponding to the interpolation block.
本示例实施方式中,数量确定模块1310可以用于获取待插值图像对应的运动矢量,并对运动矢量进行投影以确定运动矢量对应的投影块在待插值图像上的位置;根据预设分割规则将待插值图像划分为至少一个插值块,并根据插值块和投影块在待插值图像上的位置,确定穿过各插值块的目标投影块的数量。In this exemplary embodiment, the
此外,在本公开的示例性实施方式中,还提供了一种帧率转换装置,参照图14所示,帧率转换装置1400包括:运动拟合模块1410和运动补偿模块1420。其中:In addition, in an exemplary embodiment of the present disclosure, a frame rate conversion apparatus is also provided. Referring to FIG. 14 , the frame
运动拟合模块1410可以用于获取待插值图像中各插值块对应的拟合运动矢量;拟合运动矢量通过上述的运动矢量拟合方法得到。The motion
运动补偿模块1420可以用于利用拟合运动矢量对待插值图像进行运动补偿插值。The
上述的运动矢量拟合装置和帧率转换装置中各模块的具体细节已经在对应的运动矢量拟合方法和帧率转换方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned motion vector fitting apparatus and frame rate conversion apparatus have been described in detail in the corresponding motion vector fitting method and frame rate conversion method, so they will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
图15示出了适于用来实现本发明实施例的电子设备的计算机系统的结构示意图。FIG. 15 shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present invention.
需要说明的是,图15示出的电子设备的计算机系统1500仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。It should be noted that the
如图15所示,计算机系统1500包括中央处理单元(CPU)1501,其可以根据存储在只读存储器(ROM)1502中的程序或者从存储部分1508加载到随机访问存储器(RAM)1503中的程序而执行各种适当的动作和处理。在RAM 1503中,还存储有系统操作所需的各种程序和数据。CPU 1501、ROM 1502以及RAM 1503通过总线1504彼此相连。输入/输出(I/O)接口1505也连接至总线1504。As shown in FIG. 15, a
以下部件连接至I/O接口1505:包括键盘、鼠标等的输入部分1506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分1507;包括硬盘等的存储部分1508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分1509。通信部分1509经由诸如因特网的网络执行通信处理。驱动器1510也根据需要连接至I/O接口1505。可拆卸介质1511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1510上,以便于从其上读出的计算机程序根据需要被安装入存储部分1508。The following components are connected to the I/O interface 1505: an
特别地,根据本发明的实施例,下文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分1509从网络上被下载和安装,和/或从可拆卸介质1511被安装。在该计算机程序被中央处理单元(CPU)1501执行时,执行本申请的系统中限定的各种功能。In particular, the processes described below with reference to the flowcharts may be implemented as computer software programs according to embodiments of the present invention. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present invention may be implemented in a software manner, or may be implemented in a hardware manner, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中的方法。例如,的电子设备可以实现如图1至图11所示的各个步骤。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by an electronic device, the electronic device enables the electronic device to implement the methods in the following embodiments. For example, the electronic device of , can implement the various steps shown in FIG. 1 to FIG. 11 .
此外,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。Furthermore, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010303943.7A CN111541854B (en) | 2020-04-17 | 2020-04-17 | Motion vector fitting, frame rate conversion method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010303943.7A CN111541854B (en) | 2020-04-17 | 2020-04-17 | Motion vector fitting, frame rate conversion method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111541854A CN111541854A (en) | 2020-08-14 |
CN111541854B true CN111541854B (en) | 2021-07-27 |
Family
ID=71979970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010303943.7A Active CN111541854B (en) | 2020-04-17 | 2020-04-17 | Motion vector fitting, frame rate conversion method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111541854B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1747678A1 (en) * | 2004-05-04 | 2007-01-31 | Qualcomm, Incorporated | Method and apparatus for motion compensated frame rate up conversion |
CN101489031A (en) * | 2009-01-16 | 2009-07-22 | 西安电子科技大学 | Adaptive frame rate up-conversion method based on motion classification |
US8477848B1 (en) * | 2008-04-22 | 2013-07-02 | Marvell International Ltd. | Picture rate conversion system architecture |
CN109756778A (en) * | 2018-12-06 | 2019-05-14 | 中国人民解放军陆军工程大学 | frame rate conversion method based on self-adaptive motion compensation |
-
2020
- 2020-04-17 CN CN202010303943.7A patent/CN111541854B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1747678A1 (en) * | 2004-05-04 | 2007-01-31 | Qualcomm, Incorporated | Method and apparatus for motion compensated frame rate up conversion |
US8477848B1 (en) * | 2008-04-22 | 2013-07-02 | Marvell International Ltd. | Picture rate conversion system architecture |
CN101489031A (en) * | 2009-01-16 | 2009-07-22 | 西安电子科技大学 | Adaptive frame rate up-conversion method based on motion classification |
CN109756778A (en) * | 2018-12-06 | 2019-05-14 | 中国人民解放军陆军工程大学 | frame rate conversion method based on self-adaptive motion compensation |
Also Published As
Publication number | Publication date |
---|---|
CN111541854A (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111193923B (en) | Video quality evaluation method and device, electronic equipment and computer storage medium | |
WO2019242416A1 (en) | Video image processing method and apparatus, computer readable storage medium and electronic device | |
JP6522595B2 (en) | Tracker auxiliary image capture | |
CN109583391B (en) | Key point detection method, device, equipment and readable medium | |
JP2011071986A (en) | Method for producing high definition video from low definition video | |
WO2022247630A1 (en) | Image processing method and apparatus, electronic device and storage medium | |
WO2022194157A1 (en) | Target tracking method and apparatus, device and medium | |
CN112907628A (en) | Video target tracking method and device, storage medium and electronic equipment | |
CN110689478A (en) | Image stylization processing method, device, electronic device and readable medium | |
CN115205305A (en) | Instance segmentation model training method, instance segmentation method and device | |
WO2024056030A1 (en) | Image depth estimation method and apparatus, electronic device and storage medium | |
JP7138680B2 (en) | Synthesis method, device and storage medium for omnidirectional parallax view | |
CN115375536A (en) | Image processing method and apparatus | |
JP2022546774A (en) | Interpolation filtering method and device, computer program and electronic device for intra prediction | |
CN117218007A (en) | Video image processing method, device, electronic equipment and storage medium | |
CN111541854B (en) | Motion vector fitting, frame rate conversion method and device and electronic equipment | |
CN112598732B (en) | Target equipment positioning method, map construction method and device, medium and equipment | |
CN115937020B (en) | Image processing method, apparatus, device, medium, and program product | |
CN118736343A (en) | Target detection model training method, target detection method, device and equipment | |
CN112001943B (en) | Motion estimation method and device, computer readable medium and electronic equipment | |
WO2023284479A1 (en) | Plane estimation method and apparatus, electronic device, and storage medium | |
CN116965042A (en) | Video interpolation processing method, video interpolation processing device and readable storage medium | |
CN112651909B (en) | Image synthesis method, device, electronic equipment and computer readable storage medium | |
CN114120423A (en) | Face image detection method and device, electronic equipment and computer readable medium | |
CN111179310B (en) | Video data processing method, device, electronic equipment and computer readable medium |
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 |