An image processing system and method suitable for observing flocculation and sedimentation of fine-grained sediment

By designing an image processing system for fine-grained sediment flocculation and settlement observation, the existing technology problems of large error and long time-consuming measurement of fine-grained sediment have been solved, and efficient image processing and parameter measurement of fine-grained sediment flocs have been achieved. It is suitable for sediments in a larger particle size range, improving the processing rate and data output efficiency.

CN118334025BActive Publication Date: 2024-08-30HOHAI UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410756869.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-30
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The existing fine-grained sediment measurement methods have problems such as large errors, long time consumption, and high cost. They can only measure the sedimentation velocity alone or simultaneously measure the particle size and sedimentation velocity but suffer from interference. It is difficult to be applied to the flocculation state of fine-grained sediment. Measurement.

Method used

An image processing system suitable for fine-grained sediment flocculation and settlement observation is designed, including an initialization module, a data loading module, an image data processing module and an image information output module. The loaded fine-grained sediment is processed through the image data processing module. The floc images are converted, filtered and analyzed to achieve accurate measurement of parameters such as particle size and settling velocity.

Benefits of technology

It realizes the direct processing of fine-grained sediment floc images, is suitable for sediments in a larger particle size range, has fast processing speed, high precision and compatibility, simplifies operations, is suitable for various researchers, and significantly improves Improved image processing speed and data output efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334025B
    Figure CN118334025B
Patent Text Reader

Abstract

The present invention discloses an image processing system and method suitable for flocculation and sedimentation observation of fine-grained sediment flocs, and relates to the technical field of fine-grained sediment measurement. The system includes: an initialization module, which is used to turn on the system and put the system into an initialization state; a data loading module, which is used to load the collected images of fine-grained sediment flocs into the system, convert images of different formats into a standard format that can be processed by the system, and perform integrity and accuracy verification on the loaded images; an image data processing module, which is used to process and analyze the images of fine-grained sediment flocs loaded into the system; an image information output module, which is used to output and store the processed and analyzed data in the form of tables and / or images, and generate electronic documents. The system and method of the present invention have no contact with the fine-grained sediment flocs during the processing process, do not affect their physical and chemical properties, and are suitable for sediments with a larger particle size range; the processing speed is fast, and images can be processed quickly in batches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of fine-grained sediment measurement, and in particular to an image processing system and method suitable for observing flocculation and sedimentation of fine-grained sediment flocs. Background Art

[0002] The particle size and settling velocity of fine-grained sediment flocs are the basis for studying sediment movement and the evolution of rivers, coasts, and waterways. At present, the methods used to measure particle size include screening, sedimentation, resistance, microscopy, and laser particle size analyzer, and the settling velocity is measured using particle imaging technology, laser diffraction technology, and sound wave scattering technology. However, the particle size ranges applicable to the above methods are different. The distribution range of sediment particle size in natural water bodies is relatively wide. When analyzing sediment particle size, multiple methods need to be used in combination, and there are large errors and it takes too much time.

[0003] The various existing measurement methods have different defects. For example, the traditional screening method and laser particle size analyzer method are not applicable to the measurement of fine-grained sediment in a flocculated state; the screening method is simple to operate and is suitable for measuring coarser sediment particles, but the error is large for finer sediment; the laser particle size analyzer method is relatively accurate, but it is expensive and easily destroys fine-grained sediment flocs; the acoustic wave scattering technology can only measure the settling velocity alone; the laser diffraction technology can simultaneously measure the particle size and settling velocity, but there is interference. Summary of the invention

[0004] In view of the problems existing in existing measurement methods, such as large errors, long time consumption, high cost, and only being able to measure the settling velocity alone or simultaneously measuring the particle size and settling velocity but with interference, the present invention proposes an image processing system and method suitable for flocculation and sedimentation observation of fine-grained sediment flocs, which performs image processing and analysis on fine-grained sediment flocs in water samples and is suitable for sediments with a larger particle size range.

[0005] In order to achieve the above object, the present invention is implemented by the following technical solutions:

[0006] An image processing system for observing flocculation and sedimentation of fine-grained sediment flocculations, characterized in that the system comprises:

[0007] The initialization module is used to turn on the system and put the system into an initialization state;

[0008] The data loading module is used to load the collected images of fine-grained sediment flocs into the system, convert images of different formats into a standard format that can be processed by the system, and verify the integrity and accuracy of the loaded images;

[0009] An image data processing module for processing and analyzing images of fine-grained sediment flocs loaded into the system;

[0010] The image information output module is used to output and store the processed and analyzed data in the form of tables and / or images, and generate electronic documents.

[0011] As a preferred solution of the present invention, the initialization module starts the system software through the start button on the user interface, loads the initialization file to put the system into the initialization state, performs self-checks on the hardware and software environment to ensure that all components are working properly, and records the system startup time, operator information and startup status for subsequent tracing.

[0012] As a preferred solution of the present invention, the image data processing module includes:

[0013] A data conversion module is used to convert the image of the fine-grained sediment flocs loaded into the system into a grayscale image, convert it into a binary image after removing the background light, and determine whether it is a clear image through a clarity threshold;

[0014] Data filtering module, used to remove noise, Gaussian filtering and blur image from binary images;

[0015] The post-processing analysis module is used to perform particle size analysis, median particle size analysis, flow velocity analysis, flow velocity standard deviation analysis, flow velocity variance analysis, flow velocity skewness and peak analysis, Reynolds stress analysis, floc morphology analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis and effective density analysis on fine-grained sediment flocs based on the filtered binary image.

[0016] As a preferred solution of the present invention, the implementation method of the data conversion module specifically includes:

