A flow visualization method and system for enhancing fluid motion structure

By introducing statistically relevant descriptors and structure-enhanced regularizers into complex fluid flow visualization, a structure-enhanced motion estimator is constructed, which solves the ambiguity and outlier problems affected by illumination changes and noise in fluid motion estimation, and achieves a more accurate Motion pattern capture and robustness.

CN118552583BActive Publication Date: 2024-10-11FOSHAN UNIVERSITY
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411006034.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-11
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing complex fluid flow visualization methods are difficult to accurately predict fluid motion discontinuities and capture complex motion patterns, especially under the influence of illumination changes and noise, resulting in fluid image matching ambiguity and outlier problems.

Method used

Introduce statistically relevant descriptors and structure-enhanced regularizers to build a structure-enhanced motion estimator. By enhancing the illumination robustness and matching resolvability, combined with the physical mechanism of fluid diffusion, we can capture different motion modes and suppress ripples or ripples caused by unstable disturbances. texture.

Benefits of technology

It improves the accuracy and robustness of fluid motion estimation, can effectively capture complex fluid motion patterns, including translation, rotation and divergence, reduces illumination changes and noise interference, and enhances the smoothness of optical flow signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552583B_ABST
    Figure CN118552583B_ABST
Patent Text Reader

Abstract

The present invention discloses a flow visualization method and system for fluid motion structure enhancement, the method comprising: acquiring a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images; introducing statistical correlation descriptors and structure enhancement regularizers to construct a structure enhancement motion estimator; based on the structure enhancement motion estimator, performing flow visualization processing on the first frame image and the second frame image to obtain an optical flow field between the first frame image and the second frame image. By using the present invention, different motion patterns can be captured and the accuracy of fluid motion estimation can be improved. As a flow visualization method and system for fluid motion structure enhancement, the present invention can be widely used in the field of complex fluid flow visualization technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of complex fluid flow visualization, and in particular to a flow visualization method and system for enhancing fluid motion structure. Background Art

[0002] Fluids are non-rigid, exhibit unpredictable changes, and are unable to maintain a specific shape like solids. In addition, fluids are often transparent, lack clear edges and textures, and their brightness often changes due to lighting effects.

[0003] The various motion estimation methods for complex fluid flow visualization in the related art mainly include: correlation-based optical flow methods, variation-based optical flow methods, and motion estimation methods based on convolutional neural networks (CNNs). However, the methods of the related art find the best match by searching for the maximum cross-correlation between two image blocks from a pair of images. Although correlation-based methods have made significant progress in the past few decades, the smoothing effect of the interrogation window makes it difficult for them to accurately predict the flow field in motion discontinuities. Furthermore, due to the nature of the fluid itself, the fluid itself is non-rigid and has unpredictable changes during the flow process, such as changes in temperature and external pressure in the surrounding environment, which will cause the fluid itself to expand or contract. When the fluid motion is mapped to the image plane, the corresponding pixel often changes its morphology when it flows from one image to another. At the same time, the fluid is usually transparent and contains weak textures, and different parts of the fluid usually have similar appearances, making it difficult to distinguish the differences between them. In particular, when the fluid is affected by changes in illumination, its brightness usually changes. These characteristics of the fluid will lead to ambiguity in fluid image matching, affecting the accuracy of matching. Fluid flow usually involves unpredictable ripples or textures caused by unstable disturbances or noise. The predicted flow fields often contain irregular flow vectors and outliers, which makes it difficult for flow visualization to identify the main motion structures and capture different motion patterns and cannot effectively recover more complex motion patterns. Summary of the invention

