Method for rapidly extracting complex connected region features in sea ice monitoring

By combining the scan line algorithm and the seed filling algorithm, the sea ice monitoring technology solves the problems of low sea ice monitoring efficiency and insufficient accuracy in traditional technology, achieves rapid and accurate extraction and statistical analysis of sea ice characteristics, and improves sea ice monitoring. level of automation and data processing capabilities.

CN118657804APending Publication Date: 2024-09-17NATIONAL MARINE ENVIRONMENTAL MONITORING CENTRE

Patent Information

Application Number
CN202410797850.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Traditional sea ice monitoring technology has low efficiency and insufficient accuracy when dealing with complex sea ice shapes and large-area coverage, making it difficult to quickly and accurately extract characteristic information such as the area, shape, and location of sea ice.

Method used

The scan line algorithm and the seed filling algorithm are combined for image preprocessing and connected area detection, and technologies such as median filtering, Gaussian filtering, and histogram equalization are combined to denoise and enhance image quality. Through improved algorithm processes and parallelism Calculate to improve detection efficiency, extract characteristic information of sea ice and perform statistical analysis.

Benefits of technology

It achieves efficient and accurate feature extraction and statistical analysis of sea ice monitoring, improves the level of automation and data processing capabilities, and provides accurate and real-time information services for sea ice monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657804A
    Figure CN118657804A
Patent Text Reader

Abstract

The invention discloses a method for rapidly extracting complex connected region features in sea ice monitoring. The method comprises the following steps: S1, preprocessing an image; s2, communication region detection: detecting and marking a sea ice region in the image by adopting a method of combining a scanning line algorithm and a seed filling algorithm; s3, feature extraction: extracting feature information of sea ice on the basis of the detected connected region; and S4, performing feature statistics, analysis and visualization, performing statistics and analysis on the extracted feature information, and outputting a result. According to the method for rapidly extracting the complex connected region features in sea ice monitoring, sea ice image data can be accurately and efficiently processed, key information is provided for sea ice monitoring and analysis, the automation level and the data processing capacity of sea ice monitoring can be effectively improved, and more accurate and real-time information service is provided for related fields.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of sea ice monitoring. Background Art

[0002] Sea ice monitoring is of great significance to the development of marine resources, shipping safety, climate change research and other fields. Traditional image processing methods have problems such as low efficiency and insufficient accuracy when processing sea ice images, especially when facing complex sea ice forms and large-area coverage, it is difficult to quickly and accurately extract characteristic information such as the area, shape and location of sea ice. Summary of the invention

[0003] The purpose of the present invention is to provide a method for quickly extracting features of complex connected areas in sea ice monitoring, which can effectively solve the deficiencies in the prior art and improve the efficiency and accuracy of sea ice monitoring.

[0004] The technical solution adopted by the present invention to achieve the above-mentioned purpose is: a method for quickly extracting complex interconnected area features in sea ice monitoring, comprising the following steps:

[0005] S1: Image preprocessing;

[0006] S2: Connected area detection, using a combination of scan line algorithm and seed filling algorithm to detect and mark the sea ice area in the image;

[0007] S3: Feature extraction: extracting the characteristic information of sea ice based on the detected connected areas;

[0008] S4: Feature statistics, analysis and visualization, statistics and analysis of the extracted feature information, and output results.

[0009] In step S1, the preprocessing method is:

[0010] S11: Denoising, using median filtering and Gaussian filtering methods to remove noise in the image and improve image quality;

[0011] S12: Contrast enhancement, using histogram equalization or contrast-limited adaptive histogram equalization to enhance the local contrast of the image and make the boundary between sea ice and background clearer;

[0012] S13: Process the image by grayscale, threshold binarization or dilation and corrosion algorithm to obtain a clear binary image.

[0013] In step S2, the method for detecting and marking the sea ice area in the image is:

[0014] S21: Linearize the two-dimensional coordinates of the image into one-dimensional coordinates;

[0015] S22: Determine the start scanning line of the ice cube and record the subscripts of the start and end pixel points of the scanning line;

[0016] S23: Scan the image from the beginning to find the first pixel of the first ice cube, otherwise start scanning from the next pixel of the pixel belonging to the ice cube in the initial scanning row of the previous ice cube, scan by row, determine the initial scanning row, scan the row, and at the same time, form a pair of the subscript of the starting pixel of the scanning row and the subscript of the ending pixel of the scanning row and put them into stack B;