[0017] Read and invert the image loaded into the system and convert it into a grayscale image;

[0018] Divide the grayscale image into small blocks, calculate the minimum grayscale value in each small block as the background, and perform background correction on the image;

[0019] Get the maximum pixel value in the image and enhance the contrast of the image;

[0020] Calculate the gray value threshold in the image based on the maximum inter-class variance algorithm and convert the gray image into a binary image;

[0021] The clarity of the binary image is calculated and compared with a preset clarity threshold. If the clarity is higher than the clarity threshold, the binary image is determined to be clear; otherwise, the binary image is determined to be blurred and is considered to be removed in subsequent processing.

[0022] As a preferred solution of the present invention, the gray value threshold in the image is calculated based on the maximum inter-class variance algorithm to convert the gray image into a binary image. The method specifically includes:

[0023] Treat any image as an M×N matrix, where each value is a pixel value and the target and background segmentation threshold is denoted as optimal;

[0024] The ratio of the number of pixels belonging to the target to the entire image is recorded as ω0, and the average grayscale of the target is recorded as a0;

[0025] The ratio of background pixels to the entire image is denoted as ω1, and the average grayscale of the target is denoted as a1;

[0026] The total average grayscale of the image is recorded as a, and the inter-class variance is recorded as maximum;

[0027] The number of pixels in the image whose grayscale value is less than the optimal segmentation threshold is recorded as N0, and the number of pixels whose grayscale value is greater than the optimal segmentation threshold is recorded as N1;

[0028] Then: ω0=N0 / (M×N), ω1=N1 / (M×N);

[0029] N0+N1=M×N,ω0+ω1=1;

[0030] a=ω0×a0+ω1×a1;

[0031] maximum=ω0×(a0-a)+ω1×(a1-a);

[0032] The equivalent formula is: maximun = ω0 × ω1 × (a0-a1);

[0033] The optimal segmentation threshold that maximizes the inter-class variance is found by traversal method, which is the gray value threshold.

[0034] After the grayscale value threshold is obtained, the grayscale values ​​of pixels whose grayscale values ​​are greater than the grayscale value threshold are set to 1, and the grayscale values ​​of pixels whose grayscale values ​​are less than the grayscale value threshold are set to 0, thereby obtaining a binary image.

[0035] As a preferred solution of the present invention, the data filtering module performs noise removal, Gaussian filtering and blur image removal on the binary image, and the method specifically includes:

[0036] Remove the noise whose area is smaller than the area threshold in the binary image;

[0037] Connect pixels separated by a single pixel, perform dilation and erosion operations on the image, fill holes in the image, remove incomplete objects on the image boundary, and again remove noise in the binary image whose area is less than the area threshold;

[0038] Calculate the connected areas in the binary image and perform Gaussian filtering on the connected areas;

[0039] The Gaussian filtering process includes: determining the size of the Gaussian filter convolution kernel and setting the parameters of the Gaussian filter, including the standard deviation and mean in the x and y directions;

[0040] The Gaussian filter is normalized to obtain a weight matrix, and the normalized Gaussian filter is applied to the image to remove Gaussian noise;

[0041] Traversing the connected areas in the Gaussian filtered image and calculating the clarity, and comparing it with a preset key clarity threshold. If the clarity is greater than the key clarity threshold, the connected area is retained as a clear image part, otherwise it is regarded as a blurred image part and removed;

[0042] Recalculate the connected areas remaining in the image after the blurred image removal. If there are connected areas that do not move, they are considered as background for further removal.

[0043] As a preferred solution of the present invention, the post-processing analysis module calculates the data of each connected area, including the coordinates, area, major axis length, minor axis length, perimeter, solidity and center of mass coordinates of the connected area, and further processes the data of the connected area as fine-grained sediment floc data in image processing for analysis.

[0044] As a preferred embodiment of the present invention, further processing of the fine-grained sand floc data includes calculating the settling rate W of the fine-grained sand floc s , the calculation methods include:

[0045] Segment the binary image after block division, and move each small block of the image by a specified distance in any direction;

[0046] The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated;

[0047] The distance that minimizes the difference in pixel values ​​is taken as the movement displacement of the fine-grained sediment flocs in the block area. l ;

[0048] Calculate motion displacement l of y Directional component, i.e. the vertical movement distance of fine-grained sediment flocs l y ;

[0049] The vertical movement distance l y Divided by the shooting interval between the moved image and the adjacent velocity measurement image, the sedimentation rate W of the fine-grained sediment flocs is obtained. s .

[0050] As a preferred solution of the present invention, the further processing of the fine-grained sediment floc data and the subsequent analysis include:

[0051] Floc morphology analysis: The morphological characteristics of flocs are studied through the data of fine-grained sediment flocs;

[0052] Floc centroid analysis: The centroid coordinates of the connected area are used as the centroid coordinates of the floc to analyze the spatial distribution of the floc;

[0053] Floc area analysis: The area of ​​the connected region is used as the floc area for statistical analysis;

[0054] Sediment settling velocity analysis: Calculate the settling velocity W of fine-grained sediment flocs s , analyze the sedimentation behavior of sediment;

[0055] Particle size analysis: The equivalent diameter is calculated by the area of ​​the connected region, and the equivalent diameters of all fine-grained sediment flocs are counted and the average equivalent diameter is calculated as the average particle size;

[0056] The volume of each fine-grained sediment floc was calculated using the equivalent diameter, and the volume of each fine-grained sediment floc was divided by the sum of the volumes of all fine-grained sediment flocs to obtain the volume fraction of each fine-grained sediment floc.