[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a flow visualization method and system with fluid motion structure enhancement, which can capture different motion modes and improve the accuracy of fluid motion estimation.

[0005] The first technical solution adopted by the present invention is: a flow visualization method for fluid motion structure enhancement, comprising the following steps:

[0006] Acquire a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images;

[0007] Statistical correlation descriptors and structure-enhanced regularizers are introduced to construct a structure-enhanced motion estimator.

[0008] Based on the structure enhanced motion estimator, flow visualization processing is performed on the first frame image and the second frame image to obtain an optical flow field between the first frame image and the second frame image.

[0009] Furthermore, the step of introducing the statistical correlation descriptor and the structure enhancement regularizer to construct the structure enhancement motion estimator specifically includes:

[0010] Based on the data items of the motion estimator, a statistical correlation descriptor is introduced to construct an enhanced data item;

[0011] Based on the regularization term of the motion estimator, a structure enhancement regularizer is introduced to construct a structure enhancement regularizer;

[0012] The enhanced data term is combined with the structure-enhanced regularizer to construct a structure-enhanced motion estimator.

[0013] Further, the expression of the data item based on the motion estimator is specifically as follows:

[0014] ;

[0015] In the above formula, Represents a data item, represents the image block position, represents the image domain, Represents a statistical correlation descriptor, which is used to extract features of image blocks. represents the unknown flow vector, Indicates The brightness of the source image block centered on is derived from the first frame image , Indicates The brightness of the target image block centered on is derived from the initial flow vector Distort the second frame After ,in , Indicates location The probability of non-occluded area at .

[0016] Furthermore, the expression of the statistical correlation descriptor is specifically as follows:

[0017]

[0018] In the above formula, represents the feature descriptor, represents a statistically relevant descriptor, Indicates A small image patch centered on represents a set of gradient operators, represents the sum of the element-wise products of two matrices, represents the size of the small image block, Indicates pixels, Indicates location The illumination similarity probability of the pixel at , represents a positive tuning parameter.

[0019] Furthermore, the expression of the structure enhancement regularizer is specifically as follows:

[0020] ;

[0021] In the above formula, represents the structure enhancement regularization term, , Respectively represent the horizontal and vertical directions of the image. represents a positive value, , represents the nonlinear part of the structure-enhancing regularizer, represents a 2D signal, , Indicates signal In Location Along Direction and The square of the directional gradient, , Respectively indicate along Direction and Directional windowed global variation, , Respectively indicate along Direction and Directional windowed intrinsic variation.

[0022] Furthermore, the model expression of the structure enhancement motion estimator is specifically as follows:

[0023] ;

[0024] In the above formula, represents the structure-enhanced motion estimation model, Represents a data item, represents the structure enhancement regularization term, Represents the weight parameter.

[0025] Further, the step of performing flow visualization processing on the first frame image and the second frame image based on the structure enhanced motion estimator to obtain an optical flow field between the first frame image and the second frame image specifically includes:

[0026] Inputting the first frame image and the second frame image into the structure enhancement motion estimator for motion estimation to obtain an initial flow field;

[0027] Based on the initial flow field, the second frame image is distorted to obtain a distorted second frame image;

[0028] Performing feature extraction processing on the first frame image and the distorted second frame image by statistically analyzing relevant descriptors to obtain features of the first frame image and features of the distorted second frame image;

[0029] Performing data item optimization processing on the features of the first frame image and the features of the distorted second frame image to obtain an optical flow field between the first frame image after data item optimization and the second frame image after data item optimization;

[0030] Regularization term optimization processing is performed on the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization to obtain the optical flow field between the first frame image and the second frame image.

[0031] Furthermore, the step of performing data item optimization processing on the first frame image features and the distorted second frame image features to obtain an optical flow field between the first frame image after data item optimization and the second frame image after data item optimization specifically includes:

[0032] Based on the enhanced data term of the structure-enhanced motion estimator, a quadratic penalty term of adding the difference between the unknown optical flow field and the regularized optical flow field is introduced to construct the data term objective equation;

[0033] The unknown optical flow field is derived through the data project equation to obtain the optimal solution of the data project equation;

[0034] According to the optimal solution of the target equation of the data project, the gradient descent method is used and the evaluation is performed in an iterative manner to obtain the optimal numerical solution;

[0035] Based on the optimal numerical solution, an inertia term is introduced into the enhanced data item of the structure enhancement motion estimator, and the data item optimization processing is performed on the features of the first frame image and the distorted second frame image features to obtain the optical flow field between the first frame image after the data item optimization and the second frame image after the data item optimization.

[0036] Further, the step of performing regularization term optimization processing on the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization to obtain the optical flow field between the first frame image and the second frame image specifically includes:

[0037] The structure enhancement regularizer based on the structure enhancement motion estimator introduces the unknown regularized optical flow field and the data term to optimize the quadratic penalty term of the optical flow field difference, and constructs the regularized item target equation;

[0038] The regularized project equation is converted into a matrix form, and the converted regularized project equation is derivatized to obtain the optimal matrix solution of the regularized project equation;

[0039] According to the optimal matrix solution of the regularized project target equation, the optimal numerical solution is obtained by iterative evaluation.

[0040] Based on the optimal numerical solution, the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization is subjected to regularization item optimization processing to obtain the optical flow field between the first frame image and the second frame image.

[0041] The second technical solution adopted by the present invention is: a flow visualization system with enhanced fluid motion structure, comprising:

[0042] An acquisition module, used for acquiring a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images;

[0043] A building module for introducing statistical correlation descriptors and structure-enhanced regularizers to construct a structure-enhanced motion estimator;

[0044] The visualization module is used to perform flow visualization processing on the first frame image and the second frame image based on the structure enhancement motion estimator to obtain the optical flow field between the first frame image and the second frame image.

[0045] The beneficial effects of the method and system of the present invention are as follows: the present invention introduces statistical correlation descriptors and structure enhancement regularizers to construct structure enhancement motion estimators, introduces statistical correlation descriptors to enhance the robustness of fluid motion estimation. The self-similarity of illumination effects between small neighborhood pixels is utilized to enhance illumination robustness by eliminating common parameters of illumination change models shared by these neighborhood pixels, introduces structure enhancement regularizers to retain prominent optical flow structures, and suppresses unnecessary ripples or textures caused by unstable disturbances or noise to generate smooth signals, and performs flow visualization processing on images based on structure enhancement motion estimators, which can capture different motion modes and improve the accuracy of fluid motion estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a flow chart of the steps of a flow visualization method for fluid motion structure enhancement of the present invention;

[0047] Figure 2 It is a structural block diagram of a flow visualization system with enhanced fluid motion structure of the present invention;

[0048] Figure 3is a schematic diagram of the result of distinguishability comparison between the original image block and the transformed feature block provided by a specific embodiment of the present invention;

[0049] Figure 4 is a schematic diagram of characteristic curves of texture and structure edges provided by a specific embodiment of the present invention;

[0050] Figure 5 It is a schematic diagram of the result of visual comparison of the distinguishability of different regularizers provided by a specific embodiment of the present invention. DETAILED DESCRIPTION

[0051] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0052] Before describing the embodiments of the present application in detail, some nouns and terms involved in the embodiments of the present application are first described. The nouns and terms involved in the embodiments of the present application are subject to the following explanations.

