Ocean three-dimensional data visualization method

Through a marine three -dimensional data visualization method, combined with the three -dimensional image display of hydrological data and terrain data, the problem of poor data combination in the existing technology and insufficient analysis of the existing technology achieved more intuitive and interactive data display effects.

CN119359885AInactive Publication Date: 2025-01-24QINGDAO ZHONGHAICHAO TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411942266.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing three-dimensional ocean data visualization method has a single drawing mode, which cannot effectively combine hydrological environment data and topographic data, and lacks support for a certain dimension analysis of the data, insufficient research on lighting effects, and no obvious display in key areas.

Method used

Put forward a method of visualization of marine 3D data. By reading three -dimensional data and two -dimensional terrain data, hydrological data processing and terrain data matching, drawing three -dimensional images of hydrological data and terrain data, and displaying output under the same coordinate system, Support interactive operations such as vertical proportions adjustment, cutting terrain, and depth point query to simulate the lighting effect.

Benefits of technology

It realizes the effective combination of hydrological environment data and terrain data, enhances the ability to intuitively analyze data, supports multi-angle interactive operations, and simulates lighting effects, making the visualization results closer to the real situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359885A_ABST
    Figure CN119359885A_ABST
Patent Text Reader

Abstract

The invention discloses an ocean three-dimensional data visualization method, which belongs to the technical field of data processing, and comprises the following steps: a data acquisition step: reading three-dimensional body data and two-dimensional topographic data, and receiving geographic information of each data; a hydrological data processing step of performing non-uniform processing on the hydrological data in depth according to the depth information of the hydrological data; matching the hydrological data with the topographic data in the horizontal direction; a hydrological data visualization step; a topographic data visualization step: drawing a three-dimensional image of the topographic data; and a display output step. According to the ocean three-dimensional data visualization method, the hydrological data are processed, the hydrological data and the topographic data are matched in position in the space, and the three-dimensional images of the data are drawn respectively, so that the three-dimensional images of the hydrological data and the three-dimensional images of the topographic data can be displayed and output independently or simultaneously in the same coordinate system; therefore, the hydrological environment data and the topographic data are fit and are closer to the real situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data processing, and in particular, relates to a method for visualizing ocean three-dimensional data. Background Art

[0002] The hydrological environment data currently used for research mainly include seawater temperature, salinity, density, sound speed, etc. Due to the wide coverage of the spatial range and the high temporal or spatial resolution, the amount of data is relatively large, and the marine environmental information cannot be directly obtained. Therefore, researchers of hydrological environment data generally use data visualization to analyze the data.

[0003] In recent years, researchers of hydrological environment data at home and abroad have done a lot of work in data visualization. Looking at the development process of hydrological environment data visualization technology in chronological order, data visualization technology shows a development trend from traditional static to dynamic, from two-dimensional to multi-dimensional, from basic attribute information to analysis results and conclusions. At present, the research on the visualization of submarine topographic data mainly focuses on the simulation of seabed landforms; studying the complex interactions between a large amount of seawater, terrain, and light.

[0004] The current technology has the following shortcomings: 1. It only visualizes a single pair of hydrological environment data or only visualizes terrain data, and lacks technology that can combine their visualization results. 2. There is currently little research on the lighting effect of hydrological environment data. 3. The current display of data is mainly reflected in the overall display, lacking analysis of a certain dimension of the data, and the display in key areas is not obvious. Summary of the invention

[0005] In order to solve the technical problem of the single drawing mode of the existing ocean three-dimensional data visualization method, the present invention proposes an ocean three-dimensional data visualization method, which can solve the above problem.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions to achieve the above problems: A method for visualizing three-dimensional ocean data, comprising: A data acquisition step, reading three-dimensional volume data and two-dimensional terrain data, wherein the three-dimensional volume data includes hydrological data and / or aerial atmospheric data, and receiving geographic information of each data, wherein the geographic information includes depth information and latitude and longitude information; A hydrological data processing step, performing uneven processing on the hydrological data in terms of depth according to the depth information of the hydrological data, and calculating the hydrological data value corresponding to any depth; Steps for horizontally matching hydrological data with topographic data: Calculate the ratio of the longitude and latitude range of the hydrological data to the longitude and latitude range of the topographic data, and calculate the corresponding position of the hydrological data in the topographic data in the horizontal direction according to the ratio value. Steps for visualizing hydrological data: Draw a three-dimensional image of the hydrological data. Steps for visualizing topographic data: Draw a three-dimensional image of the topographic data. Display output steps: Display and output the three-dimensional image of the hydrological data and the three-dimensional image of the topographic data separately or simultaneously in the same coordinate system.