[0017] S24: When all the rows where the initial pixel points are located are marked, it is determined whether the ice cube is marked, that is, whether the array B is empty. If it is empty, the ice cube is completely marked, and the next ice cube is marked. If it is not empty, the number at the top of the stack B is taken out, and then the pixel point corresponding to the taken out number is found, and then the position of the pixel point in the two-dimensional image is searched upward and downward and marked by row. At the same time, when the number of pixels in the upper row is greater than that in the lower row, the pixel subscript is counted into the stack B.

[0018] S25: Continuously scan the mark upward and downward until the pixel point encountered does not belong to the ice cube, then stop searching and add the pixel subscript of the row into stack B;

[0019] S26: Counting the maximum ice cube area and the minimum ice cube area according to the number of pixels of the ice cube.

[0020] S27: Search for the next piece of ice and repeat all the above steps until all the pixels belonging to ice cubes in the image are marked.

[0021] The feature extraction method in step 3 is as follows:

[0022] S31: Area calculation: Count the pixels of the marked sea ice area to obtain the area of ​​each piece of sea ice;

[0023] S32: Shape description: Use shape descriptors to describe the shape characteristics of sea ice;

[0024] S33: Positioning: Determine the center point or boundary coordinates of each piece of sea ice.

[0025] The feature statistics, analysis and visualization method in step S4 is as follows:

[0026] Area distribution analysis: Count the distribution of sea ice of different sizes and identify large areas of sea ice or ice groups;

[0027] Visualization: The characteristic information of sea ice is intuitively displayed in the form of image overlay, heat map or chart;

[0028] Report generation: Generate reports containing statistical data and analysis results.

[0029] The method for rapidly extracting features of complex connected areas in sea ice monitoring of the present invention can accurately and efficiently process sea ice image data, provide key information for sea ice monitoring and analysis, effectively improve the automation level and data processing capabilities of sea ice monitoring, and provide more accurate and real-time information services for related fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of the method for quickly extracting complex interconnected regional features in sea ice monitoring of the present invention.

[0031] Figure 2 It is a flow chart of complex connected area detection of the present invention.

[0032] Figure 3 It is a statistical chart of the number of ice cubes in different area ranges.

[0033] Figure 4 It is a distribution map of ice blocks in different area ranges. DETAILED DESCRIPTION

[0034] The method for quickly extracting complex interconnected area features in sea ice monitoring of the present invention is as follows Figure 1 As shown, the following steps are included:

[0035] S1. Image preprocessing: Perform preprocessing operations such as denoising and contrast enhancement on the acquired sea ice images to improve the accuracy of subsequent processing. The specific methods are as follows:

[0036] Denoising: Use median filtering, Gaussian filtering and other methods to remove noise in the image and improve image quality;

[0037] Contrast enhancement: Apply histogram equalization or contrast-limited adaptive histogram equalization (CLAHE) technology to enhance the local contrast of the image and make the boundary between sea ice and background clearer;

[0038] On this basis, the image is processed through grayscale, threshold binarization, and expansion and corrosion algorithm to obtain a clear binary image.

[0039] S2. Connected area detection: The improved scanning line algorithm combined with the seed filling algorithm is used to detect and mark the sea ice area in the image. The specific method is as follows:

[0040] Improved scan line algorithm: Based on the traditional scan line algorithm, an adaptive threshold determination mechanism is introduced to adapt to sea ice detection under different lighting and complex backgrounds;

[0041] Seed filling algorithm: Combines local features of the image to optimize the selection and growth strategy of seed points to ensure accurate identification of sea ice areas;

[0042] By introducing key variables and optimizing the algorithm process, the execution efficiency of the algorithm can be improved and the consumption of computing resources can be reduced. The specific methods are as follows:

[0043] Key variable introduction: Define and optimize the use of key variables, such as the index of connected areas, boundary tracking pointers, etc., to reduce unnecessary calculations.

[0044] Parallel computing: Use GPU acceleration or distributed computing framework to achieve parallel processing of algorithms and improve processing speed. Figure 2 As shown, the steps are as follows:

[0045] (1) Before the algorithm starts, the two-dimensional coordinates of the image are linearized into one-dimensional coordinates arrLine[], and the number of pixels belonging to ice cubes in the image is counted allIceNumHere.