[0053] 1) Definition of fluid: Fluids are non-rigid, exhibit unpredictable changes, and cannot maintain a specific shape like solids. In addition, fluids are usually transparent, lack clear edges and textures, and their brightness often changes due to lighting effects.

[0054] 2) Definition of optical flow: When a moving object in a three-dimensional scene is mapped to a two-dimensional image plane or retina through a visual sensor, the movement of the observed brightness pattern is called optical flow. Optical flow is the instantaneous speed of the corresponding pixel movement when a moving object in space is mapped to the observation imaging plane. It uses the change of pixels in the time domain in an image sequence and the correlation between adjacent frames to find the corresponding relationship between the previous frame and the current frame, thereby calculating the motion information of objects between adjacent frames. Generally speaking, optical flow is caused by the movement of the foreground object itself in the scene, the movement of the camera, or the joint movement of the two.

[0055] This application involves multiple technical fields such as computer vision and image processing, optical flow estimation and optimization, structural analysis and enhancement, illumination model and processing, and fluid mechanics foundation. The cross-integration of these fields enables this method to cope with the challenges of fluid motion optical flow estimation in complex illumination scenes, including:

[0056] 1) Optical flow estimation: This is a classic problem in computer vision, which aims to determine the direction and speed of movement of each pixel in an image over time. Fluid optical flow methods for scenes with complex lighting changes need to solve this problem to achieve accurate optical flow estimation.

[0057] 2) Fluid mechanics foundation: Although this method focuses on image processing and optical flow estimation, a basic understanding of fluid motion is also indispensable. Basic knowledge of fluid mechanics helps to understand the characteristics of fluid motion more accurately, thereby designing more effective optical flow estimation methods.

[0058] 3) Computer Vision and Image Processing: The optical flow method is an important tool in the field of computer vision, which is used to estimate the motion of pixels or feature points in an image sequence. This method extracts motion information by comparing the differences between consecutive frames, making it possible to analyze the dynamic changes of complex fluid motion.

[0059] 4) Illumination model and processing: Images may contain strong shadows, high light reflections, uneven brightness and other challenges, so advanced image processing techniques are needed to preprocess and enhance images in order to more accurately estimate the optical flow of fluid motion. Image processing in complex lighting scenes requires a deep understanding of illumination changes. This includes building illumination models, analyzing the impact of illumination on images, and designing corresponding methods to eliminate or mitigate the impact of illumination changes on image processing and optical flow estimation.

[0060] 5) Structural analysis and enhancement: In the optical flow method for complex fluid motion, structural analysis aims to identify and extract the intrinsic structural features of fluid motion, while structural enhancement strengthens these features through algorithmic processing to improve the accuracy and robustness of optical flow estimation.

[0061] There are some deficiencies in the related technology, such as:

[0062] 1) Correlation-based methods find the best match by searching for the maximum cross-correlation between two image patches from a pair of images. Although correlation-based methods have made significant progress in the past few decades, the smoothing effect of the interrogation window makes it difficult for them to accurately predict flow fields in motion discontinuities. Therefore, post-processing steps such as outlier removal and interpolation are usually required to obtain more accurate and denser flow fields.

[0063] 2) Due to the nature of the fluid itself, the fluid itself is non-rigid and has unpredictable changes during the flow process. For example, changes in temperature and external pressure in the surrounding environment will cause the fluid itself to expand or contract. When the fluid motion is mapped to the image plane, the corresponding pixels often change their shape when flowing from one image to another. At the same time, the fluid is usually transparent, contains weak textures, and different parts of the fluid usually have similar appearances, making it difficult to distinguish the differences between them. In particular, when the fluid is affected by changes in lighting, its brightness will usually change. These characteristics of the fluid will cause ambiguity in fluid image matching, affecting the accuracy of the matching. Current fluid optical flow methods do not solve this problem well.

[0064] 3) Fluid flows often involve unpredictable ripples or textures caused by unstable disturbances or noise. The predicted flow fields often contain irregular flow vectors and outliers, which makes it difficult for flow visualization to identify the main motion structure and capture different motion modes. Therefore, designing regularizers to eliminate unstable disturbances and noise in complex fluid flows and capture various motion modes is another challenging problem that needs to be solved.

[0065] 4) For complex fluid flows, these CNN-based motion estimators do not outperform previous fluid motion estimators in all aspects because they rely heavily on training data and do not consider the physical mechanism of fluid diffusion and cannot effectively recover more complex motion patterns.