[0007] In some embodiments, the hydrological data processing steps include: Read the depth information of the hydrological data and record it using an array H. Each value of the array H represents the depth of each layer in the hydrological data. The number of layers of the hydrological data in the depth direction is n. The minimum and maximum values of the array H are hmin and hmax respectively. Calculate the step size step = (hmax - hmin) / (n - 1). For any depth dep, if traversing the array H, there is H[i] < dep < H[i + 1], then the data layer corresponding to this depth is i, and calculate the interpolation coefficient s = (dep - H[i]) / (H[i + 1] - H[i]). Calculate the hydrological data value data = data1*s + data2*(1 - s) corresponding to the depth dep, where data1 is the hydrological data value corresponding to the i-th layer, and data2 is the hydrological data value corresponding to the i + 1-th layer.

[0008] In some embodiments, the steps for horizontally matching hydrological data with topographic data include: The longitude range of the hydrological data is eLonMin~eLonMax, the latitude range of the hydrological data is eLatMin~eLatMax, the longitude range of the topographic data is tLonMin~tLonMax, and the latitude range of the topographic data is tLatMin~tLatMax. Calculate the ratio of the distances between the four boundaries of the hydrological data and the four boundaries of the topographic data in the horizontal direction to the longitude range or latitude range of the topographic data, which is the ratio value of the longitude and latitude range of the hydrological data to the longitude and latitude range of the topographic data.

[0009] In some embodiments, in the display output steps, when the three-dimensional image of the hydrological data and the three-dimensional image of the topographic data are simultaneously displayed and output in the same coordinate system, it further includes: Determine whether there is any obstruction between the hydrological data and the terrain data. If there is any obstruction, the terrain data is given priority, the three-dimensional image of the terrain data is displayed first, and the data obstructed by the terrain data is hidden; Determine whether there is overlap between hydrological data and terrain data. If there is overlap, set the hydrological data of the overlapping point to an invalid value, assign the color to an invalid value color, and keep the terrain data unchanged.

[0010] In some embodiments, the method for visualizing three-dimensional ocean data further includes: A visualization interaction step, detecting an interaction instruction input by a user, and performing corresponding interaction control on hydrological data visualization and / or terrain data visualization according to the interaction instruction; The interactive instructions include instructions for displaying or hiding terrain data.

[0011] In some embodiments, the interactive instruction includes a vertical ratio adjustment instruction, a vertical ratio slider is provided in the interactive interface, and the user inputs a vertical ratio modification value by dragging the vertical ratio slider; The vertical scale modification value is passed into the shader, and the built-in model scale setting function is modified in the shader. The scale value of the visualization result in the Z direction of the coordinate system is set to the vertical scale modification value, and the vertical scale of the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data is modified.

[0012] In some embodiments, the interactive instruction includes a terrain cutting instruction, and three bidirectional sliders, namely, a longitude profile, a latitude profile, and a depth profile, are provided in the interactive interface, and the user inputs the cutting position of the terrain data in six directions by dragging the bidirectional sliders; Modifying the positions of the six faces of the terrain data according to the cutting position, passing the positions of the six faces to the shader through a callback function, and modifying the patterns of the six faces of the three-dimensional image of the terrain data through a texture reading function in the shader; Modify the built-in variable value in the shader and set the part of the terrain data 3D image outside the six faces to be transparent; The three-dimensional image of hydrological data is limited to the range of the three-dimensional image of terrain data.