[0046] (2) Enter the first large loop while (allIceNumHere! = 0). As long as there are unmarked pixels belonging to ice cubes in the image, it means that the image has not been processed, and the large loop will not be exited. Outside the large loop, we must first declare several variables for counting the number of ice cubes and the area of ​​each ice cube. Let iceOrder be the variable for counting the number of ice cubes, and its initial value is set to 0. Let iceOrderSum be the variable for counting the area of ​​each ice cube, and its initial value is also 0. Then set the variable lastPoint to record the position at the end of the previous scan as the starting position of the next scan, and the initial value of lastPoint is set to 0. Inside the large loop, we first add iceOrder++. When we just enter the large loop, the value of iceOrder is 1. After executing the "++" operation, the value of iceOrder is 2, and the number of ice cubes starts from 2. Therefore, the final value of iceOrder-1 is the number of ice cubes in the entire image. Then iceOrderSum is assigned to iceOrderSum = 0, because after the iceOrder++ operation is executed, it is another piece of ice that is counted. At this time, the number of pixels belonging to this piece of ice should be 0, and the number of pixels of the previous piece of ice should not be added to this piece of ice. At the same time, a stack B is set to store the subscripts of the start and end pixels of the scan line that needs to be judged.

[0047] (3) If it is the beginning of a picture, scan the picture from the beginning to find the first pixel of the first ice block. Otherwise, start scanning from the next pixel of the pixel belonging to the ice block in the initial scan line of the previous ice block. Scan row by row, determine the initial scan line, and scan the row. The scanning condition is that as long as it is in the same row as the pixel in the two-dimensional coordinates, and the pixel is ice, continue scanning, otherwise stop. So the stopping condition is if((leftX<0)||(((leftX+1)%width)==0)||(arrLine[leftX]!=1)). When the pixel meets the condition, the content represented in the coordinates of the pixel is changed to the sequence number of the ice block, that is, arrLine[leftX]=iceOrder, indicating that the pixel belongs to the iceOrderth ice block. At the same time, each time a pixel is marked, iceOrderSum performs a +1 operation to count the number of pixels of the iceOrderth ice block, that is, the area of ​​the ice block. At the same time, the subscript of the starting pixel point of the scan line and the subscript of the ending pixel point are put into a pair in stack B. And the number of pixels in the line NumRight, NumLeft=1 is recorded.

[0048] (4) When all the rows where the initial pixel is located are marked, the program enters the second loop to determine whether the ice cube has been marked, that is, whether array B is empty. If it is empty, the ice cube is completely marked, and the second loop is jumped out to continue marking the next ice cube. If it is not empty, the number at the top of stack B is taken out, and then the pixel corresponding to the number taken out is found, and then the position of the pixel in the two-dimensional image is searched up and down. If the pixel above it belongs to the ice cube and is not marked, then mark the point, and mark the pixel points belonging to the ice cube along the left and right rows of the point. The principle is the same as step 3, and iceOrderSum is continuously accumulated. Then record the number of pixels to the left and right of the pixel. If it is larger than NumLeft and NumRight, the pixel subscripts are combined into a pair and put into stack B.

[0049] (5) Continue scanning the marker upward and downward until the pixel encountered does not belong to an ice cube, then stop searching and repeat step 4.

[0050] (6) After exiting the second-level loop, the number of pixels of the ice cube, iceOrderSum, is compared with maxIce and minIce. The initial value of maxIce is infinitesimal, and the initial value of minIce is infinite. If iceOrderSum is larger than maxIce, then maxIce = iceOrderSum. If iceOrderSum is smaller than minIce, then minIce = iceOrderSum. The maximum and minimum ice cube areas are counted.

[0051] (7) Then a new round of large loop begins to search for the next piece of ice and repeat all the above steps until all the pixels belonging to ice cubes in the image are marked. Then the large loop is exited and the program ends.

[0052] S3. Feature extraction: Based on the detected connected areas, extract the area, shape, location and other feature information of sea ice. The specific method is as follows:

[0053] Area calculation: Count the pixels of the marked sea ice area to obtain the area of ​​each piece of sea ice;

[0054] Shape description: Use shape descriptors (such as rectangularity, circularity, etc.) to describe the shape characteristics of sea ice;

[0055] Positioning: Determine the center point or boundary coordinates of each piece of sea ice to provide a basis for further spatial analysis.

[0056] S4. Feature statistics, analysis and visualization: Statistics and analysis of the extracted feature information, including calculation of the maximum and minimum ice areas, pattern recognition of ice distribution, etc., and then output the results in the form of graphics or reports to provide decision support for sea ice monitoring and early warning. The specific methods are as follows:

[0057] Area distribution analysis: Count the distribution of sea ice of different sizes and identify large areas of sea ice or ice groups;

[0058] Pattern recognition: Apply machine learning algorithms to identify sea ice accumulation patterns and development trends;

[0059] Visualization: The characteristic information of sea ice is intuitively displayed in the form of image overlay, heat map or chart;

[0060] Report generation: Automatically generate reports containing statistical data and analysis results to facilitate user understanding and decision-making;