[0057] With the interval of fine-grained sand flocs of equal length as the horizontal axis and the sum of the volume fractions of fine-grained sand flocs in the interval as the vertical axis, a histogram of the sum of the volume fractions of fine-grained sand flocs in each diameter interval was drawn for analysis;

[0058] Median particle size analysis: With the diameter of fine-grained sand flocs as the horizontal coordinate and the sum of the volume fractions of fine-grained sand flocs smaller than the diameter as the vertical coordinate, the cumulative frequency curve of fine-grained sand flocs is drawn. The horizontal coordinate diameter corresponding to the cumulative frequency of fine-grained sand flocs of 50% is read from the cumulative frequency curve as the median particle size of the sand particles for analysis;

[0059] Floc fractal dimension analysis: Calculate the fractal dimension of the floc, the formula is:

[0060] ;

[0061] In the formula, W s is the settling rate of fine-grained sediment flocs; α , βis the coefficient that depends on the floc shape; is the density of clay particles, is the density of water; is the acceleration due to gravity; is the dynamic viscosity of the fluid; D p is the diameter of the primary particle; nf is the fractal dimension of the floc; D is the floc diameter; Re is the sand Reynolds number, where , is the kinematic viscosity of the fluid;

[0062] Effective density analysis: calculate the volume fraction and density of flocs and perform effective density analysis;

[0063] Flow rate analysis: Segment the binary image after segmentation, and move each small image block by a specified distance in any direction;

[0064] The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated;

[0065] The distance that minimizes the difference in pixel values ​​is taken as the water flow displacement in the block area. L ;

[0066] Calculate water flow displacement L of x Direction and y Directional component, which is the horizontal distance of the water flow L x and vertical movement distance L y ;

[0067] Horizontal distance of water flow L x and vertical movement distance L y Divide by the shooting interval between the moved image and the adjacent velocity measurement image to get the horizontal flow velocity of the water flow in the area V x and vertical velocity V y ;

[0068] Calculate the flow velocity using vector synthesis method V And direction: V =( V x 2 + V y 2 ) 0.5 ,tan θ =V x / V y , θ is the angle between the flow velocity direction and the horizontal direction;

[0069] The moment i The water flow velocity and direction calculated from the captured image are used as a set of flow velocity data Compile a data group and filter the data according to the deviation degree of each flow rate data: calculate the average flow rate and flow rate standard deviation σ , calculate each flow rate data and Average flow rate The degree of deviation will be different from the average flow rate The velocity data with a deviation exceeding two times the standard deviation is defined as an error value, that is, hour, is an error value; replace all the error values ​​with linear interpolation to obtain a new set of data, and repeat the process until no new error values ​​can be obtained;

[0070] Draw velocity distribution vector diagram for analysis;

[0071] Flow rate standard deviation analysis: Get the average flow rate through the flow rate data and the flow rate standard deviation σ to assess the flow rate variation;

[0072] Flow rate variance analysis: Analyze the distribution characteristics of flow rate by obtaining flow rate variance through flow rate data;

[0073] Reynolds stress analysis: compile the horizontal and vertical flow velocities of the same area in different images into a data group, calculate the average values ​​of the horizontal and vertical flow velocities in the data group, and calculate the difference between each flow velocity value and the average value as the horizontal pulsating flow velocity and the vertical pulsating flow velocity;

[0074] The horizontal flow velocity and vertical flow velocity between two adjacent images are subtracted to obtain the flow velocity change value;

[0075] Divide the velocity change value by the interval between two images to get the horizontal velocity change rate. and vertical velocity change rate data;

[0076] Calculation of Reynolds stresses , the formula is:

[0077] ;

[0078] Velocity skewness and kurtosis analysis: The velocity distribution skewness is calculated using a moment estimation method as follows:

[0079] Calculate the sample third-order central moment m3:

[0080] ;

[0081] In the formula, represents the different moments when the image was taken, For the corresponding time The water flow rate, is the average water flow velocity, is the number of data;

[0082] Calculate the sample second-order central moment m2:

[0083] ;

[0084] Calculate the sample skewness coefficient SK:

[0085] ;

[0086] When SK < 0, the velocity distribution is right-biased; when SK > 0, the velocity distribution is left-biased;

[0087] The kurtosis of the velocity distribution is calculated using a method based on moment estimation, as follows:

[0088] Calculate the sample fourth-order central moment m4:

[0089] ;

[0090] Calculate the sample kurtosis K:

[0091] ;

[0092] When K>0, the velocity distribution peak is steep; when K=0, the velocity distribution peak obeys the normal distribution; when K<0, the velocity distribution peak is flat.

[0093] A processing method applicable to a fine-grained sediment floc flocculation and sedimentation observation image processing system, the method comprising:

[0094] Start the system software by clicking the start button on the user interface, and load the initialization file to put the system into the initialization state;

[0095] Perform self-checks on the hardware and software environment to ensure that all components are functioning properly;

[0096] Load the collected images of fine-grained sediment flocs into the system through USB, network or other interfaces, convert images in different formats into a standard format that the system can process, and verify the integrity and accuracy of the loaded images;

[0097] The image of the fine-grained sediment flocs loaded into the system is subjected to data conversion, data filtering and processing analysis. The data conversion specifically includes converting the image into a grayscale image, converting the image into a binary image after removing the background light, and determining whether it is a clear image by a clarity threshold; the data filtering specifically includes removing noise, Gaussian filtering and blurring the binary image; the processing analysis includes particle size analysis, median particle size analysis, flow velocity analysis, flow velocity standard deviation analysis, flow velocity variance analysis, flow velocity skewness and peak state analysis, Reynolds stress analysis, floc morphology analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis and effective density analysis;