[0013] In some embodiments, the interactive instruction includes a depth point query instruction and a depth line query instruction. When the depth point query instruction is triggered, a position selected by the user in the three-dimensional image of the terrain data through the mouse is received, and a collision detection is performed to obtain the longitude value x and the latitude value y of the selected position in the hydrological data; Linear interpolation of hydrological data at different depths: including: Round x and y to get jx and jy, and calculate the interpolation coefficients sx=x-jx, sy=y-jy; For any layer j at the mouse click position, get the hydrological data value data11=data(jx, jy, j), data12=data(jx+1, jy, j), data13=data(jx, jy+1, j), and calculate the hydrological data value value2 of the jth layer: value1=data11*sx+data12*(1-sx); value2= value1*sy+data13*(1-sy); Extract the data at each depth of the selected location, draw a curve of the hydrological data changing with depth and output it.

[0014] In some embodiments, the interactive instructions include a depth line query instruction. When the depth line query instruction is triggered, the starting position and the ending position selected by the user in the three-dimensional image of the terrain data through the mouse are received, the starting position and the ending position are connected into a straight line, and the depth point query instruction is executed on all points on the straight line, and the data of all data points on the query line at each depth are extracted, and the data are drawn as a two-dimensional image output.

[0015] In some embodiments, the ocean three-dimensional data visualization method also includes a step of setting a lighting simulation for the three-dimensional image of the hydrological data, and the user sets the position of the light source through an interactive interface, and configures the light source color, diffuse reflection color, specular light color and their respective intensities.

[0016] Compared with the prior art, the advantages and positive effects of the present invention are: the ocean three-dimensional data visualization method of the present invention processes the hydrological data, matches the spatial positions of the hydrological data and the terrain data, and draws three-dimensional images of each data respectively. The three-dimensional images of the hydrological data and the three-dimensional images of the terrain data can be displayed and output separately or simultaneously in the same coordinate system, so that the hydrological environment data and the terrain data are matched, closer to the actual situation, and it is convenient for researchers to analyze the hydrological data in combination with the terrain, which is more intuitive.

[0017] Other features and advantages of the present invention will become more apparent after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of an embodiment of the method for visualizing ocean three-dimensional data proposed by the present invention; Figure 2 This is an effect diagram of an embodiment of the ocean three-dimensional data visualization method proposed by the present invention without performing uneven processing in depth; Figure 3 This is an effect diagram after uneven processing in depth in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention; Figure 4 It is an effect diagram of hiding terrain data in one embodiment of the method for visualizing three-dimensional ocean data proposed by the present invention; Figure 5 This is an effect diagram of vertical scale adjustment in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention; Figure 6 This is an effect diagram of turning on the coordinate axis system in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention; Figure 7 It is an effect diagram of a three-dimensional image of terrain data in one embodiment of the method for visualizing three-dimensional ocean data proposed by the present invention; Figure 8 It is a schematic diagram of a hydrological data curve drawn by a depth point query in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention; Fig. 9 It is a schematic diagram of a two-dimensional image drawn by a depth line query in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention; Fig.10 It is a schematic diagram of lighting settings in one embodiment of the ocean three-dimensional data visualization method proposed by the present invention. DETAILED DESCRIPTION

[0019] The specific implementation modes of the present invention will be further described in detail below in conjunction with the accompanying drawings.

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

[0021] Embodiment 1, the present invention proposes a method for visualizing three-dimensional ocean data, such as Figure 1 As shown, including: The data acquisition step reads three-dimensional volume data and two-dimensional terrain data, wherein the three-dimensional volume data includes hydrological data and / or airborne atmospheric data, and receives geographic information of each data, wherein the geographic information includes depth information and longitude and latitude information. In this embodiment, the visualization processing of three-dimensional hydrological data is described.

[0022] The system for implementing the three-dimensional data visualization method includes a data input and configuration module, a hydrological data storage module, a terrain data storage module, a hydrological data visualization module, a terrain data visualization module, a display module and an interaction module, wherein the interaction module includes a hydrological data visualization interaction module and a hydrological data visualization module.