[0066] In view of this, this application introduces a new flow visualization tool with a structure-enhanced motion estimator to address these challenges. The tool introduces statistically relevant descriptors for data items to enhance the robustness of fluid motion estimation. The self-similarity of illumination effects between small neighborhood pixels is exploited to enhance illumination robustness by eliminating common parameters of the illumination change model shared by these neighborhood pixels. At the same time, the accuracy of fluid motion estimation is also improved by enhancing the distinguishability of data item matching. Inspired by the strong discriminability of structural texture distribution in local windows, a structure-enhanced regularizer is introduced to retain prominent optical flow structures and suppress unnecessary ripples or textures caused by unstable perturbations or noise to produce a smooth signal. In addition, thanks to the anisotropic regularizer that considers the physical mechanism of fluid diffusion, it can also effectively capture various motion modes, including translation, rotation, divergence, etc.

[0067] Reference Figure 1 The present invention provides a flow visualization method for fluid motion structure enhancement, the method comprising the following steps:

[0068] S1, acquiring a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images;

[0069] S2, introduce statistical correlation descriptors and structure enhancement regularizers to construct a structure enhancement motion estimator;

[0070] S21, based on the data item of the motion estimator, introducing a statistical correlation descriptor to construct an enhanced data item;

[0071] Specifically, we introduce statistical correlation descriptors to improve the robustness of data item matching by enhancing illumination robustness and matching discriminability. Based on the observation that the effects of illumination on pixels in a small neighborhood tend to be similar, we assume that illumination similarity is inversely proportional to the spatial distance between the neighborhood pixels and the center pixel. A small image patch centered ,in Is a neighborhood Middle The probability of illumination similarity at the position of pixels can be expressed as , , where the parameters Control the effect of spatial distance, .

[0072] By image block Location A set of statistical gradient operators controlled by the probability of illumination similarity at is defined as:

[0073]

[0074] in, Is a neighborhood The number of pixels in . and With Same size. middle The value of the position is 1, and the value of other positions is 0. , where the weights sum to zero, and It is Gradient operators. The image gradient feature extracted by the statistical gradient operator is essentially the difference between the brightness of the pixel and the brightness cluster center of the image block where the pixel is located. Further, as shown below, taking a set of statistical gradient operators of size 3×3 as an example, whose weights are controlled by the probability of brightness similarity, the expression of a set of statistical gradient operators controlled by the probability of illumination similarity is:

[0075] ;

[0076] ;

[0077] ;

[0078] ;

[0079] ;

[0080] ;

[0081] ;

[0082] ;

[0083] ;

[0084] Specifically, the statistical correlation descriptor is given by the following formula, which is expressed as:

[0085] ;

[0086] In the above formula, represents the feature descriptor, represents a statistically relevant descriptor, Indicates A small image patch centered on represents a set of gradient operators, represents the sum of the element-wise products of two matrices, represents the size of the small image block, Indicates pixels, Indicates location The illumination similarity probability of the pixel at , represents a positive tuning parameter.

[0087] No. The components are:

[0088] ;

[0089] Furthermore, the illumination robustness and matching distinguishability of image features extracted by the designed statistical correlation descriptor are elaborated.

[0090] S211, lighting robustness;

[0091] Specifically, when a fluid moves from one image frame to another, its brightness often changes due to lighting effects. Assuming a small neighborhood The brightness of the pixels in satisfies the following illumination variation model:

[0092] ;

[0093] in So The brightness of the illuminated image patch at its center. and are parameters of the illumination variation model. Although the effects of illumination vary at different locations in the image, they are often similar in small neighborhoods. Therefore, we can assume that the parameters and It is invariant in a small neighborhood. Eliminating the effect of illumination changes essentially eliminates the parameters of the illumination change model shared by neighboring pixels. and That is, the statistically relevant descriptors should be uncorrelated and independent of the parameter and ,Right now The proof expression is as follows:

[0094] ;

[0095] in , because the gradient operator The sum of the weights in is zero. Proof The expression shows that , which confirms that the designed descriptor is not affected by the variable parameters in the illumination variation model. and It reveals the reason why the designed statistical correlation descriptor can handle illumination changes.

[0096] S212, matching discrimination ability;

[0097] Specifically, since fluids are usually transparent and lack clear edges and textures, it is often difficult to distinguish the differences between different image patches. Therefore, how to improve the matching distinguishability of data items is crucial for high-precision fluid motion estimation.

[0098] Figure 3 An example is provided to reveal the strong discriminability of satisfying the relevant descriptors, where and They are the source image blocks The matching and non-matching target image patches are identified, and the brightness of these image patches is normalized to the range of 0 and 1. Figure 3 Display, when and With the same edge or texture distribution, they still have the same features extracted by the designed descriptor even under different gradient magnitudes and image brightness, e.g. ,although and have similar appearance, but due to different distribution of edges or textures in them, the extracted features and There are still relatively large differences, and the study shows that the degree of matching of different image patches to statistically relevant descriptors mainly depends on the distribution of edges and textures or existing contours, and the edge size and image brightness have little effect on the matching degree. This observation is also consistent with the fact that illumination changes have little effect on existing edges or contours of the image, which further confirms the illumination robustness of the designed descriptor. In addition, and Mismatched responses between Only appears in areas with different brightness. However, the mismatch response The descriptors designed by us appear throughout the image patch, and they penalize different edges and textures more severely. and Image patches that are very different in appearance and do not match and have similar appearance, but the designed descriptor can still find the correct match due to its strong match discrimination.