[0098] The processed and analyzed data are output and stored in the form of tables and / or images, and electronic documents are generated.

[0099] The beneficial effects of the present invention are as follows: direct processing of fine-grained sediment floc images is achieved, and the image can be applied to various versions of high-speed cameras on the market, with strong compatibility; the grayscale value threshold of the image is determined by the Otsu method, so that the identification of fine-grained sediment flocs is more accurate; image processing and analysis of fine-grained sediment flocs in water samples are performed, and no contact is made with the fine-grained sediment flocs during the processing process, which does not affect the physical and chemical properties of the fine-grained sediment flocs and is suitable for sediments with a larger particle size range; the processing speed is fast, and images can be processed quickly in batches, while PIV technology is combined to greatly improve the image processing rate; various turbulence characteristic values ​​and fine-grained sediment floc characteristic values ​​are directly output, which greatly reduces the time researchers spend on data post-processing and analysis; the operation is simple, easy to use, and suitable for researchers and engineers at all levels. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0101] Figure 1 It is a system modular structure diagram of the present invention;

[0102] Figure 2 is a processing flow chart of an image data processing module in an embodiment of the present invention;

[0103] Figure 3 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0104] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0105] Image technologies such as PIV (particle image velocimetry) and PTV (particle tracking velocimetry) have been gradually applied to flow field measurement. When using image technology to measure the particle size and sedimentation velocity of fine-grained sand flocs, an image acquisition device must be used to acquire the sedimentation image of the fine-grained sand flocs, and the image is processed after acquisition. Therefore, embodiment 1 of the present invention provides an image processing system suitable for flocculation and sedimentation observation of fine-grained sand flocs, such as Figure 1 , Figure 2 As shown, the system mainly includes an initialization module, a data loading module, an image data processing module and an image information output module.

[0106] The initialization module is used to turn on the system and put the system into the initialization state;

[0107] Specifically, the initialization module starts the system software through the start button on the user interface, loads the initialization file to put the system into the initialization state, performs self-checks on the hardware and software environment to ensure that all components are working properly, and records the system startup time, operator information and startup status for subsequent tracing.

[0108] The data loading module is used to load the collected images of fine-grained sediment flocs into the system through USB, network, other interfaces, etc., convert images of different formats into a standard format that can be processed by the system, and verify the integrity and accuracy of the loaded images;

[0109] The image data processing module is used to process and analyze the images of the fine-grained sediment flocs loaded into the system;

[0110] In one embodiment, the image data processing module includes a data conversion module, a data filtering module and a post-analysis processing module.

[0111] The data conversion module is used to convert the image of the fine-grained sediment flocs loaded into the system into a grayscale image, and then convert it into a binary image after removing the background light, and determine whether it is a clear image through a clarity threshold;

[0112] Specifically, the implementation method of the data conversion module includes:

[0113] Read and invert the image loaded into the system and convert it into a grayscale image;

[0114] Divide the grayscale image into small blocks, calculate the minimum grayscale value in each small block as the background, and perform background correction on the image;

[0115] Get the maximum pixel value in the image and enhance the contrast of the image;

[0116] Calculate the gray value threshold in the image based on the maximum inter-class variance algorithm (Otsu algorithm) and convert the gray image into a binary image;

[0117] The principle of the Otsu algorithm is to use a threshold to segment an image into two parts, the target and the background, and when the inter-class variance is the largest, the probability of segmentation error is the smallest. Furthermore, based on the maximum inter-class variance algorithm, the gray value threshold in the image is calculated, and the method of converting the gray image into a binary image specifically includes:

[0118] For a specific image, it is regarded as an M×N matrix, each value is a pixel value, and the segmentation threshold of the target and background is recorded as optimal;

[0119] The ratio of the number of pixels belonging to the target to the entire image is recorded as ω0, and the average grayscale of the target is recorded as μ0;

[0120] The ratio of background pixels to the entire image is denoted as ω1, and the average grayscale of the target is denoted as μ1;

[0121] The total average grayscale of the image is recorded as μ, and the inter-class variance is recorded as maximum;

[0122] The number of pixels in the image whose grayscale value is less than the optimal segmentation threshold is recorded as N0, and the number of pixels whose grayscale value is greater than the optimal segmentation threshold is recorded as N1;

[0123] Then: ω0=N0 / (M×N), ω1=N1 / (M×N);

[0124] N0+N1=M×N,ω0+ω1=1;

[0125] a=ω0×a0+ω1×a1;

[0126] maximum=ω0×(a0-a)+ω1×(a1-a);

[0127] The equivalent formula is: maximun = ω0 × ω1 × (a0-a1);

[0128] The optimal segmentation threshold that maximizes the inter-class variance is found by traversal method, which is the gray value threshold.

[0129] After the grayscale value threshold is obtained, the grayscale values ​​of pixels whose grayscale values ​​are greater than the grayscale value threshold are set to 1, and the grayscale values ​​of pixels whose grayscale values ​​are less than the grayscale value threshold are set to 0, thereby obtaining a binary image.

[0130] The clarity of the binary image is calculated and compared with the preset clarity threshold. If the clarity is higher than the clarity threshold, the binary image is judged to be clear; otherwise, the binary image is judged to be blurred and is considered to be removed in subsequent processing.

[0131] The data filtering module is used to remove noise, Gaussian filtering and blur image from binary images;

[0132] In one embodiment, the implementation method of the data filtering module specifically includes:

[0133] After obtaining the binary image, remove the noise in the binary image whose area is smaller than the area threshold; preferably, the area threshold is set to 6 pixels, which can be adjusted according to actual conditions;