[0023] The data input and configuration module will receive the data input by the user and allow the user to configure the corresponding geographic information. The hydrological data storage module and the terrain data storage module will receive the data in the data input and configuration module and identify the hydrological data and terrain data, and store them separately. The hydrological data visualization module and the terrain data visualization module will visualize the hydrological data and terrain data respectively. The display module will combine the visualization results of the hydrological data and the visualization results of the terrain data and display them on the screen. The hydrological data visualization interaction module is connected to the hydrological data visualization module, and the user can interact with the former to modify the visualization results of the hydrological data. The terrain data visualization interaction module is connected to the terrain data visualization module, and the user can interact with the former to modify the visualization results of the terrain data. The data query module is connected to the hydrological data storage module and the terrain data storage module, and the data can be queried and analyzed through this module.

[0024] When measuring ocean 3D data in practice, each layer is uneven. If it is directly output and displayed, it will be displayed evenly. Figure 2 The effect shown does not conform to the actual situation. Therefore, the ocean three-dimensional data visualization method also includes: The hydrological data processing step performs uneven processing on the hydrological data in depth according to the depth information of the hydrological data, and calculates the hydrological data value corresponding to any depth.

[0025] In the step of matching the hydrological data with the terrain data in the horizontal direction, the ratio of the latitude and longitude range of the hydrological data to the latitude and longitude range on the terrain data is calculated, and the corresponding position of the hydrological data in the terrain data in the horizontal direction is calculated according to the ratio value. The uneven display effect is as follows Figure 3 shown.

[0026] The hydrological data visualization step draws a three-dimensional image of the hydrological data.

[0027] The terrain data visualization step draws a three-dimensional image of the terrain data.

[0028] The display output step displays and outputs the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data separately or simultaneously in the same coordinate system.

[0029] The three-dimensional marine data visualization method of this embodiment processes hydrological data, matches the spatial positions of hydrological data and terrain data, and separately draws three-dimensional images of each data, enabling the three-dimensional images of hydrological data and terrain data to be displayed and output separately or simultaneously in the same coordinate system, making the hydrological environment data fit the terrain data, closer to the real situation, facilitating researchers to analyze hydrological data in combination with the terrain, and being more intuitive.

[0030] In some embodiments, the hydrological data can be, but is not limited to, seawater temperature, salinity, density, sound velocity, etc.

[0031] Each layer of hydrological data represents a depth value, that is, the hydrological data values are discrete in depth and have a large interval, and cannot be matched with the terrain data in depth. Therefore, in some embodiments, the hydrological data processing steps include: Read the depth information of the hydrological data in the hydrological data storage module and record it using an array H. Each value of the array H represents the depth of each layer in the hydrological data. The number of layers of the hydrological data in depth is n, and the minimum value and maximum value of the array H are hmin and hmax respectively.

[0032] Calculate the step size step = (hmax - hmin) / (n - 1); For any depth dep, if traversing the array H, there is H[i] < dep < H[i + 1], then the data layer corresponding to this depth is i, and calculate the interpolation coefficient s = (dep - H[i]) / (H[i + 1] - H[i]). H[i] represents the depth of the i-th layer of hydrological data, and H[i + 1] represents the depth of the (i + 1)-th layer of hydrological data.

[0033] Calculate the hydrological data value data = data1*s + data2*(1 - s) corresponding to the depth dep, where data1 is the hydrological data value corresponding to the i-th layer, and data2 is the hydrological data value corresponding to the (i + 1)-th layer. Thus, the hydrological data value corresponding to any depth dep can be interpolated and calculated, thereby realizing the non-uniform processing of hydrological data in depth, as Figure 2 、 Figure 3 shown, which are the effect diagrams before and after non-uniform processing respectively.

[0034] In the horizontal direction, the longitude and latitude range and data spatial resolution of the hydrological data are different from those of the terrain data. In order to display the three-dimensional images of the hydrological data and the terrain data in the same coordinate system, it is necessary to match the hydrological data and the terrain data in the horizontal direction.