[0061] like Figure 3 and Figure 4 shown.

[0062] The present invention provides a technical solution for rapid extraction of complex interconnected regional features for sea ice monitoring, which can accurately and efficiently process sea ice image data. Through the improved algorithm, the accuracy of sea ice area detection is improved, and false detection and missed detection are reduced. Rapid extraction and statistical analysis of sea ice feature information are achieved, providing strong technical support for sea ice monitoring and early warning. The algorithm flow is optimized, the consumption of computing resources is reduced, and the execution efficiency of the algorithm is improved.

[0063] The present invention is described by way of embodiments, and those skilled in the art will appreciate that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the protection scope of the present invention.

Claims

1. A method for rapidly extracting features of complex interconnected areas in sea ice monitoring, characterized by: The following steps are involved: S1: Image preprocessing; S2: Connected area detection, using a combination of scan line algorithm and seed filling algorithm to detect and mark the sea ice area in the image; S3: Feature extraction: extracting the characteristic information of sea ice based on the detected connected areas; S4: Feature statistics, analysis and visualization, statistics and analysis of the extracted feature information, and output results.

2. The method for rapidly extracting complex interconnected area features in sea ice monitoring according to claim 1, characterized in that: In step S1, the preprocessing method is: S11: Denoising, using median filtering and Gaussian filtering methods to remove noise in the image and improve image quality; S12: Contrast enhancement, using histogram equalization or contrast-limited adaptive histogram equalization to enhance the local contrast of the image and make the boundary between sea ice and background clearer; S13: Process the image by grayscale conversion, threshold binarization or dilation and corrosion algorithm to obtain a clear binary image.

3. The method for rapidly extracting complex interconnected area features in sea ice monitoring according to claim 1, characterized in that: In step S2, the method for detecting and marking the sea ice area in the image is: S21: Linearize the two-dimensional coordinates of the image into one-dimensional coordinates; S22: Determine the start scanning line of the ice cube and record the subscripts of the start and end pixel points of the scanning line; S23: Scan the image from the beginning to find the first pixel of the first ice cube, otherwise start scanning from the next pixel of the pixel belonging to the ice cube in the initial scanning row of the previous ice cube, scan by row, determine the initial scanning row, scan the row, and at the same time, form a pair of the subscript of the starting pixel of the scanning row and the subscript of the ending pixel of the scanning row and put them into stack B; S24: When all the rows where the initial pixel points are located are marked, it is determined whether the ice cube is marked, that is, whether the array B is empty. If it is empty, the ice cube is completely marked, and the next ice cube is marked. If it is not empty, the number at the top of the stack B is taken out, and then the pixel point corresponding to the taken out number is found, and then the position of the pixel point in the two-dimensional image is searched upward and downward and marked by row. At the same time, when the number of pixels in the upper row is greater than that in the lower row, the pixel subscript is counted into the stack B. S25: continuously scan the mark upward and downward until the pixel point encountered does not belong to the ice cube, then stop searching and add the pixel subscript of the row into stack B; S26: Counting the maximum ice cube area and the minimum ice cube area according to the number of pixels of the ice cube. S27: Search for the next piece of ice and repeat all the above steps until all the pixels belonging to ice cubes in the image are marked.

4. The method for rapidly extracting complex interconnected area features in sea ice monitoring according to claim 1, characterized in that: The feature extraction method in step 3 is as follows: S31: Area calculation: Count the pixels of the marked sea ice area to obtain the area of ​​each piece of sea ice; S32: Shape description: Use shape descriptors to describe the shape characteristics of sea ice; S33: Positioning: Determine the center point or boundary coordinates of each piece of sea ice.

5. The method for rapidly extracting complex interconnected area features in sea ice monitoring according to claim 1, characterized in that: The feature statistics, analysis and visualization method in step S4 is as follows: Area distribution analysis: Count the distribution of sea ice of different sizes and identify large areas of sea ice or ice groups; Visualization: The characteristic information of sea ice is intuitively displayed in the form of image overlay, heat map or chart; Report generation: Generate reports containing statistical data and analysis results.

Citation Information

Patent Citations

  • Method and device for automatically restoring, measuring and classifying steel dimple images

    CN101782526A

  • Method for automatically and accurately identifying sea ice edge

    CN102567730A

  • Fast calibration and extraction method of complex connected region feature

    CN106127786A

  • Sea ice outer edge line extraction method and device, electronic equipment and storage medium

    CN117132786A

  • Ecological product value accounting method based on satellite remote sensing monitoring

    CN117474568A

Cited By

  • Sea ice segmentation method and device based on convex optimization and medium

    CN121353308A