[0134] Connect pixels separated by a single pixel, perform dilation and erosion operations on the image, fill holes in the image, remove incomplete objects on the image boundary, and again remove noise in the binary image whose area is less than the area threshold;

[0135] Calculate the connected areas in the binary image and perform Gaussian filtering on the connected areas;

[0136] The Gaussian filtering process includes: determining the size of the Gaussian filter convolution kernel, and setting the parameters of the Gaussian filter, including the standard deviation and mean in the x and y directions; preferably, the standard deviation in the x and y directions is set to 2, and the mean is set to 0;

[0137] The Gaussian filter is normalized to obtain a weight matrix, and the normalized Gaussian filter is applied to the image to remove Gaussian noise;

[0138] Traverse the connected areas in the Gaussian filtered image and calculate the clarity, and compare it with the preset key clarity threshold. If the clarity is greater than the key clarity threshold, the connected area is retained as a clear image part, otherwise it is regarded as a blurred image part and removed;

[0139] Recalculate the connected areas remaining in the image after the blurred image removal. If there are connected areas that do not move, they are considered as background for further removal.

[0140] Post-processing analysis module, used for particle size analysis, median particle size analysis, flow velocity analysis, flow velocity standard deviation analysis, flow velocity variance analysis, flow velocity skewness and peak analysis, Reynolds stress analysis, floc morphology analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis, effective density analysis, etc.

[0141] The post-processing analysis module calculates the data of each connected area, including the coordinates, area, major axis length, minor axis length, perimeter, solidity and centroid coordinates of the connected area, and further processes the data of the connected area as fine-grained sediment floc data in image processing for analysis.

[0142] In one embodiment, further processing of the fine-grained sediment floc data includes calculating the settling rate W of the fine-grained sediment floc s , the calculation methods include:

[0143] Segment the binary image after block division, and move each small block of the image by a specified distance in any direction;

[0144] The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated;

[0145] The distance that minimizes the difference in pixel values ​​is taken as the movement displacement of the fine-grained sediment flocs in the block area. l ;

[0146] Calculate motion displacement l of y Directional component, i.e. the vertical movement distance of fine-grained sediment flocs l y ;

[0147] Vertical movement distance l y Divided by the shooting interval between the moved image and the adjacent velocity measurement image, the sedimentation rate W of the fine-grained sediment flocs is obtained. s .

[0148] Furthermore, the fine-grained sediment floc data were further processed and analyzed, including:

[0149] Floc morphology analysis: The morphological characteristics of flocs are studied through the data of fine-grained sediment flocs;

[0150] Floc centroid analysis: The centroid coordinates of the connected area are used as the centroid coordinates of the floc to analyze the spatial distribution of the floc;

[0151] Floc area analysis: The area of ​​the connected region is used as the floc area for statistical analysis;

[0152] Sediment settling velocity analysis: Calculate the settling velocity W of fine-grained sediment flocs s , analyze the sedimentation behavior of sediment;

[0153] Particle size analysis: The equivalent diameter of fine-grained sediment flocs is calculated by the area of ​​the connected region. The equivalent diameters of all fine-grained sediment flocs are counted and the average value is calculated as the average particle size.

[0154] The volume of each fine-grained sediment floc was calculated using the equivalent diameter, and the volume of each fine-grained sediment floc was divided by the sum of the volumes of all fine-grained sediment flocs to obtain the volume fraction of each fine-grained sediment floc.

[0155] With the interval of fine-grained sand flocs of equal length as the horizontal axis and the sum of the volume fractions of fine-grained sand flocs in the interval as the vertical axis, a histogram of the sum of the volume fractions of fine-grained sand flocs in each diameter interval was drawn for analysis;

[0156] Median particle size analysis: With the diameter of fine-grained sand flocs as the horizontal coordinate and the sum of the volume fractions of fine-grained sand flocs smaller than the diameter as the vertical coordinate, the cumulative frequency curve of fine-grained sand flocs is drawn. The horizontal coordinate diameter corresponding to the cumulative frequency of fine-grained sand flocs of 50% is read from the cumulative frequency curve as the median particle size of the sand particles for analysis;

[0157] Floc fractal dimension analysis: Calculate the fractal dimension of the floc, the formula is:

[0158] ;

[0159] In the formula, W s is the settling rate of fine-grained sediment flocs; α , β is the coefficient that depends on the floc shape; is the density of clay particles, is the density of water; is the acceleration due to gravity; is the dynamic viscosity of the fluid; D p is the diameter of the primary particle; nf is the fractal dimension of the floc; D is the floc diameter; Re is the sand Reynolds number, where , is the kinematic viscosity of the fluid;

[0160] Effective density analysis: calculate the volume fraction and density of flocs and perform effective density analysis;

[0161] Velocity analysis: For PIV velocity measurement images, in the PIV method of measuring water flow velocity, the sediment is replaced with particles with a density close to that of water to characterize the water flow velocity. The processing method is the same as above:

[0162] Segment the binary image after block division, and move each small block of the image by a specified distance in any direction;

[0163] The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated;

[0164] The distance that minimizes the difference in pixel values ​​is taken as the water flow displacement in the block area. L ;

[0165] Calculate water flow displacement L of x Direction and y Directional component, which is the horizontal distance of the water flow L x and vertical movement distance L y ;

[0166] Horizontal distance of water flow L x and vertical movement distance L y Divide by the shooting interval between the moved image and the adjacent velocity measurement image to get the horizontal flow velocity of the water flow in the area V x and vertical velocity V y ;

[0167] Calculate the flow velocity using vector synthesis method V And direction: V =( V x 2 + V y 2 ) 0.5 ,tan θ = V x / V y , θ is the angle between the flow velocity direction and the horizontal direction;