[0035] In some embodiments, the steps of matching the hydrological data and the terrain data in the horizontal direction include: The longitude range of hydrological data is eLonMin~eLonMax, the latitude range of hydrological data is eLatMin~eLatMax, the longitude range of terrain data is tLonMin~tLonMax, and the latitude range of terrain data is tLatMin~tLatMax.

[0036] Calculate the ratio of the distance between the four boundaries of the hydrological data and the four boundaries of the terrain data in the horizontal direction to the longitude range or latitude range of the terrain data, that is, the ratio of the longitude and latitude range of the hydrological data to the longitude and latitude range of the terrain data.

[0037] Specifically, the latitude and longitude ratio values ​​of the latitude and longitude range of the hydrological environment data on the terrain data are calculated based on the latitude and longitude feature list.

[0038] Among them, the minimum longitude ratio value rlonmin is: rlonmin=(eLonMin-tLonMin) / (tLonMax-tLonMin).

[0039] The maximum longitude ratio value rlonmax is: rlonmax=(eLonMax-tLonMin) / (tLonMax-tLonMin).

[0040] The minimum latitude ratio value rlatmin is: rlatmin=(eLatMin-tLatMin) / (tLatMax-tLatMin).

[0041] The maximum latitude ratio value rlatmax is: rlatmax=(eLatMax-tLatMin) / (tLatMax-tLatMin).

[0042] With the coordinates of the terrain data as a reference, the coordinates of the environmental data are calculated according to the above-calculated ratio, and the terrain data and hydrological data are combined and displayed on the screen.

[0043] The interactive interface sets a "Show / Hide Terrain" button and provides an enumeration variable to record the current terrain display status; when the button is clicked, a signal is sent. After the background receives the signal, it modifies the value of the enumeration variable, and then modifies the terrain node display status through the encapsulated control model display and hide function, such as Figure 4 The following is the effect of hiding terrain data.

[0044] The hydrological data and the terrain data may be blocked or overlapped in space. If they are displayed and outputted at the same time, color mixing may occur, affecting viewing. To solve the above problem, in some embodiments, in the display and output step, when the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data are displayed and outputted at the same time in the same coordinate system, the step further includes: Determine whether there is any obstruction between the hydrological data and the terrain data. If there is any obstruction, the terrain data is given priority, the three-dimensional image of the terrain data is displayed first, and the data obstructed by the terrain data is hidden.

[0045] Determine whether there is overlap between hydrological data and terrain data. If there is overlap, set the hydrological data of the overlapping point to an invalid value, assign the color to an invalid value color, and keep the terrain data unchanged.

[0046] In order to solve the technical problem that the existing three-dimensional data visualization solution has poor interactivity with users, in some embodiments, the ocean three-dimensional data visualization method further includes: The visualization interaction step detects the interaction instructions input by the user and performs corresponding interaction control on the hydrological data visualization and / or terrain data visualization according to the interaction instructions.

[0047] Interaction instructions include instructions for displaying or hiding terrain data.

[0048] In some embodiments, the interactive interface sets a "Show / Hide Terrain" button and provides an enumeration variable to record the current terrain display status; when the button is clicked, a signal is sent, and after the background receives the signal, it modifies the value of the enumeration variable, and then modifies the terrain node display status through the encapsulated control model display and hiding function.

[0049] Users can manually choose to display or hide terrain data based on actual viewing needs.

[0050] In some embodiments, the interactive instruction includes a vertical ratio adjustment instruction, and a vertical ratio slider is provided in the interactive interface, and the user inputs a vertical ratio modification value by dragging the vertical ratio slider.

[0051] The vertical scale modification value is passed into the shader, and its built-in model scale setting function is modified in the shader. The scale value of the visualization result in the Z direction of the coordinate system is set to the vertical scale modification value, and the vertical scale of the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data is modified.

[0052] The user can freely adjust the display ratio of the visualization result in the vertical direction. In some embodiments, in order to ensure the realization of the above functions, a variable that records the vertical ratio value is set. When the value of the slider is modified, a signal is emitted. The signal records the current value of the slider. After the background obtains the signal, the variable that records the vertical ratio will be modified. Then, through the encapsulated model ratio setting function, the ratio value of the visualization result in the Z direction is set to the value recorded by the variable, thereby realizing the vertical zooming in or out of the visualization result. The effect is as follows: Figure 5 shown.