[0099] S22, based on the regularization term of the motion estimator, introduce the structure enhancement regularizer to construct the structure enhancement regularizer;

[0100] Specifically, since complex fluid flows usually include unpredictable ripples or textures caused by unstable disturbances or noise, the predicted flow field always contains irregular flow vectors and some outliers, which makes it difficult to identify the main motion structure in flow visualization. In addition, the flow edges to be recovered are usually driven by the image structure, which is prone to over-segmentation artifacts when there is texture in the image. Therefore, how to design a structure-enhanced regularizer to sharpen the mainstream structure, suppress over-segmentation artifacts, and remove unpredictable ripples or textures caused by unstable disturbances or noise is the key to solving these problems. The design of the structure-enhanced regularizer is inspired by the strong distinguishability of the structure texture distribution in the local window. Figure 4 Two blue boxes are shown, containing the texture edge and the structure edge. Figure 5 Describes how different regularizers measure the texture and structure in the blue box: , ,and ,in is a positive constant that is small enough to prevent division by 0, and , , and They are defined as:

[0101] ;

[0102] ;

[0103] ;

[0104] ;

[0105] in, So A local window or rectangular area centered on 2D signal in, and belong . Weighting function Defined as:

[0106] ;

[0107] The weights are given by and The spatial distance between Control the effect of spatial distance. and Calculate the window separately Internal and The sum of the weighted absolute spatial gradients in the direction. Figure 5 It shows that both texture and structure produce large , which has a weaker distinguishability between texture and structure. In order to enhance the distinction between structure and texture, we introduce and to capture the overall spatial variation. and Different from them, they consider whether the gradient direction in the window is consistent, because the gradient at each position can be positive or negative. Figure 4 It shows that the gradient direction of texture edges always changes frequently, but the gradient direction of structure edges is often consistent in the local window. and It is usually smaller than the window that also contains structure edges. The main reason is that structure edges provide more similar directional gradients than complex textures. Figure 5 It shows that texture produces smaller , and it confirms Strong distinguishability between texture and structure. This is not a special case, but a statistical result. To further enhance the distinguishability between texture and structure, , and , Combined with the introduction of the structure enhancement regularizer , to enhance the visually significant structure. Figure 5 It shows that the regularizer with structural enhancement is and It has stronger distinguishability. Therefore, it can be used in motion estimation to enhance prominent flow structures, suppress over-segmentation artifacts, and remove unpredictable ripples or textures caused by unstable perturbations or noise. The regularizer of the motion estimation model is defined as:

[0108] ;

[0109] when and When processed in the same manner, the present embodiment uses To express or ,Right now The present application embodiment only discusses of Direction measurement, The direction term can be handled in a similar way, along The direction term can be given by:

[0110] ;

[0111] It can be further reorganized and the The elements of . It can be rewritten as:

[0112] ;

[0113] in is a very small positive value to prevent division by 0. The reorganized terms consist of the quadratic terms and the nonlinear part Composition, of which and They are given by the following formulas:

[0114] ;

[0115] ;

[0116] The division is performed by dividing the corresponding elements, and the symbol Represents the convolution operator. In fact, by having a standard deviation Isotropic Gaussian spatial filter to convolve the gradient information, and Can be used to control the window size. The value of is only inversely proportional to the optical flow gradient of each pixel.

[0117] Similarly, along The terms for direction can be reorganized as:

[0118] ;

[0119] in and They are given by the following formulas:

[0120] ;

[0121] ;

[0122] Therefore, the regularization term can be rewritten as:

[0123] ;

[0124] In the above formula, represents the structure enhancement regularization term, , Respectively represent the horizontal and vertical directions of the image. represents a positive value, , represents the nonlinear part of the structure-enhancing regularizer, represents a 2D signal, , Indicates signal In Location Along Direction and The square of the directional gradient, , Respectively indicate along Direction and Directional windowed global variation, , Respectively indicate along Direction and Directional windowed intrinsic variation.

[0125] S23. Combine the enhanced data term with the structure enhancement regularizer to construct a structure enhancement motion estimator.

[0126] Specifically, inspired by the physics of fluid motion, a new structure-enhanced motion estimator is introduced for flow visualization, and it satisfies the following objective function:

[0127] ;

[0128] In the above formula, represents the structure-enhanced motion estimation model, Represents a data item, represents the structure enhancement regularization term, Represents the weight parameter. represents the image block position, represents the image domain, Represents a statistical correlation descriptor, which is used to extract features of image blocks. represents the unknown flow vector, Indicates The brightness of the source image block centered on is from the first frame image. , Indicates The brightness of the target image patch centered on Distort the second frame After , in , It's location The probability of a non-occluded area at , which is adjusted by occlusion-aware methods [20, 21], The statistical correlation descriptor designed by the proposed method can enhance the illumination robustness and matching distinguishability of the image features, thereby improving the accuracy of fluid motion estimation. At the same time, a structure-enhancing regularizer is introduced for the regularization term to capture different motion modes, enhance prominent motion structures, and suppress unnecessary ripples or textures caused by unstable perturbations or noise.