[0168] The moment i The water flow velocity and direction calculated from the captured image are used as a set of flow velocity data Compile a data group and filter the data according to the deviation degree of each flow rate data: calculate the average flow rate and flow rate standard deviation σ , calculate each flow rate data Average flow rate The degree of deviation will be different from the average flow rate The velocity data with a deviation exceeding two times the standard deviation is defined as an error value, that is, hour, is an error value; replace all the error values ​​with linear interpolation to obtain a new set of data, and repeat the above steps until no new error values ​​can be obtained;

[0169] Draw velocity distribution vector diagram for analysis;

[0170] Flow rate standard deviation analysis: Get the flow rate average and flow rate standard deviation through flow rate data σ To evaluate flow rate changes;

[0171] Flow rate variance analysis: Analyze the distribution characteristics of flow rate by obtaining flow rate variance through flow rate data;

[0172] Reynolds stress analysis: compile the horizontal and vertical flow velocities of the same area in different images into a data group, calculate the average values ​​of the horizontal and vertical flow velocities in the data group, and calculate the difference between each flow velocity value and the average value as the horizontal pulsating flow velocity and the vertical pulsating flow velocity;

[0173] The horizontal flow velocity and vertical flow velocity between two adjacent images are subtracted to obtain the flow velocity change value;

[0174] Divide the velocity change value by the interval between two images to obtain the horizontal velocity change rate and vertical velocity change rate data;

[0175] Calculation of Reynolds stresses , the formula is:

[0176] ;

[0177] Velocity skewness and kurtosis analysis: The velocity distribution skewness is calculated using a moment estimation method as follows:

[0178] Calculate the sample third-order central moment m3:

[0179] ;

[0180] Where, is the number of data;

[0181] Calculate the sample second-order central moment m2:

[0182] ;

[0183] Calculate the sample skewness coefficient SK:

[0184] ;

[0185] When SK < 0, the velocity distribution is right-biased; when SK > 0, the velocity distribution is left-biased;

[0186] The kurtosis of the velocity distribution is calculated using a method based on moment estimation, as follows:

[0187] Calculate the sample fourth-order central moment m4:

[0188] ;

[0189] Calculate the sample kurtosis K:

[0190] ;

[0191] When K>0, the velocity distribution peak is steep; when K=0, the velocity distribution peak obeys the normal distribution; when K<0, the velocity distribution peak is flat.

[0192] The image information output module is used to directly output the processed and analyzed data, including various turbulence characteristic values ​​and fine-grained sediment floc characteristic values, in the form of tables and / or images, store them in a database or computer, generate electronic documents, and print the corresponding documents.

[0193] like Figure 3 As shown, embodiment 2 of the present invention provides a processing method applicable to a fine-grained sediment floc flocculation and sedimentation observation image processing system, the method comprising:

[0194] Start the system software by clicking the start button on the user interface, and load the initialization file to put the system into the initialization state;

[0195] Perform self-checks on the hardware and software environment to ensure that all components are functioning properly;

[0196] Load the collected images of fine-grained sediment flocs into the system through USB, network or other interfaces, convert images in different formats into a standard format that the system can process, and verify the integrity and accuracy of the loaded images;

[0197] The image of the fine-grained sediment flocs loaded into the system is subjected to data conversion, data filtering and processing analysis. The data conversion specifically includes converting the image into a grayscale image, converting the image into a binary image after removing the background light, and determining whether it is a clear image by a clarity threshold; the data filtering specifically includes removing noise, Gaussian filtering and blurring the binary image; the processing analysis includes particle size analysis, median particle size analysis, flow velocity analysis, flow velocity standard deviation analysis, flow velocity variance analysis, flow velocity skewness and peak state analysis, Reynolds stress analysis, floc morphology analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis and effective density analysis;

[0198] The processed and analyzed data are output and stored in the form of tables and / or images, and electronic documents are generated.

[0199] In summary, the present invention realizes direct processing of fine-grained sediment floc images, can be applied to various versions of high-speed cameras on the market, and has strong compatibility; the grayscale value threshold of the image is determined by the Otsu method, so that the identification of fine-grained sediment flocs is more accurate; image processing and analysis of fine-grained sediment flocs in water samples are performed, and the fine-grained sediment flocs are not contacted during the processing process, and their physical and chemical properties are not affected, and it is suitable for sediments with a larger particle size range; the processing speed is fast, and images can be processed quickly in batches, while PIV technology is combined to greatly improve the image processing rate; various turbulence characteristic values ​​and fine-grained sediment floc characteristic values ​​are directly output, which greatly reduces the time researchers spend on data post-processing and analysis; the operation is simple and easy to use, and it is suitable for researchers and engineers at all levels.

[0200] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or other arbitrary combinations. When implemented using software, it can be implemented in whole or in part in the form of a computer program product, which includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0201] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.