[0053] During actual use, the user needs to view the internal situation of the three-dimensional body. In order to be able to view it, in some embodiments, the interactive instructions include instructions for cutting terrain. The interactive interface is provided with three bidirectional sliders for longitude profile, latitude profile and depth profile. The user inputs the cutting position of the terrain data in six directions by dragging the bidirectional sliders.

[0054] The six directions can be respectively set along the positive and negative directions of the three-dimensional coordinate axis.

[0055] The positions of the six faces of the terrain data are modified according to the cutting position, and the positions of the six faces are passed to the shader through the callback function. In the shader, the patterns of the six faces of the three-dimensional image of the terrain data are modified through the texture reading function.

[0056] Modify the built-in variable value in the shader and set the part of the terrain data 3D image outside the six faces to be transparent. The pattern displayed by the six faces is the pattern of the cut surface.

[0057] When cutting the terrain data 3D image, it is also necessary to limit the hydrological data 3D image to the range of the terrain data 3D image. That is, according to the cutting position of the terrain data, the cutting position of the hydrological data is calculated according to the latitude and longitude ratio value, and the same section processing and display method as the terrain data is used to display the six surfaces of the cut water level data 3D image, such as Figure 7 shown.

[0058] In some embodiments, the interactive instructions include a depth point query instruction. When the depth point query instruction is triggered, the position selected by the user in the three-dimensional image of the terrain data through the mouse is received, and collision detection is performed to obtain the longitude value x and latitude value y of the selected position in the hydrological data.

[0059] When the user turns on the depth point query mode, he can click a point on the terrain with the mouse to obtain the depth value of the clicked position, and view the changes of the hydrological environment data at this position with the depth and the specific data value corresponding to each depth. This makes data analysis no longer limited to the macro perspective, and realizes data dimensionality reduction analysis and multi-angle analysis.

[0060] In some embodiments, linear interpolation is performed on hydrological data at different depths, including: Round x and y to get jx and jy, and calculate the interpolation coefficients sx=x-jx, sy=y-jy; For any layer j at the mouse click position, obtain the hydrological data values ​​data11=data(jx, jy, j), data12=data(jx+1, jy, j), data13=data(jx, jy+1, j), and calculate the hydrological data value value2 of the jth layer.

[0061] value1=data11*sx+data12*(1-sx); value2= value1*sy+data13*(1-sy).

[0062] Extract the data at each depth of the selected location, draw a curve of the hydrological data changing with depth and output it, such as Figure 8 shown.

[0063] In some embodiments, the interactive instruction includes a depth line query instruction. When the depth line query instruction is triggered, the starting position and the ending position selected by the user in the three-dimensional image of the terrain data by the mouse are received, the starting position and the ending position are connected into a straight line, and the depth point query instruction is executed for all data points on the straight line, and the data of all data points on the query line at each depth are extracted and drawn into a two-dimensional image output, such as Fig. 9 shown.

[0064] In some embodiments, the ocean three-dimensional data visualization method also includes the step of setting lighting simulation for the three-dimensional image of hydrological data. The user sets the position of the light source through an interactive interface, configures the light source color, diffuse reflection color, specular light color and their respective intensities, so as to simulate multiple light sources and make the visualization effect closer to reality.

[0065] To ensure the realization of the above functions, a "Light Source Settings" interface has been added. The upper part of the interface consists of three sliders: "Horizontal Angle", "Vertical Angle" and "Radius", which can be used to freely set the position of the light source; in the configuration bar below the interface, the lighting color, diffuse reflection color, specular light color and their respective intensities can be configured separately.

[0066] In the background, encapsulate a structure that records all lighting information to record lighting modifications; Modify the position of the light source. When the user modifies the values ​​of the three sliders, the background will obtain the values ​​of the three sliders and modify the variables that record the position of the light source in the structure, and then modify the position of the light source through the encapsulated function of modifying the position of the light source.