[0129] S3. Based on the structure enhanced motion estimator, flow visualization processing is performed on the first frame image and the second frame image to obtain an optical flow field between the first frame image and the second frame image.

[0130] Specifically, the image data processing flow of the structure enhancement motion estimation sub-sub ...

[0131] Input: A pair of consecutive images and .

[0132] initialization: , and an initial flow field .

[0133] Output: and The optical flow field between .

[0134] For twist from n = 1 to M do;

[0135] 1) Use median filtering to process the flow field Get the initial flow field ,based on from Constructing the warped image ;

[0136] 2) Extraction using statistical correlation descriptors and Feature map and ;

[0137] 3) Initialize the optical flow field .

[0138] For iterations from k=1 to N do;

[0139] 1) Adoption As flow initialization, obtain the data item optimization optical flow field through data item optimization with momentum ;

[0140] 2) Based on To update the diagonal matrix , , and ;

[0141] 3) Optimizing the optical flow field based on data items , through the regularization term optimization to obtain the regularization term optimization optical flow field .

[0142] End;

[0143] Through Outlier and occlusion handling to obtain robust flow field .

[0144] End.

[0145] S31, data item optimization;

[0146] Specifically, the data item is optimized by adding a quadratic penalty term to the data item, and the objective function is given by:

[0147] ;

[0148] The quadratic penalty term supports the output flow and regularized flow Similarly, applying a first-order Taylor expansion to the data term, the objective function can be rewritten as:

[0149] ;

[0150] The spatial gradient is used to replace , and the time gradient . and , respectively and No. The present application embodiment makes , to obtain the optimal solution, the expression of iterative solution of data item optimization is given by the following formula:

[0151] ;

[0152] in ,and is the iteration index. The momentum term is added to the data term optimization to achieve fast convergence. The expression of the data term optimization with momentum is:

[0153] ;

[0154] The parameters Used to control the convergence speed, usually set to 1.

[0155] S32, regularization term optimization;

[0156] Specifically, through and The difference between them introduces a quadratic penalty to optimize the regularization term, and the corresponding objective function is written as:

[0157] ;

[0158] It can be rewritten in matrix form:

[0159] ;

[0160] in and They are and The vector representation of . and is the Toeplitz matrix, which comes from the discrete gradient operator using forward differentiation. , , and is a diagonal matrix, whose diagonal values ​​are , , and .

[0161] The embodiment of this application , and the solution is obtained iteratively. The expression of the iterative solution of the structural enhancement regularization term optimization is:

[0162] ;

[0163] in is an identity matrix, , , and Based on the previous iteration or Calculated. is a weight matrix that determines the physical mechanism of fluid diffusion. Specifically, in areas of ripples or textures, and has relatively large values, which results in strong diffusion that smooths out ripples or textures. At the same time, in areas where motion is discontinuous, and has a relatively small value, which can prevent diffusion to maintain motion boundaries. Thanks to the advantages of these two properties, the designed structure enhancement regularizer can preserve the main motion structure while eliminating the interference of ripples or textures. Finally, the data term optimization and regularization term optimization are interactively performed in an iterative manner to obtain the optimal solution. In addition, outlier and occlusion processing is performed once per warp through a fast weighted median filter.

[0164] In summary, the improvements of the embodiments of the present application are:

[0165] 1) Introducing statistical correlation descriptors. Fluid flows often involve unpredictable ripples or textures caused by unstable disturbances or noise. The predicted flow field often contains irregular flow vectors and outliers, which makes it difficult for flow visualization to identify the main motion structure and capture different motion patterns. We propose a new flow visualization tool with structure-enhanced motion estimator to address these challenges. We introduce statistical correlation descriptors for data items to enhance the robustness of fluid motion estimation. By exploiting the self-similarity of illumination effects between small neighborhood pixels, illumination robustness is enhanced by eliminating the common parameters of the illumination change model shared by these neighborhood pixels. At the same time, the accuracy of fluid motion estimation is also improved by enhancing the distinguishability of data item matching.

[0166] 2) Structure-enhanced regularization term, inspired by the strong discriminability of the distribution of structural textures in local windows, a structure-enhanced regularizer is introduced to preserve the mainstream structure and suppress unnecessary ripples or textures caused by unstable perturbations or noise to produce a smooth signal. In addition, thanks to the anisotropic regularizer that considers the physical mechanism of fluid diffusion, it can also effectively capture various motion modes, including translation, rotation, divergence, etc. Experimental results show that our method is significantly better than other motion estimators in dealing with illumination changes in complex fluid flows and capturing different motion modes. The designed flow visualization tool successfully captures the various motion modes within Jupiter's white spots, which is crucial to understanding the physical mechanisms behind their formation and maintenance.

[0167] Compared with the prior art, the embodiments of the present application can solve the problem that the current motion estimator is difficult to adapt to fluid morphology changes, difficult to distinguish and brightness changes, solve the problem that the current motion estimator cannot highlight the main motion structure, is susceptible to outlier interference and unstable disturbances, and solve the problem that traditional fluid motion estimation methods cannot capture complex motion patterns.