[0202] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An image processing system for observing the flocculation and sedimentation of fine-grained sediment, characterized in that: The system comprises: The initialization module is used to turn on the system and put the system into an initialization state; The data loading module is used to load the collected images of fine-grained sediment flocs into the system, convert images of different formats into a standard format that can be processed by the system, and verify the integrity and accuracy of the loaded images; An image data processing module for processing and analyzing images of fine-grained sediment flocs loaded into the system; An image information output module is used to output and store the processed and analyzed data in the form of tables and / or images, and generate electronic documents; The image data processing module comprises: A data conversion module is used to convert the image of the fine-grained sediment flocs loaded into the system into a grayscale image, convert it into a binary image after removing the background light, and determine whether it is a clear image through a clarity threshold; The data filtering module is used to remove noise, Gaussian filtering and blur image from binary images. The specific method includes: Remove the noise whose area is smaller than the area threshold in the binary image; Connect pixels separated by a single pixel, perform dilation and erosion operations on the image, fill holes in the image, remove incomplete objects on the image boundary, and again remove noise in the binary image whose area is less than the area threshold; Calculate the connected areas in the binary image and perform Gaussian filtering on the connected areas; The Gaussian filtering process includes: determining the size of the Gaussian filter convolution kernel and setting the parameters of the Gaussian filter, including the standard deviation and mean in the x and y directions; The Gaussian filter is normalized to obtain a weight matrix, and the normalized Gaussian filter is applied to the image to remove Gaussian noise; Traversing the connected areas in the Gaussian filtered image and calculating the clarity, and comparing it with a preset key clarity threshold. If the clarity is greater than the key clarity threshold, the connected area is retained as a clear image part, otherwise it is regarded as a blurred image part and removed; Recalculate the connected areas remaining in the image after the blurred image is removed. If there are connected areas that do not move, they are considered as backgrounds that are further removed. Post-processing analysis module, used to perform particle size analysis, median particle size analysis, velocity analysis, velocity standard deviation analysis, velocity variance analysis, velocity skewness and peak analysis, Reynolds stress analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis and effective density analysis on fine-grained sediment flocs based on the filtered binary images; The post-processing analysis module calculates the data of each connected area, including the coordinates, area, major axis length, minor axis length, perimeter, solidity and centroid coordinates of the connected area, and further processes the data of the connected area as fine-grained sediment floc data in image processing, and then performs analysis, including: Floc centroid analysis: The centroid coordinates of the connected area are used as the centroid coordinates of the floc to analyze the spatial distribution of the floc; Floc area analysis: The area of ​​the connected region is used as the floc area for statistical analysis; Sediment settling velocity analysis: Calculate the settling velocity W of fine-grained sediment flocs s , analyze the sedimentation behavior of sediment, the calculation methods include: Segment the binary image after block division, and move each small block of the image by a specified distance in any direction; The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated; The distance that minimizes the difference in pixel values ​​is taken as the movement displacement of the fine-grained sediment flocs in the block area. l ; Calculate motion displacement l of y Directional component, i.e. the vertical movement distance of fine-grained sediment flocs l y ; The vertical movement distance l y Divided by the shooting interval between the moved image and the adjacent velocity measurement image, the sedimentation rate W of the fine-grained sediment flocs is obtained. s ; Particle size analysis: The equivalent diameter is calculated by the area of ​​the connected region, and the equivalent diameters of all fine-grained sediment flocs are counted and the average equivalent diameter is calculated as the average particle size; The volume of each fine-grained sediment floc was calculated using the equivalent diameter, and the volume of each fine-grained sediment floc was divided by the sum of the volumes of all fine-grained sediment flocs to obtain the volume fraction of each fine-grained sediment floc. With the interval of fine-grained sand flocs of equal length as the horizontal axis and the sum of the volume fractions of fine-grained sand flocs in the interval as the vertical axis, a histogram of the sum of the volume fractions of fine-grained sand flocs in each diameter interval was drawn for analysis; Median particle size analysis: With the diameter of fine-grained sand flocs as the horizontal coordinate and the sum of the volume fractions of fine-grained sand flocs smaller than the diameter as the vertical coordinate, the cumulative frequency curve of fine-grained sand flocs is drawn. The horizontal coordinate diameter corresponding to the cumulative frequency of fine-grained sand flocs of 50% is read from the cumulative frequency curve as the median particle size of the sand particles for analysis; Floc fractal dimension analysis: Calculate the fractal dimension of the floc, the formula is: ; In the formula, W s is the settling rate of fine-grained sediment flocs; α , β is the coefficient that depends on the floc shape; is the density of clay particles, is the density of water; is the acceleration due to gravity; is the dynamic viscosity of the fluid; D p is the median particle size of sediment particles; nf is the fractal dimension of the floc; D is the equivalent diameter of the floc; Re is the sand Reynolds number, where , is the kinematic viscosity of the fluid; Effective density analysis: calculate the solidity and density of flocs and conduct effective density analysis; Flow rate analysis: Segment the binary image after segmentation, and move each small image block by a specified distance in any direction; The moved image is compared with the binary image of the adjacent speed measurement image, and the difference between the pixel values ​​of the two is calculated; The distance that minimizes the difference in pixel values ​​is taken as the water flow displacement in the block area. L ; Calculate water flow displacement L of x Direction and y Directional component, which is the horizontal distance of the water flow L x and vertical movement distance L y ; Horizontal distance of water flow L x and vertical movement distance L y Divide by the shooting interval between the moved image and the adjacent velocity measurement image to get the horizontal flow velocity of the water flow in the area V x and vertical velocity V y ; Calculate the flow velocity using vector synthesis method V And direction: V =( V x 2 + V y 2 ) 0.5 ,tan θ = V x / V y , θ is the angle between the flow velocity direction and the horizontal direction; The moment i The water flow velocity and direction calculated from the captured image are used as a set of flow velocity data Compile a data group and filter the data according to the deviation degree of each flow rate data: calculate the average flow rate and flow rate standard deviation σ , calculate each flow rate data Average flow rate The degree of deviation will be different from the average flow rate The velocity data with a deviation exceeding two times the standard deviation is defined as an error value, that is, hour, is an error value; replace all the error values ​​with linear interpolation to obtain a new set of data, and repeat the process until no new error values ​​can be obtained; Draw velocity distribution vector diagram for analysis; Flow rate standard deviation analysis: Get the average flow rate through the flow rate data and the flow rate standard deviation σ to assess the flow rate variation; Flow rate variance analysis: Analyze the distribution characteristics of flow rate by obtaining flow rate variance through flow rate data; Reynolds stress analysis: compile the horizontal and vertical flow velocities of the same area in different images into a data group, calculate the average values ​​of the horizontal and vertical flow velocities in the data group, and calculate the difference between each flow velocity value and the average value as the horizontal pulsating flow velocity and the vertical pulsating flow velocity; The horizontal flow velocity and vertical flow velocity between two adjacent images are subtracted to obtain the flow velocity change value; Divide the velocity change value by the interval between two images to obtain horizontal velocity change rate and vertical velocity change rate data; Calculate the shear Reynolds stress τ using the formula: ; Velocity skewness and kurtosis analysis: The velocity distribution skewness is calculated using a moment estimation method as follows: Calculate the sample third-order central moment m3: ; In the formula, represents the different moments when the image was taken, is the water flow velocity at the corresponding time, is the average water flow velocity, is the number of data; Calculate the sample second-order central moment m2: ; Calculate the sample skewness coefficient SK: ; When SK<0, the velocity distribution is right-biased; when SK>0, the velocity distribution is left-biased; The velocity distribution kurtosis is calculated using a method based on moment estimation, as follows: Calculate the sample fourth-order central moment m4: ; Calculate the sample kurtosis K: ; When K>0, the velocity distribution peak is steep; when K=0, the velocity distribution peak obeys the normal distribution; when K<0, the velocity distribution peak is flat.

