Marine field visualization method based on improved MC algorithm
Through the improved MC algorithm and convolutional neural network, combined with subdivision topology and octree optimization, the problem of high inhomogeneity and error diversity of ocean data is solved, efficient and uniform rendering of ocean data is achieved, and ocean data is improved. Visualization accuracy and efficiency.
Patent Information
- Application Number
- CN202410235433.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-10-29
AI Technical Summary
Traditional ocean visualization methods cannot effectively handle the high inhomogeneity of ocean data and the diversification of error sources, resulting in isosurface accuracy that is high close to sea level and low far away from it, and there are a large number of blank voxel calculations, which is inefficient.
An ocean domain visualization method based on the improved MC algorithm and convolutional neural network is adopted to handle ambiguity by subdividing the topology structure, optimizing the octree structure, performing interpolation processing and patch normal normalization to achieve more accuracy and efficiency Rendering of ocean data.
It greatly avoids the wrong connection method of isosurfaces, ensures uniform isosurface spans, improves the reliability and efficiency of ocean data rendering, avoids blank voxel calculations, and improves the rendering accuracy and efficiency of ocean data.
Smart Images

Figure CN118864697A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of ocean volume visualization, and in particular relates to an ocean field visualization method based on an improved MC algorithm. Background Art
[0002] 71% of the earth's surface is ocean, and the area of ocean is much larger than the land area. Since Magellan achieved the first circumnavigation in human history in 1522, human life has become increasingly closely related to the ocean. The ocean connects the world together, but so far, only 5% of the seabed has been explored by humans, and 95% of the seabed is unknown. We urgently need new means and new ways to understand the ocean. The ocean is a treasure trove of human resources. The ocean is not only the source of life, providing materials and space for human survival, but also contains rich biological, chemical, mineral and other resources. Marine engineering (such as offshore drilling platforms, tidal power stations, submarine space stations, etc.) is increasingly favored by governments of various countries. Most of these projects require underwater topographic maps for guidance and assistance, and traditional two-dimensional nautical charts obviously cannot meet the needs.
[0003] Marine environmental information is composed of different environmental factors such as the marine atmosphere (clouds, rain, fog, air pressure, temperature, wind, etc.), sea surface (waves, currents, tides, storm surges, etc.), marine water (temperature, salinity, density, internal waves, circulation, thermocline, etc.) and seabed (geology, landforms, etc.). Studying marine environmental information is of great significance for analyzing the spatiotemporal laws and influencing mechanisms of marine phenomena. More than 80% of the information about the outside world obtained by humans is through vision, and human visual information processing has the characteristics of high speed, large capacity and parallel work. Traditionally, visualization can be divided into scientific computing visualization for two-dimensional and three-dimensional data fields in space and information visualization for abstract databases and data warehouses according to different application fields. Visualization methods were originally applied to the graphical display of numerical solutions of marine environmental elements, and expanded from two-dimensional and 2.5-dimensional to three-dimensional scenes; the spatiotemporal process visualization for a single environmental element is centered on the marine spatiotemporal data model, which is a dynamic presentation of "three-dimensional space + time dimension + one-dimensional marine environmental elements". Summary of the invention
[0004] In view of the problems of uneven distribution and diversified error sources of traditional observation means such as rain gauges and radars, the present invention proposes a marine field visualization method based on an improved MC algorithm, which is a method for inverting precipitation areas from satellite cloud images based on convolutional neural networks. It uses synchronous meteorological satellite observations and convolutional neural networks to obtain a more accurate, stable and larger-scale precipitation area division model.
[0005] The present invention is based on the ocean field visualization method of improving the MC algorithm, comprising the following steps:
[0006] Step 1: Obtain three-dimensional ocean hydrological element data, load the three-dimensional ocean element data into the MC algorithm, input a threshold of ocean data, and implement the traditional MC algorithm.
[0007] Step 2: Use a subdivided topology structure to handle ambiguous situations.
[0008] Step 3: Use the optimized octree structure to optimize the efficiency of the MC algorithm.
[0009] Step 4: Determine whether the data has uneven height spans, and if so, perform interpolation processing.
[0010] Step 5: Calculate all triangle normals and normalize them.
[0011] Step 6: Return the data to the front end for rendering and presentation.
[0012] The advantages of the present invention are:
[0013] 1. The ocean field visualization method based on the improved MC algorithm of the present invention can avoid the incorrect connection mode of isosurfaces to a great extent and has reliability.
[0014] 2. The ocean field visualization method based on the improved MC algorithm of the present invention targets the highly uneven characteristics of ocean data, so that the span of the drawn isosurfaces is uniform, and there will be no situation where the accuracy is high near the sea level and low far from the sea level.
[0015] 3. The ocean field visualization method of the present invention is based on the improved MC algorithm and adopts an octree structure optimization algorithm, which avoids the calculation of a large number of blank voxels and greatly improves the efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of the ocean field visualization method based on the improved MC algorithm of the present invention;
[0017] Figure 2 A schematic diagram of the data cube;
[0018] Figure 3 This is a schematic diagram of the original 15 triangular patch topological structures;
[0019] Figure 4 To extract the schematic diagram of the complete object composed of the facets existing in the cube;
[0020] Figure 5 This is a schematic diagram of adjacent faces appearing in two adjacent cubes;
[0021] Figure 6 It is a schematic diagram of face ambiguity;
[0022] Figure 7 It is a schematic diagram of body ambiguity;
[0023] Figure 8 This is the entire topological structure diagram after expansion;
[0024] Fig. 9 Schematic diagram of the improved octree structure. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0026] The present invention is based on the ocean field visualization method of the improved MC algorithm, such as Figure 1 As shown, the following steps are included:
[0027] Step 1: Obtain three-dimensional ocean hydrological element data online, load the three-dimensional ocean element data into the MC algorithm, input a threshold of ocean data, and implement the traditional MC algorithm.
[0028] Each time two slices of ocean 3D data are read, a layer is formed. In each laver (layer), the four adjacent pixels corresponding to the upper and lower slices, a total of 8 pixels, can form a cube. Figure 2 As shown in the figure, C_V(i,j,k) is the coordinate of the 8 vertices of the cube. Starting from the upper left corner of the top layer, the Cube gradually moves to the right to the upper right corner, and then continues to extract the Cube from the leftmost end to the rightmost end of the next row. After traversing the entire top layer, the next layer of Cube is extracted in the same way until all layers are traversed. Each Cube needs to be processed according to the given threshold. If the data value of the ocean data corresponding to the threshold at a vertex of the Cube is greater than the threshold, it will be marked as 1, and if it is less than the threshold, it will be marked as 0. Therefore, the intersection of the isosurface of the corresponding ocean data and the Cube can be judged according to the marking of all vertices in a Cube, and then the triangular face representation contained in each Cube can be obtained. In each Cube, there are 256 types of triangular face representations (each vertex has two forms of 0 and 1, a total of 2^8=256 types). After removing the symmetrical Cube, the Cube is rotated accordingly so that different triangular face representations can be merged into the same form. Finally, fifteen types of situations can be determined, such as Figure 3 After traversing all the cubes, 0-4 faces will be calculated in each cube. The triangle face information calculated in each cube is drawn using the triangle face drawing function provided by Cesium to obtain a preliminary 3D imaging result. Figure 4 As shown, starting from the upper left corner, the Cube extracts the faces in each Cube along the x, y, and z axes to form a complete object.
[0029] Step 2: Use a subdivided topology structure to handle ambiguous situations.
[0030] Divide a 3D geometric body into several small cubes. Voxel is a generalized Cube. A cube is a voxel, and each voxel is composed of 8 vertices.
[0031] When two adjacent voxels (a face will be used twice, one for each of the two adjacent cubes, such as Figure 5 As shown), when the data values of two vertices in the Cube are higher than the threshold value entered in step 1, and the data values of the other two vertices are lower than the threshold value, and the points higher and lower than the threshold value are located at two diagonal positions in the Cube, as shown in Figure 6 As shown in the figure, there will be two different line segment connection methods on the planes connected by adjacent cubes. When this problem occurs on the surface, it is called face ambiguity. If the left and right connection methods of the planes connected by adjacent cubes are different, it will cause holes on the common faces connected by adjacent cubes, such as Figure 7 As shown. Figure 4 The common face of the two cubes is extracted. Figure 7 As shown, there are two connection methods, and the left and right cubes use different connection methods, resulting in the generation of voids.
[0032] Face ambiguity will cause volume ambiguity and then holes when forming a cube. 9 new topological configurations have been added to the original 15 basic topological configurations, which greatly overcomes the problem of holes in the connection of the standard MC algorithm. Based on the direction of the vertex mark, each cube can be quickly located. Figure 8 The figure shows all the topological configurations after adding 9 topological configurations, where the added configurations are numbered 16-24, where 16 corresponds to 13 of the original 15 numbers, 17 corresponds to 9, 18 corresponds to 11, 19 corresponds to 3, 20 corresponds to 2, 21 corresponds to 14, 22 corresponds to 4, 23 corresponds to 7, and 24 corresponds to 13. Although some structures that can be replaced are included, the specific subdivision of this newly added configuration can greatly avoid the generation of ambiguity, thereby reducing the formation of voids.
[0033] Step 3: Use an optimized octree structure and no longer traverse all voxels to optimize algorithm efficiency.
[0034] Octree is a hierarchical data structure of three-dimensional spatial data composed of nested nodes based on the principle of recursive spatial partitioning. Each node has a parent node and 8 or 0 child nodes. Nodes without child nodes are called leaf nodes. The octree data structure can be considered as an extension of the quadtree data structure in three-dimensional space. Fig. 9As shown in the figure, when drawing the ocean isosurface, empty voxels or relatively flat areas (which can be called "homogeneous") can sometimes reach more than 50% of the data set, and homogeneous voxels are modeled as a unified block. When encoding, the voxel information with the same internal structure is uniformly stored in the parent node voxel, which greatly reduces the amount of information storage.
[0035] like Figure 8 In , first find the original parent node, that is, the largest cube, and find several very large facets. Obviously, the accuracy is not enough at this time. Divide the original root node, that is, the largest cube, equally into 8 small cubes. The edge length of each cube is half of the original one, and the volume is one eighth of the large cube. Therefore, the parent node corresponds to eight child nodes. Calculate each child node as a cube. If there are facets in the child node, continue to subdivide the child node for recursive calculation; when there are no facets inside the child node or the small cube has reached the minimum voxel specification, stop the recursion. Figure 3 In the second layer, only the 2 and 5 child nodes have patches, and the 2 and 5 child nodes are recursively returned to the third layer, which avoids the calculation of a large number of blank cubes. When all recursions stop, the patches obtained by processing each child node are counted to obtain all patch data.
[0036] Step 4: Determine whether the data has uneven height spans. If so, perform targeted interpolation. A special one-dimensional linear interpolation method is used here. First, calculate the area with the maximum and minimum height spans. Divide the span of each layer by the minimum span. If it can be divided, perform linear interpolation. If it cannot be divided, interpolate with the minimum span. In the last section (when the minimum span is increased, it will exceed the height of the next layer of data), retain the original height layer data.
[0037] Step 5: Calculate the patch normal and normalize it. The normal calculation method is the conventional surface normal calculation method. Normalization is to proportionally enlarge or reduce the normal modulus length to 1 to obtain the unit normal vector.
[0038] Step 6: The normalized data of the face is returned to the front end, which renders and presents it to the user.
[0039] Example:
[0040] In this embodiment, EC fine grid reanalysis data is used, and the specific longitude and latitude range is 110°~115°E, 22°~34.75°N.
[0041] Step 1: Based on the grid data, the extracted data is the sea temperature data, and the threshold value is -2 degrees Celsius.
[0042] Step 2: The algorithm analyzes the requested data. When it meets the special topological structure, it performs additional analysis to avoid ambiguity.
[0043] Step 3: The octree data structure automatically recurses until the termination condition is reached, at which point each leaf node is the desired triangle patch.
[0044] Step 4: Determine the data height layer. If there is uneven height, interpolate the height layer to make it consistent.
[0045] Step 5: Return all triangles to the front end and render them for the user.
Claims
1. A method for visualizing ocean domain based on improved MC algorithm, characterized by: The following steps are involved: Step 1: Obtain 3D ocean hydrological element data, load the 3D ocean element data into the MC algorithm, input a threshold of ocean data, and implement the traditional MC algorithm; Step 2: Use the subdivision topology structure to deal with ambiguous situations; Step 3: Use the optimized octree structure to optimize the efficiency of the MC algorithm; Step 4: Determine whether the data has uneven height spans, and if so, perform interpolation processing; Step 5: Calculate and normalize the normals of all triangles; Step 6: Return the data to the front end for rendering and presentation.
2. The method for visualizing an ocean domain based on an improved MC algorithm as claimed in claim 1, characterized in that: The specific implementation method of step 1 is: First, two slices of the ocean 3D data are read each time to form a layer; Further, a cube is constructed and each layer is traversed; the four corners of the cube are the four adjacent pixels corresponding to the upper and lower slices of each layer; Furthermore, each cube is processed according to the threshold value. If the gray value of a vertex of the cube is within the given threshold value, it is marked as 1, and if it is less than the threshold value, it is marked as 0, and the corresponding triangular face representation is obtained; Finally, the obtained triangular patch information is drawn to obtain a three-dimensional imaging result.
3. The method for visualizing an ocean domain based on an improved MC algorithm as claimed in claim 1, characterized in that: In the corresponding triangular patch representation obtained in step 1, the symmetry needs to be removed and then the final triangular patch is obtained through corresponding rotation.
4. The method for visualizing an ocean domain based on an improved MC algorithm as claimed in claim 1, characterized in that: Step 2 is achieved by adding a new topological configuration on top of the original triangular patch topological configuration.
5. The method for visualizing an ocean domain based on an improved MC algorithm as claimed in claim 1, characterized in that: In step 3, the structure of the octree is optimized to a fixed array of length eight, and empty voxels or relatively flat areas are modeled as uniform blocks; during encoding, the voxel information with the same internal structure is uniformly stored in the parent node voxel.
6. The method for visualizing an ocean domain based on an improved MC algorithm as claimed in claim 1, characterized in that: In step 4, first calculate the area with the maximum altitude layer span and the area with the minimum altitude layer span; divide the span of each layer by the minimum span. If it can be divided, perform linear interpolation. If it cannot be divided, interpolate with the minimum span. In the last section, retain the original altitude layer data.