[0067] In some embodiments, a lighting model is designed in the background, that is, the final color seen = the original color of the model * lighting color * lighting intensity + diffuse reflection angle * diffuse reflection color * diffuse reflection intensity + specular light reflection angle * specular light color * specular light intensity. When the lighting color, diffuse reflection color, and specular light color parameters in the above interface are modified, a signal will be sent, and the signal contains the specific values ​​of these three parameters. After receiving the signal, the background modifies the relevant variables recording the lighting model information in the structure, and passes it to the shader to modify the corresponding values ​​in the lighting model, thereby modifying the visual lighting effect, such as Fig.10 shown.

[0068] In some embodiments, the user can choose to turn on or off the coordinate axis system in the interactive module, such as Figure 6 The following is the effect diagram of turning on the coordinate axis system.

[0069] To ensure the realization of the above functions, when setting the "Show Coordinate Axis" checkbox in the interactive interface, the background will obtain the status of the checkbox in real time, and emit a true signal when the checkbox is checked. After the background obtains the signal, the display status of the coordinate axis system is set to display through the encapsulated function of setting the coordinate axis display or hiding. When unchecking, the display status of the coordinate axis system is set to hidden through the function, thereby realizing the display and hiding of the coordinate axis system.

[0070] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for visualizing three-dimensional ocean data, characterized in that: Including: A data acquisition step of reading three-dimensional volume data and two-dimensional terrain data, where the three-dimensional volume data includes hydrological data and / or aerial atmosphere data, and receiving the geographic information of each data, and the geographic information includes depth information and longitude and latitude information; A hydrological data processing step of unevenly processing the hydrological data in depth according to the depth information of the hydrological data, and calculating the hydrological data value corresponding to any depth; A step of matching the hydrological data with the terrain data in the horizontal direction, calculating the ratio value of the longitude and latitude range of the hydrological data on the longitude and latitude range of the terrain data, and calculating the corresponding position of the hydrological data in the terrain data in the horizontal direction according to the ratio value; A hydrological data visualization step of drawing a three-dimensional image of the hydrological data; A terrain data visualization step of drawing a three-dimensional image of the terrain data; A display output step of separately or simultaneously displaying and outputting the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data in the same coordinate system.

2. The method for visualizing ocean three-dimensional data according to claim 1, characterized in that: The hydrological data processing step includes: Reading the depth information of the hydrological data and recording it with an array H, where each value of the array H represents the depth of each layer in the hydrological data, the number of layers of the hydrological data in depth is n, and the minimum and maximum values of the array H are hmin and hmax respectively; Calculating the step size step = (hmax - hmin) / (n - 1); For any depth dep, if traversing the array H, there is H[i] < dep < H[i + 1], then the data layer corresponding to this depth is i, and calculating the interpolation coefficient s = (dep - H[i]) / (H[i + 1] - H[i]); Calculating the hydrological data value data = data1*s + data2*(1 - s) corresponding to the depth dep, where data1 is the hydrological data value corresponding to the i-th layer, and data2 is the hydrological data value corresponding to the i + 1-th layer.

3. The method for visualizing ocean three-dimensional data according to claim 1, characterized in that: The step of matching the hydrological data with the terrain data in the horizontal direction includes: The longitude range of the hydrological data is eLonMin~eLonMax, the latitude range of the hydrological data is eLatMin~eLatMax, the longitude range of the terrain data is tLonMin~tLonMax, and the latitude range of the terrain data is tLatMin~tLatMax; Calculating the ratio of the distance between the four boundaries of the hydrological data and the four boundaries of the terrain data in the horizontal direction to the longitude range or latitude range of the terrain data, which is the ratio value of the longitude and latitude range of the hydrological data on the longitude and latitude range of the terrain data.