2. The image processing system for observing the flocculation and sedimentation of fine-grained sediment according to claim 1, characterized in that: The initialization module starts the system software through the start button on the user interface, loads the initialization file to put the system into the initialization state, performs self-checks on the hardware and software environment to ensure that all components are working properly, and records the system startup time, operator information and startup status for subsequent tracing.

3. The image processing system for observing the flocculation and sedimentation of fine-grained sediment flocs according to claim 1 is characterized in that: The implementation method of the data conversion module specifically includes: Read and invert the image loaded into the system and convert it into a grayscale image; Divide the grayscale image into small blocks, calculate the minimum grayscale value in each small block as the background, and perform background correction on the image; Get the maximum pixel value in the image and enhance the contrast of the image; Calculate the gray value threshold in the image based on the maximum inter-class variance algorithm and convert the gray image into a binary image; The clarity of the binary image is calculated and compared with a preset clarity threshold. If the clarity is higher than the clarity threshold, the binary image is determined to be clear; otherwise, the binary image is determined to be blurred and is considered to be removed in subsequent processing.

4. The image processing system for observing the flocculation and sedimentation of fine-grained sediment flocs according to claim 3 is characterized in that: The grayscale value threshold in the image is calculated based on the maximum inter-class variance algorithm, and the grayscale image is converted into a binary image. The method specifically includes: Treat any image as an M×N matrix, where each value is a pixel value and the target and background segmentation threshold is denoted as optimal; The ratio of the number of pixels belonging to the target to the entire image is recorded as ω0, and the average grayscale of the target is recorded as a0; The ratio of background pixels to the entire image is denoted as ω1, and the average grayscale of the target is denoted as a1; The total average grayscale of the image is recorded as a, and the inter-class variance is recorded as maximum; The number of pixels in the image whose grayscale value is less than the optimal segmentation threshold is recorded as N0, and the number of pixels whose grayscale value is greater than the optimal segmentation threshold is recorded as N1; Then: ω0=N0 / (M×N), ω1=N1 / (M×N); N0+N1=M×N,ω0+ω1=1; a=ω0×a0+ω1×a1; maximum=ω0×(a0-a)+ω1×(a1-a); The equivalent formula is: maximun = ω0 × ω1 × (a0-a1); The optimal segmentation threshold that maximizes the inter-class variance is found by traversal method, which is the gray value threshold. After the grayscale value threshold is obtained, the grayscale values ​​of pixels whose grayscale values ​​are greater than the grayscale value threshold are set to 1, and the grayscale values ​​of pixels whose grayscale values ​​are less than the grayscale value threshold are set to 0, thereby obtaining a binary image.

5. A processing method for a fine-grained sediment floc flocculation and sedimentation observation image processing system according to any one of claims 1 to 4, characterized in that: The method comprises: Start the system software by clicking the start button on the user interface, and load the initialization file to put the system into the initialization state; Perform self-checks on the hardware and software environment to ensure that all components are functioning properly; Load the collected images of fine-grained sediment flocs into the system through USB, network or other interfaces, convert images in different formats into a standard format that the system can process, and verify the integrity and accuracy of the loaded images; The image of the fine-grained sediment flocs loaded into the system is subjected to data conversion, data filtering and processing analysis. The data conversion specifically includes converting the image into a grayscale image, converting the image into a binary image after removing the background light, and determining whether it is a clear image by a clarity threshold; the data filtering specifically includes performing noise removal, Gaussian filtering and fuzzy image removal on the binary image; the processing analysis includes particle size analysis, median particle size analysis, flow velocity analysis, flow velocity standard deviation analysis, flow velocity variance analysis, flow velocity skewness and peak state analysis, Reynolds stress analysis, floc centroid analysis, floc area analysis, sediment settling velocity analysis, floc fractal dimension analysis and effective density analysis; The processed and analyzed data are output and stored in the form of tables and / or images, and electronic documents are generated.

Citation Information

Patent Citations

  • Construction method of particle size distribution model of suspended particulate matters in water body

    CN116595843A

  • Fine-particle sediment floc movement observation device and use method thereof

    CN116660111A

  • Machine learning holography for particle field imaging

    US20210232091A1