[0168] Reference Figure 2 , a flow visualization system with enhanced fluid motion structure, comprising:

[0169] An acquisition module, used for acquiring a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images;

[0170] A building module for introducing statistical correlation descriptors and structure-enhanced regularizers to construct a structure-enhanced motion estimator;

[0171] The visualization module is used to perform flow visualization processing on the first frame image and the second frame image based on the structure enhancement motion estimator to obtain the optical flow field between the first frame image and the second frame image.

[0172] In addition, it should be noted that the embodiment of the present application can use time-series images for motion estimation and realize flow visualization, which plays an important role in analyzing and understanding complex flow phenomena and has wide applications in meteorology, oceanography, astronomy, experimental fluid mechanics and other fields. However, it is difficult for current motion estimators to adapt to illumination changes, eliminate unstable disturbances, and capture different motion patterns. In this paper, a new flow visualization tool is developed to solve these problems by using a structure-enhanced motion estimator composed of a data term and a regularization term. Specifically, a statistically relevant descriptor is designed for the data term to improve the accuracy of motion estimation by enhancing illumination robustness and matching distinguishability. Inspired by the strong distinguishability of the structural texture distribution in the local window, a structure-enhanced regularizer that considers the physical mechanism of fluid diffusion is introduced to capture different motion modes, enhance prominent flow structures, and eliminate unnecessary ripples or textures caused by unstable disturbances or noise. Experimental results show that our method significantly outperforms current motion estimators in dealing with illumination changes and predicting complex fluid flows, and also achieves competitive evaluation results on public fluid flow datasets. In addition, the designed flow visualization tool successfully captures different motion patterns in fluid motion, which is crucial for understanding complex flow phenomena in nature. Fluid optical flow estimation plays an important role in scientific research and engineering applications, such as estimating and tracking the movement of the atmosphere or sea ice in meteorological monitoring; detecting and warning smoke in forest fires; predicting and locating sandstorms or tornadoes in natural disasters; detecting and analyzing abnormalities of vortices around wings in flight safety; capturing and tracking different motion patterns in particle image velocimetry; registering medical images and analyzing blood flow in medical imaging; and analyzing the physical mechanisms of the formation and maintenance of Jupiter's Great Red Spot and Oval White Spot in astronomical research.

[0173] The method of the embodiment of the present application can be applied to particle image velocimetry devices, forest fire and smoke monitoring and early warning equipment, atmospheric or sea ice movement prediction systems for weather forecasts, sandstorm or tornado tracking systems for monitoring purposes, wing tip or wing surrounding vortex analysis systems for flight safety, medical image registration and blood flow analysis systems for disease diagnosis, etc.

[0174] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0175] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A flow visualization method for fluid motion structure enhancement, characterized in that: The following steps are involved: Acquire a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images; Statistical correlation descriptors and structure enhancement regularizers are introduced to construct a structure enhancement motion estimator, including: Based on the data items of the motion estimator, a statistical correlation descriptor is introduced to construct an enhanced data item; Based on the regularization term of the motion estimator, a structure enhancement regularizer is introduced to construct a structure enhancement regularization term; Combining the enhanced data term with the structure-enhanced regularization term, a structure-enhanced motion estimator is constructed; The expression of the enhanced data item is specifically as follows: ; In the above formula, represents an enhanced data item, represents the image block position, represents the image domain, Represents a statistical correlation descriptor, which is used to extract features of image blocks. represents the unknown flow vector, Indicates The brightness of the source image block centered on is derived from the first frame image , Indicates The brightness of the target image block centered on is derived from the initial flow vector Distort the second frame After ,in , Indicates location The probability of non-occluded area at ; The expression of the statistical correlation descriptor is specifically as follows: ; In the above formula, represents the feature descriptor, represents a statistically relevant descriptor, Indicates A small image patch centered on represents a set of gradient operators, represents the sum of the element-wise products of two matrices, represents the size of the small image block, Indicates pixels, Indicates location The illumination similarity probability of the pixel at , represents a positive tuning parameter; The expression of the structure enhancement regularization term is specifically as follows: ; In the above formula, represents the structure enhancement regularization term, Respectively represent the horizontal and vertical directions of the image. represents a positive value, represents the nonlinear part of the structure-enhancing regularizer, represents a 2D signal, Indicates signal In Location Along Direction and The square of the directional gradient, Respectively indicate along Direction and Directional windowed global variation, Respectively indicate along Direction and Directional windowed intrinsic variation; The model expression of the structure enhanced motion estimator is specifically as follows: ; In the above formula, represents the structure-enhanced motion estimator, represents an enhanced data item, represents the structure enhancement regularization term, represents the weight parameter; Based on the structure enhanced motion estimator, flow visualization processing is performed on the first frame image and the second frame image to obtain an optical flow field between the first frame image and the second frame image.