4. The method for visualizing ocean three-dimensional data according to claim 1, characterized in that: In the display output step, when the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data are simultaneously displayed and output in the same coordinate system, it further includes: Judging whether there is occlusion between the hydrological data and the terrain data. If there is occlusion, taking the terrain data as the main, preferentially displaying the three-dimensional image of the terrain data, and hiding the data occluded by the terrain data; Judging whether there is overlap between the hydrological data and the terrain data. If there is overlap, setting the hydrological data at the overlapping points to invalid values and assigning the color to the invalid value color, and keeping the terrain data unchanged.

5. The method for visualizing ocean three-dimensional data according to claim 1, characterized in that: The method for visualizing the three-dimensional ocean data further includes: A visualization interaction step, detecting an interaction instruction input by a user, and performing corresponding interaction control on hydrological data visualization and / or terrain data visualization according to the interaction instruction; The interactive instructions include instructions for displaying or hiding terrain data.

6. The method for visualizing ocean three-dimensional data according to claim 5, characterized in that: The interactive instruction includes a vertical ratio adjustment instruction. A vertical ratio slider is provided in the interactive interface, and the user inputs a vertical ratio modification value by dragging the vertical ratio slider; The vertical scale modification value is passed into the shader, and the built-in model scale setting function is modified in the shader, and the scale value of the visualization result in the Z direction of the coordinate system is set to the vertical scale modification value, thereby modifying the vertical scale of the three-dimensional image of the hydrological data and the three-dimensional image of the terrain data.

7. The method for visualizing ocean three-dimensional data according to claim 5, characterized in that: The interactive instructions include terrain cutting instructions. The interactive interface is provided with three bidirectional sliders, namely, longitude profile, latitude profile and depth profile. The user inputs the cutting positions of the terrain data in six directions by dragging the bidirectional sliders. Modifying the positions of the six faces of the terrain data according to the cutting position, passing the positions of the six faces to the shader through a callback function, and modifying the patterns of the six faces of the three-dimensional image of the terrain data in the shader through a texture reading function; Modify the built-in variable value in the shader and set the part of the terrain data 3D image outside the six faces to be transparent; The three-dimensional image of hydrological data is limited to the range of the three-dimensional image of terrain data.

8. The method for visualizing ocean three-dimensional data according to claim 5, characterized in that: The interactive instruction includes a depth point query instruction. When the depth point query instruction is triggered, a position selected by a user in the three-dimensional image of the terrain data through a mouse is received, and a collision detection is performed to obtain the longitude value x and the latitude value y of the selected position in the hydrological data; Linear interpolation of hydrological data at different depths: including: Round x and y to get jx and jy, and calculate the interpolation coefficients sx=x-jx, sy=y-jy; For any layer j at the mouse click position, get the hydrological data value data11=data(jx, jy, j), data12=data(jx+1, jy, j), data13=data(jx, jy+1, j), and calculate the hydrological data value value2 of the jth layer: value1=data11*sx+data12*(1-sx); value2= value1*sy+data13*(1-sy); Extract the data at each depth of the selected location, draw a curve of the hydrological data changing with depth and output it.

9. The method for visualizing ocean three-dimensional data according to claim 8, characterized in that: The interactive instructions include a depth line query instruction. When the depth line query instruction is triggered, the starting position and the ending position selected by the user through the mouse in the three-dimensional image of the terrain data are received, the starting position and the ending position are connected into a straight line, and the depth point query instruction is executed on all data points on the straight line, and the data of all data points on the query line at each depth are extracted and drawn into a two-dimensional image for output.

10. The method for visualizing ocean three-dimensional data according to any one of claims 1 to 9, characterized in that: The method for visualizing ocean three-dimensional data also includes the step of setting illumination simulation for the three-dimensional image of hydrological data, and the user sets the position of the light source through an interactive interface, and configures the light source color, diffuse reflection color, specular light color and their respective intensities.

Citation Information

Patent Citations

  • Visual analyzing and predicting method based on a virtual geological model

    CN101515372A

  • Ocean environment visualization method

    CN102855662A

  • Marine environment information superposition and fusion display method based on electronic chart

    CN112734684A

  • Visualization method and device for marine hydro meteorological data and medium

    CN116912441A

  • Two-dimensional and three-dimensional linkage visual display method for sea island change contrastive analysis

    CN117611755A