A method, device and electronic device for estimating large displacement optical flow of blurred images
Through the combination of blur-invariant feature registration and small-displacement optical flow model, the problem of low accuracy in large-displacement optical flow estimation of blurred images is solved, and high-precision large-displacement optical flow estimation of blurred images is achieved.
Patent Information
- Application Number
- CN202210502277.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-05-10
AI Technical Summary
Existing optical flow estimation technology has low accuracy when processing large-displacement optical flow estimation of blurred images. Especially in video image sequences acquired by high-mobility platforms, it is difficult for existing technologies to accurately estimate large-displacement motion information.
By acquiring two consecutive frames of blurred images, using blur-invariant background color features and blur-invariant shape features for coarse and fine registration, the preliminary optical flow vector is determined, and combined with the preset small displacement optical flow estimation model, the transformation is the large displacement optical flow vector.
The accuracy of large-displacement optical flow estimation of blurred images is improved, and the reliability of large-displacement optical flow estimation is ensured by extracting blur-invariant features and the stability of small-displacement optical flow estimation technology.
Smart Images

Figure CN114862919B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a method, device and electronic equipment for estimating large displacement optical flow of blurred images. Background Art
[0002] Optical flow estimation is a fundamental problem in image sequence processing technology in the field of computer vision research. Its research goal is to calculate the motion information of objects between adjacent frames by estimating the displacement of pixels in the image. Specifically, it estimates the corresponding matching pixels in the second frame for each pixel in the first frame. Currently, optical flow estimation technology has been widely used in image registration, motion estimation, view interpolation and other fields.
[0003] However, the existing optical flow estimation technology, whether it is large-displacement optical flow estimation or small-displacement optical flow estimation technology, processes clear images. However, the video image sequences actually acquired by high-mobility platforms are often unilaterally blurred images, or both the front and back frames are blurred images, and there is a large displacement motion. The large-displacement optical flow estimation method has low estimation accuracy due to various reasons. The small-displacement optical flow estimation method has high estimation accuracy, but it is only applicable to the small-displacement optical flow estimation problem.
[0004] Therefore, in the prior art, when obtaining large displacement optical flow estimation of blurred images, there is a problem that the estimation result has low accuracy. Summary of the invention
[0005] In view of this, it is necessary to provide a large displacement optical flow estimation method, device and electronic device for blurred images, which can obtain the large displacement estimation result of the blurred image and ensure the accuracy of the large displacement estimation result of the blurred image.
[0006] In order to achieve the above object, the present invention provides a method, device and electronic device for estimating large displacement optical flow of blurred images, the method comprising:
[0007] Get two consecutive blurred image frames;
[0008] According to the fuzzy invariant background color feature, a coarse registration displacement vector field between the previous frame image and the next frame image is determined;
[0009] Determine the fine registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant shape feature;
[0010] Determine a preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field;
[0011] Determine the small displacement optical flow vector according to a preset small displacement optical flow estimation model;
[0012] According to the preliminary optical flow vector and the small displacement optical flow vector, the large displacement optical flow vector is determined.
[0013] Preferably, determining a coarse registration displacement vector field between a previous frame image and a next frame image according to the fuzzy invariant background color feature comprises:
[0014] Obtain the base color invariant of each pixel in the previous frame image, and divide the previous frame image into multiple reference areas;
[0015] Determine a reference base color feature of a previous frame image according to base color invariants of multiple reference areas;
[0016] According to the reference background color feature of the previous frame image, the next frame image is divided into a plurality of regions to be registered, wherein the plurality of regions to be registered correspond to the plurality of reference regions one by one;
[0017] The centroids of multiple to-be-registered regions and multiple reference regions are obtained respectively to determine a coarse registration displacement vector field.
[0018] Preferably, obtaining the base color invariant of each pixel in the previous frame image includes:
[0019] The pixel mode of the previous frame image is converted into a base color invariant mode, and the base color invariant of each pixel point in the previous frame image is determined.
[0020] Preferably, determining the fine registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant shape feature comprises:
[0021] Obtain a grayscale image of the previous frame after rough registration to determine the reference edge contour;
[0022] Obtaining a grayscale image of the next frame of image after rough registration, and determining the edge contour to be registered;
[0023] Determine the fuzzy invariant shape feature according to the reference edge contour and the edge contour to be registered;
[0024] According to the fuzzy invariant shape features, the fine registration displacement vector field is determined.
[0025] Preferably, determining the fuzzy invariant shape feature according to the reference edge contour and the edge contour to be registered includes:
[0026] Determine reference corner points and corner points to be registered according to the reference edge contour and the edge contour to be registered;
[0027] According to the reference corner points and the corner points to be registered, the fuzzy invariant shape features are determined.
[0028] Preferably, determining the fuzzy invariant shape feature according to the reference corner point and the corner point to be registered includes:
[0029] According to the reference corner points and the corner points to be registered, the reference fuzzy invariant angle and the fuzzy invariant angle to be registered are obtained by screening, adding and performing tangent processing;
[0030] According to the reference fuzzy invariant angle and the fuzzy invariant angle to be registered, the reference angle bisector and the angle bisector to be registered are obtained to determine the fuzzy invariant shape feature.
[0031] Preferably, determining the small-displacement optical flow vector according to a preset small-displacement optical flow estimation model includes:
[0032] According to the preset small displacement optical flow estimation model, the initial value is set to zero, and the small displacement optical flow vector is determined through iterative calculation and estimation.
[0033] Preferably, determining the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector comprises:
[0034] The preliminary optical flow vector and the small displacement optical flow vector are added to determine the large displacement optical flow vector.
[0035] In order to achieve the above object, the present invention also provides a large displacement optical flow estimation device for blurred images, comprising:
[0036] A blurred image acquisition module is used to acquire two consecutive blurred image frames;
[0037] A coarse registration displacement vector field determination module is used to determine the coarse registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant background color feature;
[0038] A fine registration displacement vector field determination module, used to determine a fine registration displacement vector field between a previous frame image and a next frame image;
[0039] A preliminary optical flow vector determination module, used to determine a preliminary optical flow vector according to a coarse registration displacement vector field and a fine registration displacement vector field;
[0040] A small displacement optical flow vector determination module, used to determine the small displacement optical flow vector according to a preset small displacement optical flow estimation model;
[0041] The large displacement optical flow vector determination module is used to determine the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector.
[0042] In order to achieve the above-mentioned objectives, the present invention also provides an electronic device, including a processor and a memory, wherein a large displacement optical flow estimation control program for blurred images is stored in the memory, and when the large displacement optical flow estimation control program for blurred images is executed by the processor, the large displacement optical flow estimation method for blurred images as described above is implemented.
[0043] The beneficial effect of adopting the above technical solution is: the present invention provides a large displacement optical flow estimation method, device and electronic device for blurred images, the method comprising: obtaining two consecutive blurred images; determining the coarse registration displacement vector field between the previous frame image and the next frame image according to the blur-invariant background color feature; determining the fine registration displacement vector field between the previous frame image and the next frame image according to the blur-invariant shape feature; determining the preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field; determining the small displacement optical flow vector according to the preset small displacement optical flow estimation model; determining the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector. Through the above method, the blur-invariant feature of the blurred image is first extracted, and the blurred image is registered according to the blur-invariant feature to determine the preliminary optical flow vector of the blurred image; then the small displacement optical flow vector is obtained by using the existing small displacement optical flow estimation model, and finally the large displacement optical flow vector of the two blurred images is determined according to the preliminary optical flow vector and the small displacement optical flow vector. This technical solution not only realizes large-displacement optical flow estimation of blurred images by extracting blur-invariant features of blurred images, but also transforms the large-displacement problem of blurred images into a small-displacement optical flow estimation problem. Based on the stable and mature technology of small-displacement optical flow estimation and the high accuracy of estimation results, the reliability of large-displacement optical flow estimation of blurred images is ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a flow chart of an embodiment of a large displacement optical flow estimation method for blurred images provided by the present invention;
[0045] Figure 2 A schematic diagram of a flow chart of an embodiment of determining a coarse registration displacement vector field of two blurred images provided by the present invention;
[0046] Figure 3 A schematic diagram of a flow chart of an embodiment of determining a fine registration displacement vector field of two blurred images provided by the present invention;
[0047] Figure 4 A schematic diagram of the structure of a large displacement optical flow estimation device for blurred images provided by the present invention;
[0048] Figure 5 This is a structural block diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0049] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0050] Before describing the embodiments, the small displacement optical flow estimation method is first described:
[0051] Optical flow expresses the changes in the image. Since it contains information about the target's motion, it can be used by the observer to determine the target's motion. The definition of optical flow can be extended to the optical flow field, which refers to a two-dimensional instantaneous velocity field composed of all pixels in the image, in which the two-dimensional velocity vector is the projection of the three-dimensional velocity vector of the visible point in the scene on the imaging surface. Therefore, the optical flow not only contains the motion information of the observed object, but also contains rich information about the three-dimensional structure of the scene.
[0052] The small displacement optical flow estimation method calculates the motion information of objects between adjacent frames by estimating the displacement of pixels in the image. Specifically, it estimates the corresponding matching pixels of each pixel in the first frame in the second frame, thereby obtaining the motion information of objects between adjacent frames.
[0053] At present, small displacement optical flow estimation methods are mainly based on optical flow estimation of clear image frames, which cannot accurately estimate the optical flow of blurred images.
[0054] In order to solve the technical problem in the prior art that it is impossible to use small-displacement optical flow estimation technology to estimate the large displacement of a blurred image, the present invention provides a large-displacement optical flow estimation method, device and electronic device for a blurred image, which are described in detail below.
[0055] like Figure 1 As shown, Figure 1 A schematic flow chart of an embodiment of a large displacement optical flow estimation method for a blurred image provided by the present invention includes:
[0056] Step S11: Acquire two consecutive blurred image frames.
[0057] Step S12: Determine a coarse registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant background color feature.
[0058] Step S13: Determine the fine registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant shape feature.
[0059] Step S14: Determine a preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field.
[0060] Step S15: Determine the small-displacement optical flow vector according to a preset small-displacement optical flow estimation model.
[0061] Step S16: Determine the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector.
[0062] In an embodiment of the present invention, firstly, based on the blur invariant background color features and blur invariant shape features of the two blurred images, a coarse registration displacement vector field and a fine registration displacement vector field between the previous image frame and the next image frame are determined; secondly, based on the coarse registration displacement vector field and the fine registration displacement vector field, a preliminary optical flow vector is determined; that is, the blur invariant features of the two blurred images are extracted, and the two blurred images are registered to determine the preliminary optical flow vectors of the two blurred images; then, based on the preset small displacement optical flow estimation model, a small displacement optical flow vector is determined; finally, based on the preliminary optical flow vector and the small displacement optical flow vector, a large displacement optical flow vector is determined.
[0063] Through the above method, blur invariant features of two blurred images are firstly extracted, and then the two images are registered to determine the preliminary optical flow vectors of the two blurred images. Then, the two registered blurred images are processed by using the existing small displacement optical flow estimation method to determine the small displacement optical flow vector, and finally the large displacement optical flow vector of the two blurred images is determined. This not only realizes the large displacement optical flow estimation of blurred images, but also transforms the large displacement problem of blurred images into the small displacement optical flow estimation problem, thereby improving the accuracy of the large displacement estimation results of blurred images.
[0064] As a preferred embodiment, in step S12, in order to determine the coarse registration displacement vector field of two blurred images, as shown in FIG. Figure 2 As shown, Figure 2 The present invention provides a flow chart of an embodiment of determining a coarse registration displacement vector field of two blurred images. Determining a coarse registration displacement vector field of two blurred images includes:
[0065] Step S121: obtaining the base color invariant of each pixel in the previous frame image, and dividing the previous frame image into a plurality of reference areas.
[0066] Step S122: determining the reference background color feature of the previous frame image according to the background color invariants of the multiple reference areas.
[0067] Step S123: dividing the next frame of image into a plurality of regions to be registered according to the reference background color feature of the previous frame of image, wherein the plurality of regions to be registered correspond to the plurality of reference regions one by one.
[0068] Step S124: respectively obtaining the centroids of the multiple to-be-registered regions and the multiple reference regions, and determining a coarse registration displacement vector field.
[0069] It can be understood that, according to the background color invariant of the previous frame image, the previous frame image is divided into multiple reference areas, and the background color characteristics of each reference area are determined; then, since the previous frame image and the next frame image are two consecutive frames, the contents in the images are almost the same, therefore, according to the reference background color characteristics of the previous frame image, the next frame image is also divided into multiple areas to be registered; finally, according to the difference between the centroids of the multiple reference areas and their corresponding centroids of the multiple areas to be registered, the coarse registration displacement vector field of the two blurred images is determined.
[0070] Preferably, in step S121, the background color invariant has scale and fuzzy invariance, the previous frame image is divided into blocks according to the background color invariant using a clustering criterion, the area of the connected domain is calculated, and an area threshold is set for screening to extract the background color invariant of some blocks as fuzzy invariant background color features.
[0071] In order to obtain the base color invariant of each pixel in the previous frame image, the pixel mode of the previous frame image is converted to the base color invariant mode. Specifically, for any pixel in the previous frame image, the pixel is converted from the RGB mode to the base color invariant according to the base color invariant formula, where the base color invariant formula is:
[0072]
[0073] Among them, K is the base color invariant, H is the channel component in the HSL color model, It is the ratio of the G channel component to the B channel component in the RGB color mode.
[0074] Preferably, in step S121, the previous frame image is divided into a plurality of reference regions according to the base color invariant by using a fast and robust fuzzy c-means clustering algorithm.
[0075] In a specific embodiment, after dividing the previous frame image into multiple reference areas according to the background color invariant of the previous frame image, in order to avoid redundant information of the background reference objects in the image, which may cause the area of a certain reference area to be too small or too large, it is also necessary to calculate the connected domain area of each reference area and set an area threshold; only the reference areas whose connected domain area is within the area threshold range are selected.
[0076] Preferably, in step S123, the reference background color features of each reference area in the previous frame image are first extracted and marked with a rectangular frame; then, through the absolute error and matching algorithm, the area with a similar background color in the rectangular frame of the subsequent frame image and the previous frame image is searched and also marked with a rectangular frame, that is, the background color features to be registered of the subsequent frame image are determined, and based on the background color features to be registered, multiple areas to be registered of the subsequent frame image are determined.
[0077] In a specific embodiment, the matching algorithm includes a sum of absolute differences (SAD) algorithm.
[0078] Preferably, after obtaining the corresponding multiple rectangular frames in the multiple areas to be registered and the multiple reference areas, the centroid of each rectangular frame of the two frames of images is traversed and calculated, and then the coarse registration displacement vector field between the two frames of images is determined based on the displacement changes of the corresponding centroids.
[0079] As a preferred embodiment, in step S13, after obtaining the coarse registration displacement vector field, in order to improve the accuracy of the obtained displacement vector field, as shown in FIG. Figure 3 As shown, Figure 3 The present invention provides a flow chart of an embodiment of determining a fine registration displacement vector field of two blurred images. Determining the fine registration displacement vector field of two blurred images includes:
[0080] Step S131: obtaining a grayscale image of the previous frame after rough registration, and determining a reference edge contour.
[0081] Step S132: obtaining a grayscale image of the next frame of image after the rough registration, and determining the edge contour to be registered.
[0082] Step S133: Determine the fuzzy invariant shape feature according to the reference edge contour and the edge contour to be registered.
[0083] Step S134: Determine the fine registration displacement vector field according to the fuzzy invariant shape feature.
[0084] It can be understood that the two frames of images obtained after the rough registration are converted into grayscale images respectively, and the edge contours are extracted; then, the corner points on each edge contour are extracted to determine the fuzzy invariant shape features of the two frames of images; finally, the offset of the fuzzy invariant shape features is calculated to determine the fine registration displacement vector field.
[0085] Preferably, in step S131 and step S132, a dual-threshold multi-level edge (canny) operator is used to perform edge detection on the two frames of images obtained after rough alignment, and then contour tracking processing is performed through edge connection; finally, whether the contour is closed is determined by judging whether the distance between the first and last pixels of the contour is greater than 3 pixels. If the contour is closed, it is smoothed by circular convolution. If it is an open contour, the pixels are first compensated symmetrically at both ends of the contour and then smoothed.
[0086] In the case of missing or deformed contours in a unilateral blurred image, first look for large-scale contours with clear shapes. Large-scale contour lines need to converge to form a clear angle or have a transformation feature from straight to curved and then to straight. In contour images, due to motion blur, the following two situations often exist in the contours extracted at the same position before and after blurring:
[0087] First, the contour curves converge into a clear angle before blurring, and after blurring, the contour line bends and deforms to form a rounded corner. At this time, since the contour line still has a transition from flat to curved and then to flat after blurring, the curvature also has a transition from gentle to sudden increase and then gentle decrease. Therefore, the absolute value of the curvature of each point on the large-scale contour is calculated. In the continuous contour with the above curvature change characteristics, the last point in the continuous points with a small absolute value of curvature and a gentle change is selected as the first corner point. After experiencing a sudden increase in curvature, the first point in the continuous points with a gentle decrease in the absolute value of curvature is selected as the second corner point.
[0088] Second, the contour line is complete before blurring, but missing after blurring. At this time, change the threshold of the canny operator to perform edge detection again until a complete contour line appears. Subsequently, extract corner points on the newly detected contour line in the edge detection image. The method of extracting corner points is the same as in the first case.
[0089] Furthermore, in step S133, the corner points are compared one by one according to the reference edge contour and the edge contour to be registered, and the reference corner points and the corner points to be registered are determined through screening and adding processing. Then, the fuzzy invariant shape features are determined according to the reference corner points and the corner points to be registered.
[0090] Further, in step S134, according to the fuzzy invariant shape features, corner points are detected in the reference edge contour and the edge contour to be registered, and they are screened to determine the reference corner points and the corner points to be registered; tangents are made to the reference corner points and the corner points to be registered, respectively, and the angle between the tangent and its extension is regarded as the fuzzy invariant angle, the direction of the angle bisector of the fuzzy invariant angle is set as the main direction, and the scale-invariant feature transformation descriptors of the two frames of images in their main directions are extracted; according to the reference scale-invariant feature transformation descriptor and the scale-invariant feature transformation descriptor to be registered, the fine registration displacement vector field is determined.
[0091] Further, in step S14, after the coarse registration displacement vector field and the fine registration displacement vector field are acquired, the two are added together to determine a preliminary optical flow vector.
[0092] Furthermore, in step S15, after obtaining the preliminary optical flow vector, in order to further improve the accuracy of large-displacement optical flow estimation, it is also necessary to preset a small-displacement optical flow estimation model, set the initial value to zero, and estimate through iterative calculation to determine the small-displacement optical flow vector of the two frames of small-displacement blurred images obtained after alignment.
[0093] In a specific embodiment, the preset small-displacement optical flow estimation model is the Horn-Schunck optical flow estimation method.
[0094] In a specific embodiment, the preset small displacement optical flow estimation model is specifically a tv-L1 optical flow energy model, wherein the expression of the tv-L1 optical flow energy model is:
[0095]
[0096] Among them, u0 and v0 represent the small displacement optical flow vector field; dv0 and bv0 are the intermediate variables of the iteration, which are initialized to 0; assuming that N algorithm iterations are performed in total, the range of k is 0 to N; argmin represents the variable value when the objective function takes the minimum value; is the gradient symbol; I x ,I y Represents the spatial gradient of the input image frame; I t is the time gradient; λ is the parameter that affects the iterative convergence speed of the algorithm; α1 is a constant.
[0097] In a specific embodiment, the algorithm iteration includes Split Bregman algorithm iteration.
[0098] Further, in step S16, after the preliminary optical flow vector and the small displacement optical flow vector are determined, the preliminary optical flow vector and the small displacement optical flow vector are vector-added to determine the large displacement optical flow vector.
[0099] Through the above method, two consecutive blurred images are registered according to the blur-invariant background color features and blur-invariant shape features to determine the preliminary optical flow vectors of the two blurred images; then the registration error is processed using the preset small-displacement optical flow estimation model to determine the small-displacement optical flow vectors of the two blurred images; finally, the preliminary optical flow vector is superimposed with the small-displacement optical flow vector to determine the large-displacement optical flow vector. This application realizes the large-displacement optical flow estimation of blurred images by extracting the blur-invariant features of blurred images, and transforms the large-displacement problem of blurred images into the small-displacement optical flow estimation problem. Based on the stable and mature technology of small-displacement optical flow estimation and the high-precision characteristics of the estimation results, the reliability of the large-displacement optical flow estimation of blurred images is guaranteed, and the accuracy of the large-displacement optical flow estimation results of blurred images is improved.
[0100] In order to solve the above problems, the present invention also provides a large displacement optical flow estimation device for blurred images, such as Figure 4 As shown, Figure 4 The schematic diagram of the structure of the large displacement optical flow estimation device for blurred images provided by the present invention is as follows. The large displacement optical flow estimation device 400 for blurred images includes:
[0101] The blurred image acquisition module 401 is used to acquire two consecutive blurred image frames;
[0102] A coarse registration displacement vector field determination module 402 is used to determine a coarse registration displacement vector field between a previous frame image and a next frame image according to a fuzzy invariant background color feature;
[0103] A fine registration displacement vector field determination module 403, used to determine a fine registration displacement vector field between a previous frame image and a next frame image;
[0104] A preliminary optical flow vector determination module 404, configured to determine a preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field;
[0105] A small displacement optical flow vector determination module 405 is used to determine a small displacement optical flow vector according to a preliminary optical flow vector and a preset small displacement optical flow estimation model;
[0106] The large displacement optical flow vector determining module 406 is used to determine the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector.
[0107] The present invention also provides an electronic device, such as Figure 5 As shown, Figure 5 The electronic device 500 may be a computing device such as a mobile terminal, a desktop computer, a notebook, a PDA, or a server. The electronic device 500 includes a processor 501 and a memory 502, wherein the memory 502 stores a large displacement optical flow estimation control program 503 for blurred images.
[0108] In some embodiments, the memory 502 may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the memory 502 may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory 502 may also include both an internal storage unit of the computer device and an external storage device. The memory 502 is used to store application software and various types of data installed in the computer device, such as program codes for installing the computer device. The memory 502 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the large displacement optical flow estimation control program 503 of the blurred image may be executed by the processor 501, thereby realizing the gimbal image following method based on brushless motor control of each embodiment of the present invention.
[0109] In some embodiments, the processor 501 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 502, such as executing a large displacement optical flow estimation control program for blurred images.
[0110] This embodiment also provides a computer-readable storage medium, on which a large-displacement optical flow estimation control program for blurred images is stored. When the program is executed by a processor of a computer, a large-displacement optical flow estimation method for blurred images as described in any of the above technical solutions is implemented.
[0111] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0112] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A large displacement optical flow estimation method for blurred images, characterized in that: include: Get two consecutive blurred image frames; According to the fuzzy invariant background color feature, a coarse registration displacement vector field between the previous frame image and the next frame image is determined; Determining a fine registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant shape feature; Determining a preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field; Determine the small displacement optical flow vector according to a preset small displacement optical flow estimation model; A large displacement optical flow vector is determined according to the preliminary optical flow vector and the small displacement optical flow vector.
2. The large displacement optical flow estimation method for blurred images according to claim 1, characterized in that: The step of determining a coarse registration displacement vector field between a previous frame image and a next frame image according to the fuzzy invariant background color feature comprises: Obtaining a base color invariant of each pixel in the previous frame image, and dividing the previous frame image into a plurality of reference areas; Determining a reference base color feature of the previous frame image according to the base color invariants of the multiple reference areas; According to the reference background color feature of the previous frame image, the next frame image is divided into a plurality of regions to be registered, wherein the plurality of regions to be registered correspond to the plurality of reference regions one by one; The centroids of the multiple to-be-registered regions and the multiple reference regions are respectively obtained to determine the coarse registration displacement vector field.
3. The large displacement optical flow estimation method for blurred images according to claim 2, characterized in that: The obtaining of the base color invariant of each pixel in the previous frame image includes: The pixel mode of the previous frame image is converted into a base color invariant mode, and the base color invariant of each pixel point in the previous frame image is determined.
4. The large displacement optical flow estimation method for blurred images according to claim 1, characterized in that: The step of determining the fine registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant shape feature comprises: Obtaining a grayscale image of the previous frame after rough registration, and determining a reference edge contour; Obtaining a grayscale image of the next frame of image after rough registration, and determining the edge contour to be registered; Determining the fuzzy invariant shape feature according to the reference edge contour and the edge contour to be registered; The fine registration displacement vector field is determined according to the fuzzy invariant shape feature.
5. The large displacement optical flow estimation method for blurred images according to claim 4, characterized in that: The step of determining the fuzzy invariant shape feature according to the reference edge contour and the edge contour to be registered comprises: Determine reference corner points and corner points to be registered according to the reference edge contour and the edge contour to be registered; The fuzzy invariant shape feature is determined according to the reference corner point and the corner point to be registered.
6. The large displacement optical flow estimation method for blurred images according to claim 5, characterized in that: The step of determining the fuzzy invariant shape feature according to the reference corner point and the corner point to be registered comprises: According to the reference corner points and the corner points to be registered, a reference fuzzy invariant angle and a fuzzy invariant angle to be registered are obtained by screening, adding and performing tangent processing; According to the reference fuzzy invariant angle and the fuzzy invariant angle to be registered, a reference angle bisector and a bisector of the angle to be registered are obtained to determine the fuzzy invariant shape feature.
7. The large displacement optical flow estimation method for blurred images according to claim 1, characterized in that: The step of determining the small-displacement optical flow vector according to a preset small-displacement optical flow estimation model includes: According to the preset small-displacement optical flow estimation model, an initial value is set to zero, and a small-displacement optical flow vector is determined through iterative calculation and estimation.
8. The large displacement optical flow estimation method for blurred images according to claim 1, characterized in that: The step of determining a large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector comprises: The preliminary optical flow vector and the small displacement optical flow vector are added to determine a large displacement optical flow vector.
9. A large displacement optical flow estimation device for blurred images, characterized in that: include: A blurred image acquisition module is used to acquire two consecutive blurred image frames; A coarse registration displacement vector field determination module is used to determine the coarse registration displacement vector field between the previous frame image and the next frame image according to the fuzzy invariant background color feature; A fine registration displacement vector field determination module, used to determine a fine registration displacement vector field between the previous frame image and the next frame image; A preliminary optical flow vector determination module, used to determine a preliminary optical flow vector according to the coarse registration displacement vector field and the fine registration displacement vector field; A small displacement optical flow vector determination module, used to determine the small displacement optical flow vector according to a preset small displacement optical flow estimation model; The large displacement optical flow vector determination module is used to determine the large displacement optical flow vector according to the preliminary optical flow vector and the small displacement optical flow vector.
10. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores a large displacement optical flow estimation control program for blurred images, and when the large displacement optical flow estimation control program for blurred images is executed by the processor, the large displacement optical flow estimation method for blurred images as described in any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Image processing device, image processing method, image forming apparatus, and recording medium
CN101060583A
Multi-frame image super-resolution reconstruction method based on optical flow motion estimation algorithm
CN111696035A