2. The flow visualization method for fluid motion structure enhancement according to claim 1, characterized in that: The step of performing flow visualization processing on the first frame image and the second frame image based on the structure enhanced motion estimator to obtain an optical flow field between the first frame image and the second frame image specifically includes: Inputting the first frame image and the second frame image into the structure enhancement motion estimator for motion estimation to obtain an initial flow field; Based on the initial flow field, the second frame image is distorted to obtain a distorted second frame image; Performing feature extraction processing on the first frame image and the distorted second frame image by statistically analyzing relevant descriptors to obtain features of the first frame image and features of the distorted second frame image; Performing data item optimization processing on the features of the first frame image and the features of the distorted second frame image to obtain an optical flow field between the first frame image after data item optimization and the second frame image after data item optimization; Regularization term optimization processing is performed on the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization to obtain the optical flow field between the first frame image and the second frame image.

3. A flow visualization method for fluid motion structure enhancement according to claim 2, characterized in that: The step of performing data item optimization processing on the features of the first frame image and the distorted features of the second frame image to obtain an optical flow field between the first frame image after data item optimization and the second frame image after data item optimization specifically includes: Based on the enhanced data term of the structure-enhanced motion estimator, a quadratic penalty term of adding the difference between the unknown optical flow field and the regularized optical flow field is introduced to construct the data term objective equation; The unknown optical flow field is derived through the data project equation to obtain the optimal solution of the data project equation; According to the optimal solution of the target equation of the data project, the gradient descent method is used and the evaluation is performed in an iterative manner to obtain the optimal numerical solution; Based on the optimal numerical solution, an inertia term is introduced into the enhanced data item of the structure enhancement motion estimator, and the data item optimization processing is performed on the features of the first frame image and the distorted second frame image features to obtain the optical flow field between the first frame image after the data item optimization and the second frame image after the data item optimization.

4. The flow visualization method for fluid motion structure enhancement according to claim 3, characterized in that: The step of performing regularization term optimization processing on the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization to obtain the optical flow field between the first frame image and the second frame image specifically includes: The structure enhancement regularizer based on the structure enhancement motion estimator introduces the unknown regularized optical flow field and the data term to optimize the quadratic penalty term of the optical flow field difference, and constructs the regularized item target equation; The regularized project equation is converted into a matrix form, and the converted regularized project equation is derivatized to obtain the optimal matrix solution of the regularized project equation; According to the optimal matrix solution of the regularized project target equation, the optimal numerical solution is obtained by iterative evaluation. Based on the optimal numerical solution, the optical flow field between the first frame image after data item optimization and the second frame image after data item optimization is subjected to regularization item optimization processing to obtain the optical flow field between the first frame image and the second frame image.

5. A flow visualization system with enhanced fluid motion structure, characterized in that: Includes the following modules: An acquisition module, used to acquire a first frame image and a second frame image, wherein the first frame image and the second frame image are continuous images; Building blocks for introducing statistical correlation descriptors and structure-enhanced regularizers to build structure-enhanced motion estimators, including: Based on the data items of the motion estimator, a statistical correlation descriptor is introduced to construct an enhanced data item; Based on the regularization term of the motion estimator, a structure enhancement regularizer is introduced to construct a structure enhancement regularization term; Combining the enhanced data term with the structure-enhanced regularization term, a structure-enhanced motion estimator is constructed; The expression of the enhanced data item is specifically as follows: ; In the above formula, represents an enhanced data item, represents the image block position, represents the image domain, Represents a statistical correlation descriptor, which is used to extract features of image blocks. represents the unknown flow vector, Indicates The brightness of the source image block centered on is derived from the first frame image , Indicates The brightness of the target image block centered on is derived from the initial flow vector Distort the second frame After ,in , indicating the location The probability of non-occluded area at ; The expression of the statistical correlation descriptor is specifically as follows: ; In the above formula, represents the feature descriptor, represents a statistically relevant descriptor, Indicates A small image patch centered on represents a set of gradient operators, represents the sum of the element-wise products of two matrices, represents the size of the small image block, Indicates pixels, Indicates location The illumination similarity probability of the pixel at , represents a positive tuning parameter; The expression of the structure enhancement regularization term is specifically as follows: ; In the above formula, represents the structure enhancement regularization term, Respectively represent the horizontal and vertical directions of the image. represents a positive value, represents the nonlinear part of the structure-enhancing regularizer, represents a 2D signal, Indicates signal In Location Along Direction and The square of the directional gradient, Respectively indicate along Direction and Directional windowed global variation, Respectively indicate along Direction and Directional windowed intrinsic variation; The model expression of the structure enhanced motion estimator is specifically as follows: ; In the above formula, represents the structure-enhanced motion estimator, represents an enhanced data item, represents the structure enhancement regularization term, represents the weight parameter; The visualization module is used to perform flow visualization processing on the first frame image and the second frame image based on the structure enhancement motion estimator to obtain the optical flow field between the first frame image and the second frame image.

Citation Information

Patent Citations

  • Compressed video quality enhancement method based on two-stage multi-frame collaboration

    CN113055674A

  • Natural image deblurring method based on structure extraction

    CN114862714A

  • Indoor wall motion estimation method and device based on adaptive regularization optical flow model

    CN115861172A

  • Fluid optical flow image velocity measurement method and system based on Helmholtz decomposition

    CN115908478A

  • Adaptive fractional order TV-L1 optical flow estimation method based on ant lion optimization

    CN117333517A