A multi-beam sounding point cloud mobile terminal rendering method and system

By using a fixed reference origin for local coordinate transformation and segmented rendering in a multibeam echo sounding system, the problem of insufficient single-precision floating-point representation was solved, the consistency between the camera and the point cloud coordinate reference was achieved, the accuracy and continuity of rendering were improved, and the stability and efficiency of seabed point cloud rendering were ensured.

CN123160744APending Publication Date: 2026-11-24SOUTH SURVEYING & MAPPING INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611442256.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

When multibeam echo sounding systems render 3D point clouds over the seabed in real time on mobile terminals, the insufficient range of single-precision floating-point numbers leads to position jitter and misalignment. Periodic reconstruction of buffers causes rendering stutters, and inconsistency between the camera and the point cloud coordinate reference affects the continuity and reliability of the operation.

Method used

A fixed reference origin is used for local coordinate transformation of multibeam bathymetry point cloud data. The camera and point cloud share the same coordinate reference. The data is written to the vertex buffer object in batches and rendered in segments. Double-precision floating-point numbers are used to improve the coordinate transformation accuracy. The state of the buffer object is updated in combination with preset ring rules to achieve camera alignment accuracy and rendering interface continuity.

Benefits of technology

It reduces the inter-frame deviation of the rendering position of multibeam bathymetry point clouds, improves the camera's alignment accuracy with multibeam bathymetry point clouds and the continuity of the seabed point cloud rendering interface, and ensures the stability and efficiency of the rendering process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160744A_ABST
    Figure CN123160744A_ABST
Patent Text Reader

Abstract

The application provides a multi-beam sounding point cloud mobile terminal rendering method and system, relates to the technical field of graphic rendering, and is applied to a mobile terminal rendering system comprising a camera subsystem. The method comprises the following steps: acquiring multiple batches of point cloud data in real time; determining a point cloud center according to the overall coordinate distribution of the first batch of point cloud data, and setting the point cloud center as a fixed reference origin and keeping the point cloud center unchanged in subsequent processing; converting each batch of point cloud data into local coordinates based on the origin; synchronizing the origin to the camera subsystem, so that the point cloud and the camera are in the same coordinate system; writing the local point cloud into a vertex buffer object batch by batch, and updating the surrounding state and the cursor position according to a preset ring rule; and combining the vertex buffer data, the surrounding state, the cursor position and the camera observation state to perform mobile terminal segmented rendering, thereby generating a seabed point cloud rendering interface. The method reduces the interframe deviation of the rendering positions of each batch of multi-beam sounding point clouds, improves the alignment accuracy of the camera to the multi-beam sounding point cloud, and improves the continuity of the display of the seabed point cloud rendering interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of graphics rendering technology, specifically relating to a mobile rendering method and system for multibeam bathymetry point clouds. Background Technology

[0002] Multibeam bathymetry systems continuously output three-dimensional point clouds of the seabed at a rate of tens of thousands of points per second during operation. Operators need to render these point clouds in real-time on mobile terminals to monitor the bathymetry results. The accuracy and continuity of the point cloud rendering directly affect the efficiency of marine surveying operations. Currently, mobile terminals typically use a graphical interface to directly render point cloud data: the coordinates of the bathymetry points are written as single-precision floating-point numbers to a vertex buffer object, and the vertex shader performs coordinate transformation and drawing; as data continues to arrive, the vertex buffer object is periodically rebuilt to accommodate new data; the rendering perspective is independently calculated by the camera system based on the original coordinates.

[0003] However, sounding points generally use planar projection coordinates, with coordinate values ​​on the order of hundreds of thousands of meters, which exceeds the high-precision representation range of single-precision floating-point numbers, causing positional jitter and misalignment in the rendered image; buffer periodic reconstruction can cause rendering stutters; in addition, the camera and point cloud coordinate references are inconsistent, and the following view cannot be aligned with the point cloud, thus affecting the continuity and reliability of maritime operations. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a mobile rendering method and system for multibeam bathymetry point clouds to solve the aforementioned problems. This method reduces the inter-frame deviation of the rendering positions of multibeam bathymetry point clouds in different batches, and improves the camera's alignment accuracy with the multibeam bathymetry point clouds and the continuity of the seabed point cloud rendering interface display.

[0005] To address the aforementioned technical problems, this invention provides a mobile rendering method for multibeam bathymetry point clouds, applied to a mobile rendering system, the mobile rendering system including a camera subsystem, and the method comprising the following steps: Real-time acquisition of multiple batches of multibeam bathymetry point cloud data; The point cloud center is determined based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data. The point cloud center is then set as a fixed reference origin, and this fixed reference origin remains unchanged during the processing of subsequent batches of multibeam bathymetry point cloud data. Based on the fixed reference origin, local coordinate transformation is performed on the multibeam bathymetry point cloud data of each batch to obtain the local coordinate point cloud data of the corresponding batch. The fixed reference origin is synchronized to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The local coordinate point cloud data is written into the vertex buffer object in batches, and the current surrounding state and current cursor position in the vertex buffer object are updated in real time based on the preset ring rule. Based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, segmented rendering is performed on the mobile device to obtain the seabed point cloud rendering interface.

[0006] In the above scheme, when the first batch of data arrives, the center of the point cloud is determined as a fixed reference origin based on the overall coordinate distribution. This fixed reference origin remains unchanged in subsequent batches. Each batch of multibeam bathymetry point cloud data undergoes local coordinate transformation based on the same fixed reference origin. The local coordinates of the same spatial point are identical after transformation in each batch, and its corresponding rendering position remains consistent frame by frame, without shifting with the increase in processing batches. After the fixed reference origin is synchronized to the camera subsystem, the camera and the point cloud share the same coordinate reference, allowing the camera to directly align with the point cloud. Local coordinate point clouds are written to the vertex buffer object batch by batch, and segmented rendering is performed based on the current orbital state and current cursor position. Each batch of continuously arriving data is sequentially written to and updated in a vertex buffer object with a fixed capacity. Thus, the continuous arrival of multiple batches of point cloud data is sequentially updated in a vertex buffer object with a fixed capacity. The point cloud and camera share the same fixed reference origin with a constant value as the coordinate reference, reducing inter-frame deviation in the rendering position of each batch of multibeam bathymetry point cloud, improving the camera's alignment accuracy with the multibeam bathymetry point cloud, and enhancing the continuity of the seabed point cloud rendering interface.

[0007] Furthermore, the determination of the point cloud center based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data includes: Extract the eastward coordinates, northward coordinates, and water depth of each sounding point from the first batch of multibeam bathymetry point cloud data; The eastward coordinates, northward coordinates, and water depth of each of the aforementioned depth sounding points are accumulated in the measurement area using double-precision floating-point method to obtain the eastward accumulated amount, the northward accumulated amount, and the depth accumulated amount; The average of the eastward cumulative amount, northward cumulative amount and depth cumulative amount based on the number of sounding points in the first batch of multibeam bathymetry point cloud data is used to obtain the corresponding eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area and the water depth reference. The center of the survey area is formed by combining the eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area, and the water depth reference.

[0008] In the above scheme, the eastward coordinates, northward coordinates, and water depth of each sounding point in the first batch are extracted, so that the central calculation covers the three coordinate components of all sounding points in the first batch. The three components are accumulated in the survey area using double-precision floating-point method. Double-precision floating-point numbers have more significant digits than single-precision floating-point numbers, resulting in less rounding error accumulation when accumulating large batch coordinate values ​​point by point. The resulting eastward, northward, and depth accumulations are closer to the true sum of each component. The three accumulations are averaged based on the number of sounding points in the first batch. The resulting eastward coordinates, northward coordinates, and water depth reference of the survey area center are the arithmetic mean of the corresponding components of all sounding points in the first batch, which can represent the overall coordinate distribution of the first batch of data. The three means are combined into a point cloud center, which contains both planar position and depth reference. After serving as a fixed reference origin, the local coordinate transformations of subsequent batches all use this as the sole translation reference, improving the accuracy and representativeness of the point cloud center calculation, ensuring the accuracy and stability of the fixed reference origin value, and thus reducing the deviation of local coordinate transformations in subsequent batches.

[0009] Further, the step of performing local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin to obtain the local coordinate point cloud data of the corresponding batch includes: For each sounding point in the multibeam echo sounding point cloud data of each batch, the eastward and northward coordinates of the sounding point are translated in a plane based on the fixed reference origin to obtain the local eastward and local northward coordinates of the sounding point; Using the water depth reference at the fixed reference origin as the depth datum, the relative water depth of the sounding point relative to the depth datum is calculated, and the relative water depth is oriented according to the preset elevation transformation rule to obtain the local height coordinates of the sounding point. Preserve the echo intensity at that sounding point; The echo intensity, local eastward coordinates, local northward coordinates, and local altitude coordinates of each sounding point are used to construct the local coordinate point cloud data for the corresponding batch.

[0010] In the above scheme, the eastward and northward coordinates of each sounding point are translated in planar position based on a fixed reference origin. The resulting local eastward and local northward coordinates are the relative coordinates of that point relative to the fixed reference origin. Since the value of the fixed reference origin is constant, the relative coordinates calculated for the same sounding point in any batch are unique, and the conversion results of each batch are consistent. The relative water depth is calculated using the water depth reference of the fixed reference origin as the depth calculation surface, and the direction is transformed according to the preset elevation transformation rules to obtain the local height coordinates. This unifies the vertical components of each sounding point into a height representation with the same depth calculation surface as the reference and consistent direction, avoiding inconsistencies in the vertical component directions. The echo intensity is retained, so that the local coordinate point cloud data retains the original intensity information while containing position information. The echo intensity and the three local coordinate components are used to construct the data of the corresponding batch, so that the data written to the vertex buffer object is the point cloud data after unified transformation. The transformation and data organization are completed once before writing, which improves the consistency of point cloud positions and the standardization of data organization in subsequent segmented rendering.

[0011] Furthermore, synchronizing the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system includes: The fixed reference origin is synchronized to the camera subsystem so that the fixed reference origin serves as the local coordinate origin of the camera subsystem. Based on the fixed reference origin, the observation target point of the camera subsystem is reset to a local position with the eastward coordinates of the center of the survey area and the northward coordinates of the center of the survey area as the origin, thus obtaining the reset observation target point; The current carrier position is obtained and a copy is retained. The current carrier position is then normalized to the local coordinate system where the fixed reference origin is located to obtain the local position of the carrier. The reset observation target point and the local position of the carrier are determined as the current observation state of the camera subsystem, so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system.

[0012] In the above scheme, a fixed reference origin is synchronized to the camera subsystem and used as its local coordinate origin, so that the camera's coordinate calculations and the local coordinate point cloud data use the same numerical origin as the calculation reference. Based on the fixed reference origin, the observation target point is reset to a local position with the east and north coordinates of the survey area center as the origin, so that the coordinates of the camera's observation target point and the local coordinates of the point cloud data are under the same coordinate representation. The current carrier position is obtained and a copy is retained. Then, the current carrier position is normalized to the local coordinate system where the fixed reference origin is located to obtain the carrier's local position, so that the carrier position, the observation target point, and the point cloud data share the same origin. The current observation state determined by the camera subsystem can be directly aligned with the point cloud. At the same time, the copy retention ensures that the original position information of the carrier before normalization is completely preserved. When the fixed reference origin is reset or changed, the original position of the carrier can be restored based on the copy. The normalization process will not cause the loss of carrier position information, improving the consistency of the coordinate reference between the camera subsystem and the point cloud data and the recoverability of the carrier position information.

[0013] Furthermore, the local coordinate point cloud data is written into a vertex buffer object in batches, and the current wrapping state and current cursor position in the vertex buffer object are updated in real time based on a preset ring rule, including: The storage space of the vertex buffer object is set based on the preset fixed point capacity, and the storage space extends from the storage start point to the storage end point. The current remaining space capacity is determined based on the current cursor position and the storage endpoint. Starting from the current cursor position, the local coordinate point cloud data of the current batch is written to the vertex buffer object, and the current surrounding state and the current cursor position are updated in real time, wherein: If the number of depth measurement points in the local coordinate point cloud data of the current batch is greater than or equal to the preset fixed point capacity, then only the last few points of the preset fixed point capacity in the local coordinate point cloud data of the current batch are retained. The retained local coordinate point cloud data is written to the vertex buffer object from the storage starting point to overwrite the local coordinate point cloud data already stored in the vertex buffer object. The current cursor position is reset to the storage starting point, and the current surround state is updated to surrounded. If the number of depth measurement points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is greater than the number of depth measurement points, then the local coordinate point cloud data of the current batch is continuously written from the current cursor position, and the current cursor position is moved forward in the direction of the storage endpoint by the number of depth measurement points of the current batch. If the number of points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is less than or equal to the number of sounding points, then the local coordinate point cloud data of the current batch is first written to the storage endpoint from the current cursor position, and then the local coordinate point cloud data of the current batch that has not yet been written is continued to be written from the storage starting point to cover the local coordinate point cloud data already stored at the storage starting point, the current surround state is updated to surrounded, and the current cursor position is updated to the end position of writing the local coordinate point cloud data that has not yet been written.

[0014] In the above scheme, the storage space of the vertex buffer object is set based on the preset fixed point capacity, so that the capacity of the buffer object is fixed to the storage amount corresponding to the number of points and does not expand due to continuous data arrival. The current remaining space capacity is determined according to the current cursor position and the storage endpoint, so that the range that can be continuously written can be clearly defined before each batch of writing. When the number of points in this batch is greater than or equal to the fixed point capacity, only the last fixed point capacity is retained and the data is written from the storage starting point to overwrite the existing data. The cursor is reset to the storage starting point, so that the entire buffer content is replaced by the latest data of this batch without exceeding the fixed capacity. When the remaining space capacity is greater than the number of points in this batch, continuous writing is performed and the cursor is moved forward. When the remaining space is insufficient, the data is first written to the storage endpoint and then continued from the storage starting point to overwrite the old data at the starting point and update the cursor to the end position of the continuation. This ensures that the data of a batch is completely written to the fixed space without going out of bounds, and the new data replaces the oldest data written in sequence. The real-time update of the wrap-around state and the cursor position ensures that the distribution range of effective data in the buffer object after each batch of writing can always be determined based on these two states, which improves the space utilization and the orderliness of data updates of the fixed capacity buffer object in the process of multi-batch writing.

[0015] Furthermore, the step of performing segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface, includes: If the current surrounding state is not surrounding, the local coordinate point cloud data between the starting point and the current cursor position stored in the vertex buffer object is determined as the data to be rendered, and the data to be rendered is drawn in a single draw on the mobile device to obtain the point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is at the storage starting point, then all local coordinate point cloud data in the vertex buffer object are determined as the data to be rendered, and the data to be rendered is drawn in one go on the mobile terminal to obtain point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is not located at the storage start point, then the local coordinate point cloud data between the current cursor position and the storage end point in the vertex buffer object is determined as the prior data segment to be rendered, and the local coordinate point cloud data between the storage start point and the current cursor position is determined as the subsequent data segment to be rendered. The prior data segment to be rendered and the subsequent data segment to be rendered are drawn sequentially on the mobile device to obtain point cloud drawing data. Based on the current observation state of the camera subsystem, the point cloud drawing data is observed and presented to obtain the seabed point cloud rendering interface.

[0016] In the above scheme, when the wrapping state is not wrapping, the data between the storage start point and the current cursor position is determined as the data to be rendered and drawn in a single stroke, so that the rendering range is consistent with the actual data writing range when not wrapping; when the wrapping state is wrapped and the cursor is at the storage start point, all data is determined as the data to be rendered and drawn in a single stroke, so that the rendering range covers the entire area in the buffer object that has been completely filled by the new data; when the wrapping state is wrapped and the cursor is not at the storage start point, the data between the cursor position and the storage end point is determined as the data segment to be rendered first, and the data between the storage start point and the cursor position is determined as the data segment to be rendered later, and drawn in sequence, so that two physically discontinuous data segments after wrapping are completely rendered according to the order of writing, and the number of single or segmented drawings directly corresponds to the data distribution state; the point cloud drawing data is observed and presented based on the current observation state of the camera subsystem, so that the rendering result is displayed according to the aligned observation state, which improves the matching between the rendering range and the effective data distribution in the buffer object and the completeness of the rendering.

[0017] Furthermore, the step of performing segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface, includes: Local height coordinates are obtained based on the local coordinate point cloud data; The local height coordinates of the local coordinate point cloud data are restored from the height semantics (height is positive upwards) to the depth semantics (water depth is positive downwards) to obtain the relative water depth of each sounding point relative to the fixed reference origin. Based on the relative water depth and the water depth benchmark of the fixed reference origin, the original water depth of each depth measuring point is calculated to obtain depth color data; The point cloud rendering data is then subjected to depth coloring based on the depth coloring data, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

[0018] In the above scheme, local height coordinates are obtained based on local coordinate point cloud data. This local height coordinate system is represented by a relative height after orientation transformation. The height semantics, which is positive upwards, are restored to the depth semantics, which is positive downwards, to obtain the relative water depth of each sounding point relative to a fixed reference origin. This restoration operation corresponds to the orientation transformation before writing, allowing the rendering stage to obtain the intermediate quantity of relative water depth again. Then, the original water depth of each sounding point is calculated based on the relative water depth and the water depth reference of the fixed reference origin. Since the water depth reference value is constant, the original water depth calculated for the same sounding point is consistent with the water depth in its original sounding data. The original water depth is used as the depth coloring data for depth coloring, so that the depth value on which the coloring is based is the true water depth of the sounding point. The value of the depth coloring threshold directly corresponds to the original water depth. The color distribution of the point cloud reflects the true water depth distribution and does not change due to the translation of the point cloud through the fixed reference origin. Combined with the seabed point cloud rendering interface obtained after the current observation state of the camera, the correspondence between its color and the true water depth remains accurate, improving the realism of depth coloring and the fidelity of the rendering interface.

[0019] Furthermore, the step of applying depth color to the point cloud rendering data based on the depth coloring data, and combining this with the current observation state of the camera subsystem to present the rendered data, results in the seabed point cloud rendering interface, including: The depth coloring data is normalized based on a preset depth coloring range to obtain normalized depth data. Based on the normalized depth data, the texture of the preset depth lookup table is sampled to obtain a depth-colored set. The point cloud rendering data is depth-colored based on the depth-coloring set, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

[0020] In the above scheme, the depth coloring data is normalized based on a preset depth coloring range, so that the depth data within this coloring range is mapped to normalized depth data, which is in a uniform value range. The same lookup table texture can thus adapt to different coloring ranges. When adjusting the coloring range, only the normalization mapping needs to be adjusted accordingly without changing the lookup table itself. The preset depth lookup table texture is sampled based on the normalized depth data. Each normalized depth value obtains the corresponding color after one texture sampling, resulting in a depth coloring color set. The coloring process is completed through sampling, and the color data does not need to be pre-written into the vertex data in the vertex buffer object. When coloring the point cloud rendering data with the depth coloring color set, the local coordinate point cloud data in the vertex buffer object remains unchanged. Therefore, updating the preset depth coloring range or changing the preset depth lookup table texture only involves updating the normalization parameters or texture, without rewriting the point cloud data in the vertex buffer object. Combined with the current observation state of the camera, a seabed point cloud rendering interface that reflects water depth and changes with the observation state is obtained, which improves the flexibility and rendering efficiency of depth coloring adjustment.

[0021] Furthermore, prior to the single drawing or the sequential drawing, the method further includes: A parameter snapshot is created based on preset rendering parameters, and the parameter snapshot is protected by a mutex lock. In response to a rendering parameter modification request, rendering modification parameters are determined based on the rendering parameter modification request, the rendering modification parameters are written to the parameter snapshot, and an atomic dirty flag is set on the parameter snapshot; Based on the parameter snapshot, the atomic dirty flag is detected. When the atomic dirty flag is detected, the parameter snapshot is consumed and the atomic dirty flag is cleared according to the preset consumption adjustment rules to obtain the adjusted rendering parameters. Based on the adjusted rendering parameters, at least one of the data to be rendered, the preceding data segment to be rendered, and the subsequent data segment to be rendered is rendered and drawn to obtain the point cloud drawing data.

[0022] In the above scheme, a parameter snapshot protected by a mutex lock is established based on preset rendering parameters, so that the rendering parameters are centrally stored in the same snapshot. The mutex lock ensures that multiple modification requests will not interfere with each other when written to the snapshot concurrently. When responding to a rendering parameter modification request, the determined rendering modification parameters are written to the parameter snapshot and an atomic dirty flag is set on the snapshot. This allows parameter modification to be completed by writing to the snapshot and setting the flag. Modification requests can return without waiting for the drawing process to complete, and modification operations and drawing operations are separated. Based on the parameter snapshot, the atomic dirty flag is detected. When the dirty flag is detected, the snapshot is consumed according to the preset consumption adjustment rules and the flag is cleared. This allows the drawing side to read all the modifications to be effective in the snapshot at once according to fixed rules before drawing. Multiple modification requests are first merged into the snapshot and then uniformly applied. The drawing will not read the intermediate state of the modification. The rendering data to be rendered is adjusted according to the adjusted rendering parameters and the drawing is performed. This ensures that the rendering parameters used for each drawing are consistent with the content of the consumed parameter snapshot. The parameter modification results take effect in the drawing in a determined order, which improves the concurrency security of rendering parameter modification and the consistency of parameter state during the drawing process.

[0023] The present invention also provides a mobile rendering system for multibeam bathymetry point clouds, the mobile rendering system for multibeam bathymetry point clouds including a camera subsystem, and the mobile rendering system for multibeam bathymetry point clouds further including: The data acquisition module is used to acquire multiple batches of multibeam bathymetry point cloud data in real time; The center determination module is used to determine the center of the point cloud based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data, and to determine the point cloud center as a fixed reference origin, and to keep the fixed reference origin unchanged in the subsequent batches of multibeam bathymetry point cloud data processing. The coordinate transformation module is used to perform local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin, so as to obtain the local coordinate point cloud data of the corresponding batch. The origin synchronization module is used to synchronize the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The circular writing module is used to write the local coordinate point cloud data into the vertex buffer object in batches, and update the current surrounding state and current cursor position in the vertex buffer object in real time based on the preset circular rules. The segmented rendering module is used to perform segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface.

[0024] In the above scheme, the data acquisition module acquires multiple batches of point cloud data in real time, ensuring a continuous flow of data into the system. The center determination module determines the point cloud center based solely on the overall coordinate distribution of the first batch of data and uses it as a fixed reference origin, maintaining it unchanged in subsequent batch processing. This ensures that the local coordinates of the same spatial point are identical after transformation in each batch, resulting in consistent rendering positions frame by frame. The coordinate transformation module transforms each batch of data based on the fixed reference origin, maintaining a unified conversion relationship between each batch of point cloud data and the fixed reference origin. The origin synchronization module synchronizes the fixed reference origin to the camera subsystem, ensuring that the camera's coordinate reference aligns with the local coordinate points. The cloud data is numerically consistent, and the camera can be directly aligned with the point cloud. The circular writing module writes local coordinate point cloud data to the vertex buffer object in batches and updates the orbiting state and cursor position according to the preset circular rules, so that the continuously arriving data is written sequentially and updated cyclically within a fixed capacity buffer space. The segmented rendering module renders in segments according to the orbiting state, cursor position, and the current observation state of the camera, so that each time the current valid data range in the corresponding buffer object is drawn, the system can achieve stable rendering position across batches, accurate camera alignment, and continuous updates of the rendering interface, thereby improving the overall consistency and continuity of multibeam bathymetry point cloud mobile rendering. Attached Figure Description

[0025] Figure 1 This is a schematic diagram of a mobile terminal rendering method for multibeam bathymetry point clouds provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of a mobile rendering system architecture for multibeam bathymetry point clouds, provided as an embodiment of the present invention. Detailed Implementation

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] Please see Figure 1 This embodiment provides a mobile rendering method for multibeam bathymetry point clouds, applied to a mobile rendering system. The mobile rendering system includes a camera subsystem, and the method includes the following steps: Step S1: Acquire multiple batches of multibeam bathymetry point cloud data in real time; Step S2: Determine the center of the point cloud based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data, and set the point cloud center as a fixed reference origin. Keep the fixed reference origin unchanged in the subsequent batches of multibeam bathymetry point cloud data processing. Step S3: Based on the fixed reference origin, perform local coordinate transformation on the multibeam bathymetry point cloud data of each batch to obtain the local coordinate point cloud data of the corresponding batch; Step S4: Synchronize the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system; Step S5: Write the local coordinate point cloud data into the vertex buffer object in batches, and update the current surrounding state and current cursor position in the vertex buffer object in real time based on the preset ring rule; Step S6: Based on the local coordinate point cloud data in the vertex buffer object, the current orbit state, the current cursor position, and the current observation state of the camera subsystem, perform segmented rendering on the mobile device to obtain the seabed point cloud rendering interface.

[0028] In this embodiment, when the first batch of data arrives, the center of the point cloud is determined as a fixed reference origin based on the overall coordinate distribution. This fixed reference origin remains unchanged in subsequent batches. Each batch of multibeam bathymetry point cloud data undergoes local coordinate transformation based on the same fixed reference origin. The local coordinates of the same spatial point are identical after transformation in each batch, and its corresponding rendering position remains consistent frame by frame, without shifting with the increase in processing batches. After the fixed reference origin is synchronized to the camera subsystem, the camera and the point cloud share the same coordinate reference, allowing the camera to directly align with the point cloud. Local coordinate point clouds are written to a vertex buffer object batch by batch, and segmented rendering is performed based on the current orbital state and current cursor position. Each batch of continuously arriving data is sequentially written to and updated in a vertex buffer object with a fixed capacity. Thus, the continuous arrival of multiple batches of point cloud data is sequentially updated in a vertex buffer object with a fixed capacity. The point cloud and camera share the same fixed reference origin with a constant value as the coordinate reference, reducing inter-frame deviation in the rendering position of each batch of multibeam bathymetry point cloud and improving the camera's alignment accuracy with the multibeam bathymetry point cloud and the continuity of the seabed point cloud rendering interface.

[0029] Furthermore, the determination of the point cloud center based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data includes: Extract the eastward coordinates, northward coordinates, and water depth of each sounding point from the first batch of multibeam bathymetry point cloud data; The eastward coordinates, northward coordinates, and water depth of each of the aforementioned depth sounding points are accumulated in the measurement area using double-precision floating-point method to obtain the eastward accumulated amount, the northward accumulated amount, and the depth accumulated amount; The average of the eastward cumulative amount, northward cumulative amount and depth cumulative amount based on the number of sounding points in the first batch of multibeam bathymetry point cloud data is used to obtain the corresponding eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area and the water depth reference. The center of the survey area is formed by combining the eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area, and the water depth reference.

[0030] In one embodiment, the business thread submits a batch of multibeam bathymetry point cloud data to the rendering system in the form of a DirectByteBuffer. Each bathymetry point occupies 16 bytes, arranged in an alternating pattern of four single-precision floating-point numbers: east coordinates, north coordinates, water depth, and echo intensity. Water depth is positive downwards, and echo intensity characterizes the amplitude of the echo signal corresponding to the bathymetry point. Upon receiving this batch of data, the Java Native Interface (JNI) boundary layer performs defensive checks. These checks include: the buffer is not empty; the number of bathymetry points in the batch is between 1 and 10,000,000; and the actual number of bytes in the buffer is not less than the product of the number of bathymetry points and 16. If any of these checks fails, the batch of data is refused to be written to the vertex buffer object, and an exception is thrown to the Java layer. This prevents out-of-bounds reads caused by insufficient buffer bytes or out-of-bounds point counts, ensuring the integrity and validity of the data written to the vertex buffer object.

[0031] After completing the defensive verification, the rendering system performs local coordinate transformation based on the double-precision frozen origin. It should be noted that the double-precision frozen origin in this embodiment is the aforementioned fixed reference origin. The double-precision floating-point number float64 has more significant digits than the single-precision floating-point number float32, resulting in less rounding error accumulation when accumulating large batches of coordinate values ​​point by point. Specifically, when the first batch of multibeam bathymetry point cloud data arrives, the CPU performs double-precision floating-point calculations on the eastward coordinates, northward coordinates, and water depth of each bathymetry point in the batch to accumulate the eastward, northward, and depth cumulative values. This is achieved by initializing the eastward, northward, and depth cumulative values ​​(sumX, sumY, and sumZ) to zero. Then, the eastward, northward, and water depth values ​​of each bathymetry point in the first batch are converted from single-precision floating-point numbers to double-precision floating-point numbers and added to the corresponding cumulative values. Finally, based on the number of bathymetry points (count) in the first batch of data, the eastward, northward, and depth cumulative values ​​are averaged to obtain the eastward coordinates (cx) of the survey area center, the northward coordinates (cy) of the survey area center, and the water depth reference (cz). The combination of these three values ​​constitutes the point cloud center C. The corresponding calculation process can be represented by the following pseudocode: double sumX=0, sumY=0, sumZ=0; for (i…) { sumX += (double)pt[i].x; sumY += (double)pt[i].y; sumZ += (double)pt[i].z;} cx = sumX / count; cy = sumY / count; cz = sumZ / count; It should be noted that in the pseudocode above, pt[i].x, pt[i].y, and pt[i].z represent the eastward coordinates, northward coordinates, and water depth of the i-th sounding point in the first batch of multibeam bathymetry point cloud data, respectively. The type casting operator double indicates that the corresponding coordinate components of the sounding point are converted from single-precision floating-point numbers to double-precision floating-point numbers before being added, to avoid the accumulation of rounding errors caused by single-precision accumulation. count represents the total number of sounding points in the first batch of multibeam bathymetry point cloud data. cx, cy, and cz represent the eastward coordinates, northward coordinates, and water depth reference of the survey area center, respectively. The ratio of the sum of the three to count is the arithmetic mean of the corresponding cumulative values. Thus, the eastward coordinates, northward coordinates, and water depth reference of the survey area center are the arithmetic mean of the corresponding coordinate components of all sounding points in the first batch, which can represent the overall coordinate distribution of the first batch of data. Moreover, the center of this point cloud simultaneously includes both the planar position and the depth reference.

[0032] Once the point cloud center C is calculated, it is frozen. All subsequent batches of multibeam bathymetry point cloud data reuse this center as a fixed reference origin and are no longer updated. It should be noted that the freezing strategy ensures that the value of the fixed reference origin remains constant throughout the processing of each batch of data. After local coordinate transformation based on the same fixed reference origin, the local coordinates of the same spatial point are exactly the same after transformation in each batch. This maintains the consistency of the coordinate system across batches, fundamentally eliminating the image jitter caused by inconsistent calculation centers in different batches, improving the accuracy of local coordinate transformation in subsequent batches, and thus ensuring the continuity of the seabed point cloud rendering interface.

[0033] Further, the step of performing local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin to obtain the local coordinate point cloud data of the corresponding batch includes: For each sounding point in the multibeam echo sounding point cloud data of each batch, the eastward and northward coordinates of the sounding point are translated in a plane based on the fixed reference origin to obtain the local eastward and local northward coordinates of the sounding point; Using the water depth reference at the fixed reference origin as the depth datum, the relative water depth of the sounding point relative to the depth datum is calculated, and the relative water depth is oriented according to the preset elevation transformation rule to obtain the local height coordinates of the sounding point. Preserve the echo intensity at that sounding point; The echo intensity, local eastward coordinates, local northward coordinates, and local altitude coordinates of each sounding point are used to construct the local coordinate point cloud data for the corresponding batch.

[0034] In one embodiment, local coordinate transformation is performed on the multibeam bathymetry point cloud data of each batch based on a fixed reference origin to obtain the local coordinate point cloud data of the corresponding batch. The specific implementation method is as follows.

[0035] It should be noted that in this embodiment, the local coordinate transformation is completed on the CPU side, that is, localization is completed before each batch of local coordinate point cloud data is uploaded to the GPU. For each sounding point in each batch of multibeam bathymetry point cloud data, the eastward and northward coordinates of the sounding point are translated in a plane based on the fixed reference origin. That is, the local eastward coordinate lx of the sounding point is obtained by subtracting the eastward coordinate cx of the survey area center from the eastward coordinate x of the sounding point, and the local northward coordinate ly of the sounding point is obtained by subtracting the northward coordinate cy of the survey area center from the northward coordinate y of the sounding point. lx and ly are the relative coordinates of the sounding point with respect to the fixed reference origin. Since the value of the fixed reference origin is constant, the relative coordinates of the same sounding point are unique in any batch, and the transformation results of each batch are consistent.

[0036] In the vertical direction, using the water depth datum cz with a fixed reference origin as the depth reference surface, the relative water depth of the sounding point relative to the depth reference surface is calculated. Then, the relative water depth is oriented according to a preset elevation transformation rule to obtain the local height coordinate lz of the sounding point. This is achieved by taking the difference between the water depth z and the water depth datum cz and taking its opposite, thus converting the downward-positive measurement representation of water depth into an upward-positive representation of height in the rendering coordinate system. This unifies the vertical components of all sounding points into a consistent height representation with the same depth reference surface, avoiding inconsistencies in the vertical component directions. The corresponding calculation relationship can be expressed by the following formula: lx = x - cx; ly = y - cy; lz = -(z - cz); It should be noted that in the above formula, x, y, and z represent the eastward coordinates, northward coordinates, and water depth of the sounding point, respectively; cx, cy, and cz represent the eastward coordinates, northward coordinates, and water depth reference of the center of the measurement area of ​​the fixed reference origin, respectively; and lx, ly, and lz represent the local eastward coordinates, local northward coordinates, and local height coordinates of the sounding point, respectively. The local height coordinates are obtained by taking the opposite of the relative water depth to achieve the conversion from the depth direction to the height direction.

[0037] After completing the planar translation and orientation transformation, the echo intensity of the sounding point is retained. The local east coordinates (lx), local north coordinates (ly), local altitude coordinates (lz), and echo intensity are written together with the echo intensity in a single-precision floating-point (float32) format into the vertex buffer object (VBO). It should be noted that echo intensity represents the amplitude of the echo signal corresponding to the sounding point. Retaining the echo intensity ensures that the local coordinate point cloud data retains both positional and original intensity information. Each sounding point written to the vertex buffer object occupies 16 bytes, arranged in an alternating pattern of four single-precision floating-point numbers: local east coordinates, local north coordinates, local altitude coordinates, and echo intensity, consistent with the data layout of the input buffer. Therefore, the data written to the vertex buffer object is the point cloud data after unified transformation. The transformation and data organization are completed once before writing, improving the consistency of point cloud positions and the standardization of data organization in subsequent segmented rendering.

[0038] Furthermore, since the above subtraction operations are all performed under double-precision floating-point semantics, the three coordinate components of the fixed reference origin are all high-precision representations of the double-precision accumulation result. The local coordinates entering the vertex buffer object after translation are typically on the order of hundreds to kilometers, falling within the numerical range fully covered by single-precision floating-point precision. Therefore, there is no precision loss at the input end. It should be noted that this is fundamentally different from the scheme of passing the center as a uniform variable within the shader and then subtracting the center: if the original coordinates of a large value are directly written into the vertex buffer object and the center is subtracted within the shader, the rounding error of the large value under single-precision representation will directly remain in the rendering result. However, in this embodiment, the center subtraction is performed first on the CPU side, ensuring that the local coordinates written to the vertex buffer object are of a smaller magnitude. Single-precision representation can guarantee accuracy, thus balancing the storage efficiency of the vertex buffer object with the inter-frame consistency of the rendering position.

[0039] Furthermore, synchronizing the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system includes: The fixed reference origin is synchronized to the camera subsystem so that the fixed reference origin serves as the local coordinate origin of the camera subsystem. Based on the fixed reference origin, the observation target point of the camera subsystem is reset to a local position with the eastward coordinates of the center of the survey area and the northward coordinates of the center of the survey area as the origin, thus obtaining the reset observation target point; The current carrier position is obtained and a copy is retained. The current carrier position is then normalized to the local coordinate system where the fixed reference origin is located to obtain the local position of the carrier. The reset observation target point and the local position of the carrier are determined as the current observation state of the camera subsystem, so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system.

[0040] In one embodiment, a fixed reference origin is synchronized to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The specific implementation is as follows: It should be noted that in this embodiment, the point cloud, camera, and carrier are all in the same local coordinate system. The synchronization operation is completed by setting the coordinate center using the `setCoordinateCenter` operation. This involves simultaneously writing the eastward coordinates (cx) of the survey area center, the northward coordinates (cy) of the survey area center, and the water depth reference (cz) of the fixed reference origin into the camera subsystem. This ensures that the fixed reference origin serves as the local coordinate origin of the camera subsystem, and the coordinate calculations of the camera subsystem and the local coordinate point cloud data use the same numerical origin as the starting point.

[0041] After receiving a fixed reference origin, the camera subsystem resets its observation target point to a local position with the coordinates east and north of the center of the survey area as origins, thus obtaining a reset observation target point. In other words, the observation target point of the camera subsystem is reset from its original coordinate representation to its origin position in a local coordinate representation, ensuring that the coordinates of the camera's observation target point and the local coordinates of the point cloud data are in the same coordinate representation. It should be noted that in this embodiment, the camera subsystem includes a preset viewpoint camera and a carrier-following camera. The carrier-following camera includes a first-person viewpoint camera and a third-person viewpoint camera. The preset viewpoint camera provides a preset observation viewpoint, the first-person viewpoint camera provides an observation viewpoint centered on the carrier, and the third-person viewpoint camera provides an observation viewpoint centered on the carrier while maintaining an observation distance from the carrier.

[0042] During synchronization, the camera subsystem acquires the current carrier position, which is the pose coordinate of the carrier (i.e., the hull) equipped with the multibeam echo sounder, representing the hull's position and attitude in space. The camera subsystem retains a copy of the current carrier position, that is, it saves a copy of the original world coordinates of the carrier as an independent variable, completely preserving the original position information of the carrier before normalization. At the same time, the current carrier position is subjected to the same normalization process as the point cloud data, that is, the east coordinates cx, north coordinates cy, and water depth reference cz of the survey area center are subtracted from the east coordinate components, north coordinate components, and water depth components of the current carrier position, respectively, to normalize the current carrier position to the local coordinate system where the fixed reference origin is located, thus obtaining the local position of the carrier, so that the carrier position, the reset observation target point, and the local coordinate point cloud data share the same origin. It should be noted that the original world coordinate copy of the carrier is stored independently of the local position of the carrier. When the fixed reference origin is reset or changed, the carrier position can be restored to the original world coordinates before normalization without loss based on the copy. The normalization process will not cause the loss of carrier position information, thereby improving the consistency between the camera subsystem and the point cloud data coordinate reference and the recoverability of carrier position information.

[0043] Ultimately, the camera subsystem determines the current observation state by resetting the observation target point and the local position of the carrier. Since the reset observation target point, the local position of the carrier, and the local coordinate point cloud data written to the vertex buffer object all use the same fixed reference origin as the coordinate reference, the three are strictly in the same local coordinate system. The current observation state determined by the camera subsystem can be directly aligned with the local coordinate point cloud data. Both the preset viewpoint camera and the carrier-following camera can be correctly aligned with the point cloud, thereby improving the camera's alignment accuracy with the multibeam bathymetry point cloud.

[0044] Furthermore, the local coordinate point cloud data is written into a vertex buffer object in batches, and the current wrapping state and current cursor position in the vertex buffer object are updated in real time based on a preset ring rule, including: The storage space of the vertex buffer object is set based on the preset fixed point capacity, and the storage space extends from the storage start point to the storage end point. The current remaining space capacity is determined based on the current cursor position and the storage endpoint. Starting from the current cursor position, the local coordinate point cloud data of the current batch is written to the vertex buffer object, and the current surrounding state and the current cursor position are updated in real time, wherein: If the number of depth measurement points in the local coordinate point cloud data of the current batch is greater than or equal to the preset fixed point capacity, then only the last few points of the preset fixed point capacity in the local coordinate point cloud data of the current batch are retained. The retained local coordinate point cloud data is written to the vertex buffer object from the storage starting point to overwrite the local coordinate point cloud data already stored in the vertex buffer object. The current cursor position is reset to the storage starting point, and the current surround state is updated to surrounded. If the number of depth measurement points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is greater than the number of depth measurement points, then the local coordinate point cloud data of the current batch is continuously written from the current cursor position, and the current cursor position is moved forward in the direction of the storage endpoint by the number of depth measurement points of the current batch. If the number of points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is less than or equal to the number of sounding points, then the local coordinate point cloud data of the current batch is first written to the storage endpoint from the current cursor position, and then the local coordinate point cloud data of the current batch that has not yet been written is continued to be written from the storage starting point to cover the local coordinate point cloud data already stored at the storage starting point, the current surround state is updated to surrounded, and the current cursor position is updated to the end position of writing the local coordinate point cloud data that has not yet been written.

[0045] In one embodiment, local coordinate point cloud data is written to a vertex buffer object in batches, and the current surrounding state and current cursor position in the vertex buffer object are updated in real time based on a preset ring rule. The specific implementation method is as follows.

[0046] This embodiment employs a circular write structure that coordinates the CPU and GPU sides: The CPU side sets up a locked circular buffer with a capacity N equal to the preset fixed-point capacity maxPoints, meaning the preset fixed-point capacity of the vertex buffer object serves as the upper limit of the number of points in the circular buffer. When the circular buffer is full, it writes data according to the semantics of retaining the latest data and overwriting the oldest data. The GPU side pre-allocates storage space for the vertex buffer object in one go according to the product of N and 16, i.e., N×16 bytes, where 16 is the number of bytes per point. After that, the storage space of the vertex buffer object is never rebuilt in whole blocks, thereby avoiding rendering overhead caused by frequent allocation of storage space.

[0047] It should be noted that in this embodiment, the OpenGL rendering thread (GL thread) reads up to M local coordinate point cloud data points from the circular buffer per frame, where M is the upper limit for uploading per frame. In this embodiment, the value is 65536. This upper limit decouples the point cloud data production rate from the rendering rate, preventing rendering stuttering caused by excessive data volume per frame. The GL thread writes data to the vertex buffer object in the following three states. It should be noted that `count` below represents the number of depth points of the local coordinate point cloud data written to the vertex buffer object in a single instance. This embodiment mainly targets rendering scenarios with real-time measurement data; `count` represents the number of points in the current batch of data arriving in real-time.

[0048] In the first state, when the number of depth measurement points in the local coordinate point cloud data of the current batch is greater than or equal to the preset fixed point capacity, only the last N points in the local coordinate point cloud data of the current batch are retained, that is, the last N points of this batch are retained. The local coordinate point cloud data stored in the entire vertex buffer object is overwritten by a single write operation, and the write cursor is reset to 0, that is, reset to the storage starting point. At the same time, the current wrapping state of the vertex buffer object is updated to wrapped, so that the buffer content is completely replaced by the latest data of this batch without exceeding the fixed capacity.

[0049] In the second state, when the number of depth points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the sum of the cursor position and count is less than or equal to N, it indicates that the current remaining space capacity is greater than the number of depth points in the current batch. At this time, the local coordinate point cloud data of the current batch is appended to the vertex buffer object in a single-segment continuous manner from the current cursor position using the buffer object sub-data update operation glBufferSubData. After writing, the cursor is moved forward by count points from the current position, that is, the current cursor position is moved forward by the number of depth points in the current batch towards the storage endpoint. It should be noted that glBufferSubData is a call in the OpenGL graphics programming interface used to update the data in a portion of the buffer object's storage area. In this embodiment, this call is used to implement single-segment append writing, ensuring that the vertex buffer object is not rebuilt during the writing process.

[0050] In the third state, when the number of sounding points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the sum of the write cursor position and count is greater than N, it indicates that the current remaining space capacity is less than or equal to the number of sounding points in the current batch. At this time, the local coordinate point cloud data of the current batch is written to the vertex buffer object in two segments: the first segment is written continuously from the current cursor position to the storage end point of the vertex buffer object, and the second segment continues to write the local coordinate point cloud data of the current batch that has not yet been written from the storage start point to overwrite the local coordinate point cloud data already stored at the storage start point, that is, the earliest written old data is replaced with the new data of the current batch; after the writing is completed, the current wrapping state is updated to wrapped, and the current cursor position is reset to the length of the second segment, that is, updated to the end position of the writing of the local coordinate point cloud data that has not yet been written, so that the data of a batch is completely written to the fixed space without exceeding the boundary.

[0051] In this embodiment, the division of the first, second, and third states ensures that each batch of data is written sequentially into a vertex buffer object with a fixed capacity: when the data volume is too large, the latest data completely replaces the buffer content; when there is sufficient remaining space, data is continuously appended; and when there is insufficient remaining space, the oldest data is overwritten. With the real-time updates of the current wrapping state and the current cursor position, the distribution range of effective data in the vertex buffer object after each batch of writing can always be uniquely determined based on these two states. This improves the space utilization and the orderliness of data updates in the fixed-capacity buffer object during multiple batch writing processes, ensuring the continuity of the seabed point cloud rendering interface display.

[0052] Furthermore, the step of performing segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface, includes: If the current surrounding state is not surrounding, the local coordinate point cloud data between the starting point and the current cursor position stored in the vertex buffer object is determined as the data to be rendered, and the data to be rendered is drawn in a single draw on the mobile device to obtain the point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is at the storage starting point, then all local coordinate point cloud data in the vertex buffer object are determined as the data to be rendered, and the data to be rendered is drawn in one go on the mobile terminal to obtain point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is not located at the storage start point, then the local coordinate point cloud data between the current cursor position and the storage end point in the vertex buffer object is determined as the prior data segment to be rendered, and the local coordinate point cloud data between the storage start point and the current cursor position is determined as the subsequent data segment to be rendered. The prior data segment to be rendered and the subsequent data segment to be rendered are drawn sequentially on the mobile device to obtain point cloud drawing data. Based on the current observation state of the camera subsystem, the point cloud drawing data is observed and presented to obtain the seabed point cloud rendering interface.

[0053] In one embodiment, based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, segmented rendering is performed on the mobile device to obtain the seabed point cloud rendering interface. The specific implementation method is as follows.

[0054] During rendering, the rendering state is determined by combining two variables: whether the cursor has wrapped around the vertex and the position of the vertex, so that the rendering range directly corresponds to the actual distribution of valid data in the vertex buffer object.

[0055] When the current wrapping state is not wrapping, it means that the preset fixed point capacity N of the vertex buffer object has not yet been filled. At this time, the rendered data is the total number of local coordinate point cloud data points uploaded since the system started, that is, the number of valid depth points in the current vertex buffer object. At this time, the current cursor position is located at the storage start point 0. The rendering system determines the local coordinate point cloud data between the storage start point 0 and the current cursor position uploadedCount in the vertex buffer object as the data to be rendered, and performs a single drawing on the data to be rendered on the mobile device by calling glDrawArrays through the vertex array drawing to obtain the point cloud drawing data.

[0056] It should be noted that glDrawArrays is a call in the OpenGL graphics programming interface that executes drawing in the order of the vertex array. In this embodiment, this call is used to perform a drawing once on the continuous vertex data within the interval 0 to uploadedCount, so that the rendering range is consistent with the range of data actually written when not wrapped.

[0057] When the current wrapping state is wrapped and the current cursor position is at the storage starting point 0, it means that the currently uploaded local coordinate point cloud data has just filled the preset fixed point capacity N. That is, the current cursor position has not moved, or the current cursor position has moved but just returned to the storage starting point 0. This case is a special case of the next general case. The rendering system determines all the local coordinate point cloud data in the vertex buffer object as the data to be rendered, that is, determines the interval 0 to N as the data to be rendered, and performs a single drawing of the data to be rendered on the mobile end through glDrawArrays to obtain the point cloud drawing data, so that the rendering range covers the entire area in the vertex buffer object that has been completely filled by the new data.

[0058] When the current wrapping state is wrapped and the current cursor position is not at the storage start point 0, the wrapping write causes the valid data in the vertex buffer object to be physically divided into two segments. The newly written data is located between the head interval 0 and the current cursor position cursor, and the earliest written data that has not yet been overwritten is located between the tail interval cursor and N. The rendering system determines the local coordinate point cloud data between the current cursor position cursor and the storage end point N as the first segment to be rendered, i.e., the old data segment drawn first, and determines the local coordinate point cloud data between the storage start point 0 and the current cursor position cursor as the second segment to be rendered, i.e., the new data segment drawn later. On the mobile device, the first segment to be rendered and the second segment to be rendered are drawn sequentially using glDrawArrays, and a total of two drawing operations are performed to obtain the point cloud drawing data, so that the two physically discontinuous data segments after the wrapping write are completely rendered in the order of writing.

[0059] In this embodiment, the division of the above three rendering states makes the number of single-draw or segmented-draw directly correspond to the distribution state of effective data in the vertex buffer object, ensuring the matching between the rendering range and the distribution of effective data and the integrity of the rendering.

[0060] After acquiring the point cloud rendering data, the rendering system assigns colors to the point cloud rendering data and observes and presents the colored point cloud rendering data based on the current observation state of the camera subsystem, resulting in the seabed point cloud rendering interface. Color assignment is implemented using a pre-defined lookup table (LUT), which is a 256×1 pixel RGBA texture. RGBA represents the four-channel color representation of red, green, blue, and transparency. Specifically, the color band is defined by several normalized position docking points. These normalized position docking points represent the relative positions of each color node in the color band on the overall color band, and their values ​​are normalized to the range of 0 to 1. Interpolation is performed on these normalized position docking points on the CPU side to generate 256 levels of color, and these 256 levels of color are uploaded as a one-dimensional texture to the graphics processor. The fragment shader selects either a depth lookup table or an intensity lookup table based on a pattern determined by the uniform variable uniform. It samples the texture of the lookup table according to normalized coordinates, thereby mapping the local height coordinates or echo intensity of each sounding point to the corresponding color. Here, uniform is a variable passed from the application side in the shader and kept consistent for all vertices within the same drawing call.

[0061] In this embodiment, color band switching at runtime only requires retransmitting a 1KB lookup table texture, without touching any vertex data; the depth lookup table and intensity lookup table reside in two texture units, both of which are ready when the mode switches, and the switching process does not incur additional resource loading overhead. Therefore, the rendering result is presented based on the current observation state of the point cloud aligned with the camera subsystem, improving the matching between the rendering range and the effective data distribution in the vertex buffer object, while also ensuring the real-time switching performance of the color mode and guaranteeing the continuity of the seabed point cloud rendering interface.

[0062] Furthermore, the step of performing segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface, includes: Local height coordinates are obtained based on the local coordinate point cloud data; The local height coordinates of the local coordinate point cloud data are restored from the height semantics (height is positive upwards) to the depth semantics (water depth is positive downwards) to obtain the relative water depth of each sounding point relative to the fixed reference origin. Based on the relative water depth and the water depth benchmark of the fixed reference origin, the original water depth of each depth measuring point is calculated to obtain depth color data; The point cloud rendering data is then subjected to depth coloring based on the depth coloring data, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

[0063] In one embodiment, the local height coordinates of each sounding point are obtained based on local coordinate point cloud data. These local height coordinates are the relative height representation obtained after the aforementioned direction transformation, with the height being positive upwards. The local height coordinates are then restored from the height semantics (height positive upwards) to the depth semantics (depth positive downwards), i.e., the inverse of the local height coordinates is taken to obtain the relative depth of each sounding point relative to the fixed reference origin. This restoration operation corresponds to the direction transformation before writing to the vertex buffer object, and the two are inverse operations, allowing the rendering stage to obtain the intermediate quantity of relative depth again. Then, the original depth of each sounding point is calculated based on the relative depth and the depth reference of the fixed reference origin, i.e., the sum of the depth reference and the relative depth is used as the original depth to obtain the depth color data.

[0064] It should be noted that, since the local coordinate point cloud data written to the vertex buffer object no longer redundantly stores the original water depth, this embodiment completes the reconstruction of the original water depth semantics in the vertex shader. The vertex shader is the shader program in the graphics rendering pipeline that performs coordinate transformation and attribute calculation for each vertex. Specifically, the vertex shader reconstructs the original water depth according to the following calculation relationship: vDepth =−lz+ cz In the above calculation relationship, vDepth represents the original water depth of the reconstructed sounding point, lz represents the local height coordinate of the sounding point, and cz represents the water depth datum with a fixed reference origin. Taking the negative of the local height coordinates restores the semantics of height being positive upwards to the semantics of water depth being positive downwards. Adding the water depth datum restores the absolute water depth of the sounding point relative to the depth calculation reference surface. Since the value of the water depth datum cz remains constant, the original water depth calculated for the same sounding point in each batch of rendering is uniquely determined and consistent with the water depth in its original sounding data.

[0065] After obtaining the depth coloring data, the point cloud rendering data is then colorized based on this data, ensuring that the depth values ​​used for coloring correspond to the actual water depth at the sounding point. The depth coloring threshold directly corresponds to the original water depth. For example, when the coloring threshold is set to 0 to 50 meters, 0 to 50 meters refers to the range of actual water depth. The color distribution of the point cloud reflects the actual water depth distribution and does not change due to the point cloud being translated through a fixed reference origin. Combined with the current observation status of the camera subsystem, the seabed point cloud rendering interface is obtained, and the correspondence between its colors and actual water depth remains accurate, thereby improving the realism of the depth coloring and the fidelity of the rendering interface.

[0066] Furthermore, since the original water depth is reconstructed in real time by the vertex shader during the rendering stage, each point of data written to the vertex buffer object does not need to include the original water depth component. The vertex data layout is compressed from 20 bytes per point in the existing technology to 16 bytes per point. It can be understood that in the existing technology, each 20 bytes per point is arranged with five single-precision floating-point numbers: east coordinates, north coordinates, water depth, original water depth, and echo intensity. However, in the multibeam echo sounding point cloud mobile rendering method provided in this embodiment, each 16 bytes per point is arranged with four single-precision floating-point numbers: local east coordinates, local north coordinates, local height coordinates, and echo intensity. This results in savings in both video memory usage and upload bandwidth compared to the existing technology, enabling real-time rendering of larger-scale point cloud data under the limited video memory and bandwidth resources of mobile devices.

[0067] Furthermore, the step of applying depth color to the point cloud rendering data based on the depth coloring data, and combining this with the current observation state of the camera subsystem to present the rendered data, results in the seabed point cloud rendering interface, including: The depth coloring data is normalized based on a preset depth coloring range to obtain normalized depth data. Based on the normalized depth data, the texture of the preset depth lookup table is sampled to obtain a depth-colored set. The point cloud rendering data is depth-colored based on the depth-coloring set, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

[0068] Furthermore, prior to the single drawing or the sequential drawing, the method further includes: A parameter snapshot is created based on preset rendering parameters, and the parameter snapshot is protected by a mutex lock. In response to a rendering parameter modification request, rendering modification parameters are determined based on the rendering parameter modification request, the rendering modification parameters are written to the parameter snapshot, and an atomic dirty flag is set on the parameter snapshot; Based on the parameter snapshot, the atomic dirty flag is detected. When the atomic dirty flag is detected, the parameter snapshot is consumed and the atomic dirty flag is cleared according to the preset consumption adjustment rules to obtain the adjusted rendering parameters. Based on the adjusted rendering parameters, at least one of the data to be rendered, the preceding data segment to be rendered, and the subsequent data segment to be rendered is rendered and drawn to obtain the point cloud drawing data.

[0069] In one embodiment, a parameter synchronization mechanism involving cross-thread dirtying and delayed consumption is executed before a single or sequential drawing. Specifically, the business thread's modification of rendering parameters does not directly touch the graphics objects of the OpenGL graphics program interface. Rendering parameters include color bands, capacity, and clear instructions. The color band represents the color configuration on which color is assigned, the capacity represents the preset fixed point capacity of the vertex buffer object, and the clear instruction represents a request to clear the data stored in the vertex buffer object. The business thread writes the rendering modification parameters to a parameter snapshot protected by a mutex lock and sets an atomic dirty flag. The atomic dirty flag is a status flag read and written in an atomic operation manner. The mutex lock ensures that multiple modification requests will not interfere with each other when writing to the parameter snapshot concurrently. Setting the atomic dirty flag allows parameter modification to be completed by writing to the snapshot and setting the flag. Modification requests can return without waiting for the drawing process to complete. Any business thread can adjust parameters at any time without lock awareness, and the modification operation and the drawing operation are separated.

[0070] The graphics rendering thread (GL thread) consumes parameter snapshots sequentially in a fixed sequence before each frame is drawn. The consumption order is as follows: first, it processes the clear request; then, it processes the capacity adjustment, i.e., the reconstruction of the vertex buffer object; then, it processes the color band reconstruction, i.e., the retransmission of the lookup table texture; and finally, it performs the data upload of the local coordinate point cloud data.

[0071] In this embodiment, the GL thread detects atomic dirty flags before drawing. When an atomic dirty flag is detected, it consumes all pending modifications in the parameter snapshot according to the fixed sequence and clears the atomic dirty flags to obtain adjusted rendering parameters. Then, based on the adjusted rendering parameters, it performs rendering adjustments on at least one of the data to be rendered, the data segment to be rendered earlier, and the data segment to be rendered later, and executes drawing to obtain point cloud drawing data. Multiple modification requests are first merged into the parameter snapshot and then take effect uniformly. The drawing process does not read the intermediate state of parameter modification. The rendering parameters used for each drawing are consistent with the content of the parameter snapshot after consumption. The parameter modification results take effect in the drawing in a determined order, thereby improving the concurrency safety of rendering parameter modification and the consistency of parameter state during the drawing process.

[0072] Furthermore, when the embedded system's graphics library (EGL) context is destroyed and rebuilt due to the mobile application switching to the background, the rendering system performs a context reconstruction and restoration operation in the surface creation callback `onSurfaceCreated`. This callback is an interface called by the system after the rendering surface is created. Specifically, the rendering system first invalidates all old OpenGL graphics object handles and recompiles the shader program, rebuilds the vertex buffer object (VBO), vertex array object (VAO), and lookup table texture. The vertex array object (VAO) is an OpenGL object that stores the vertex data format and buffer binding relationship, used to describe how the data in the vertex buffer object is read. At the same time, it resets the upload cursor, surround flag, and coordinate center state. The coordinate center state on the camera subsystem side is restored to the carrier position losslessly from the aforementioned original world coordinate copy of the carrier.

[0073] In this embodiment, the above-mentioned recovery operation reinitializes the write position, surround state, and camera coordinate reference of the vertex buffer object after context reconstruction, thereby eliminating the black screen and OpenGL errors caused by drawing uninitialized vertex buffer object ranges and the failure of old texture handles after context reconstruction, ensuring the continuity and stability of the seabed point cloud rendering interface after switching between the application foreground and background.

[0074] Please see Figure 2 This embodiment also provides a mobile rendering system for multibeam bathymetry point clouds, which includes a camera subsystem and further includes: The data acquisition module is used to acquire multiple batches of multibeam bathymetry point cloud data in real time; The center determination module is used to determine the center of the point cloud based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data, and to determine the point cloud center as a fixed reference origin, and to keep the fixed reference origin unchanged in the subsequent batches of multibeam bathymetry point cloud data processing. The coordinate transformation module is used to perform local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin, so as to obtain the local coordinate point cloud data of the corresponding batch. The origin synchronization module is used to synchronize the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The circular writing module is used to write the local coordinate point cloud data into the vertex buffer object in batches, and update the current surrounding state and current cursor position in the vertex buffer object in real time based on the preset circular rules. The segmented rendering module is used to perform segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface.

[0075] In one embodiment, a mobile device using the Android operating system platform, OpenGL ES 3.0 graphics interface standard, and arm64-v8a instruction set architecture is used as an example for illustration. The specific configuration of the implementation environment is as follows.

[0076] The multibeam bathymetry point cloud mobile rendering system provided in this embodiment is integrated into the shipborne Android terminal application in the form of an AAR (Android Archive Library). AAR is the library file encapsulation format for the Android platform, used to provide the application project with the resources and code required for compilation and execution. The rendering view is implemented based on GLSurfaceView, a view component in the Android platform that encapsulates the rendering surface and rendering thread management. Its embedded system graphics library EGL context client version is set to 3, i.e., using OpenGL ES 3.0. The shader language uses GLSL ES 3.00, and the shader version is declared as version 300es. All shader source code is embedded in the native library during compilation, eliminating the need to read shader files at runtime, thus avoiding the latency and file loss risks caused by runtime file reading. In this embodiment, the data acquisition module, center determination module, coordinate transformation module, origin synchronization module, ring writing module, and segmented rendering module are implemented by the corresponding processing procedures in the aforementioned embodiments. The implementation details are described below.

[0077] In the implementation of coordinate transformation, the preset fixed point capacity N is set to 1,000,000, meaning the vertex buffer object can store a maximum of 1,000,000 sounding points. When the first batch of data, i.e., the batch of sonar echo pings, arrives, the ping refers to a batch of echo data collected by the receiving device after a sounding pulse is transmitted. The amount of data in a single batch is usually several thousand to tens of thousands of points. The center determination module calculates and freezes the point cloud center using the aforementioned double-precision cumulative averaging method. In the example, the east coordinate of the center of the sounding area is 500,000.0, the north coordinate of the center of the sounding area is 3,400,000.0, and the water depth reference is 25.0. After local coordinate transformation, the local coordinate magnitude of each sounding point is approximately within a range of 200 meters. Before uploading to the vertex buffer object, the central processing unit performs the following data organization operations in a loop: upload[0] takes the east coordinate x of the sounding point and subtracts the east coordinate cx of the center of the survey area; upload[1] takes the north coordinate y of the sounding point and subtracts the north coordinate cy of the center of the survey area; upload[2] takes the negative of the difference between the water depth z and the water depth reference cz of the sounding point; upload[3] takes the echo intensity intensity of the sounding point. That is, the four elements of the upload array store the local east coordinate, local north coordinate, local height coordinate and echo intensity in sequence, with a total of 16 bytes per point. It should be noted that the array subscripts 0 to 3 represent the relative byte offset position of the 16 bytes of data of a single point in the write buffer, which correspond to four single-precision floating-point numbers arranged in an interleaved manner.

[0078] After the camera subsystem receives the same fixed reference origin, the origin synchronization module sets the observation target point to zero, that is, resets the observation target point to the origin position in the local coordinate representation; the local position of the carrier is obtained by subtracting the three coordinate components of the fixed reference origin from its original world coordinates, and a copy of the original world coordinates of the carrier is saved separately. The segmented rendering module uses a unified variable uDepthOrigin to represent the water depth reference cz on the shader side. The vertex shader reconstructs the original water depth vDepth by taking the negative of the local height coordinate lz and summing it with uDepthOrigin, where aPosition.z represents the local height coordinate stored in the vertex buffer object; thus, when the water depth coloring threshold is set to 0 to 50 meters, its physical meaning is still the original water depth and does not change due to coordinate transformation.

[0079] In the implementation of circular writing and drawing, the vertex buffer object is pre-allocated 16,000,000 bytes at a time according to the preset fixed-point capacity, which is the product of 1,000,000 points and 16 bytes. Suppose that the number of depth points (count) read by the GL thread from the circular buffer in a certain frame is 30,000, and the current cursor position is 990,000. Since the sum of cursor and count, 1,020,000, is greater than N, i.e., 1,000,000, the circular writing state is entered: the first segment writes 10,000 points from cursor position 990,000 to the storage endpoint 1,000,000. The second segment continues to write the 20,000 points that have not yet been written in the current batch from the storage starting point 0 to 20,000. After the writing is completed, the cursor is updated to 20,000, and the circular flag is set. During the drawing process, the segmented rendering module executes two vertex array drawing calls glDrawArrays in sequence: first, it draws the data segments to be rendered earlier, from 20000 to 1000000, which are the old data segments that have not been replaced after wrapping; then, it draws the data segments to be rendered later, from 0 to 20000, which are the new data segments written by wrapping. The two drawings complete the rendering of all valid data in the order of writing.

[0080] In the implementation of the color band lookup table, the depth color band defaults to the seven-level color scale of GB / T 37270 seabed topographic maps, with colors transitioning sequentially from light green, yellow-green, cyan, sky blue, blue, dark blue to indigo. The positions of the seven normalized docking points are 0, 0.167, 0.333, 0.5, 0.667, 0.833, and 1.0, respectively. The intensity color band defaults to a three-level transition of purple, yellow, and white. The central processing unit (CPU) fills 256 levels of RGBA pixels using linear interpolation based on the docking points. Then, the color levels are uploaded as a one-dimensional texture via glTexImage2D, which is a call in OpenGL to write image data to a texture object. The depth lookup table and intensity lookup table are bound to the texture units TEXTURE1 and TEXTURE2, respectively, and remain resident. When a color band update request arrives, the new docking point is verified, stored in a parameter snapshot, and an atomic dirty flag is set. Verification items include: the docking point list is not empty; the number of docking points is 2 to 64; the position of each docking point is a finite value within the range of 0 to 1 and strictly increasing; and each color component is a finite value within the range of 0 to 1. The GL thread reconstructs the lookup table texture in the next frame, deleting the old texture before generating the new one to avoid resource leaks caused by texture handle reuse. It should be noted that the strictly increasing docking point positions ensure a monotonous transition in the interpolated color levels, and the finite value verification excludes texture data anomalies caused by non-numerical data.

[0081] In the context reconstruction process, when the EGL context is destroyed and reconstructed due to background processes, this embodiment performs the following recovery operations sequentially in the surface creation callback `onSurfaceCreated`: First, reset the OpenGL graphics state, including clearing the screen color, depth test, and color blending state; then recompile the five sets of shaders, namely the point cloud shader, cross marker shader, scale bar shader, glyph shader, and shared overlay shader. The shared overlay shader serves the shared drawing logic of the cross marker, scale bar, and glyphs; then rebuild the vertex buffer object and vertex array object; then reset the uploaded point count, writeCursor, bufferWrapped, and coordinate center states, where the coordinate center state is restored by the camera subsystem without loss of quality based on the original world coordinate copy of the carrier; then rebuild the depth and intensity lookup table textures according to the color band configuration saved in the parameter snapshot; finally, rebuild the glyph atlas texture, which is a set of bitmaps that merge and store each character glyph in a single texture. As a result, after context reconstruction, all graphics objects and rendering states are reinitialized, eliminating black screens and OpenGL errors caused by drawing uninitialized vertex buffer object ranges and old texture handle failures, thus ensuring the continuity of the seabed point cloud rendering interface display.

[0082] It is understood that the specific values ​​of each parameter in this embodiment are only examples. Those skilled in the art can make adaptive adjustments to the preset fixed point capacity, single frame upload limit and color band configuration according to the video memory capacity, bandwidth conditions and depth measurement data arrival rate of the mobile device, without departing from the protection scope of the technical solution of this application.

[0083] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A mobile rendering method for multibeam bathymetry point clouds, characterized in that, Applied to a mobile rendering system, the mobile rendering system including a camera subsystem, the method includes the following steps: Real-time acquisition of multiple batches of multibeam bathymetry point cloud data; The point cloud center is determined based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data. The point cloud center is then set as a fixed reference origin, and this fixed reference origin remains unchanged during the processing of subsequent batches of multibeam bathymetry point cloud data. Based on the fixed reference origin, local coordinate transformation is performed on the multibeam bathymetry point cloud data of each batch to obtain the local coordinate point cloud data of the corresponding batch. The fixed reference origin is synchronized to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The local coordinate point cloud data is written into the vertex buffer object in batches, and the current surrounding state and current cursor position in the vertex buffer object are updated in real time based on the preset ring rule. Based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, segmented rendering is performed on the mobile device to obtain the seabed point cloud rendering interface.

2. The mobile rendering method for multibeam bathymetry point clouds according to claim 1, characterized in that, The determination of the point cloud center based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data includes: Extract the eastward coordinates, northward coordinates, and water depth of each sounding point from the first batch of multibeam bathymetry point cloud data; The eastward coordinates, northward coordinates, and water depth of each of the aforementioned depth sounding points are accumulated in the measurement area using double-precision floating-point method to obtain the eastward accumulated amount, the northward accumulated amount, and the depth accumulated amount; The average of the eastward cumulative amount, northward cumulative amount and depth cumulative amount based on the number of sounding points in the first batch of multibeam bathymetry point cloud data is used to obtain the corresponding eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area and the water depth reference. The center of the survey area is formed by combining the eastward coordinates of the center of the survey area, the northward coordinates of the center of the survey area, and the water depth reference.

3. The mobile rendering method for multibeam bathymetry point clouds according to claim 2, characterized in that, The process of performing local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin to obtain the local coordinate point cloud data of the corresponding batch includes: For each sounding point in the multibeam echo sounding point cloud data of each batch, the eastward and northward coordinates of the sounding point are translated in a plane based on the fixed reference origin to obtain the local eastward and local northward coordinates of the sounding point; Using the water depth reference at the fixed reference origin as the depth datum, the relative water depth of the sounding point relative to the depth datum is calculated, and the relative water depth is oriented according to the preset elevation transformation rule to obtain the local height coordinates of the sounding point. Preserve the echo intensity at that sounding point; The echo intensity, local eastward coordinates, local northward coordinates, and local altitude coordinates of each sounding point are used to construct the local coordinate point cloud data for the corresponding batch.

4. The mobile rendering method for multibeam bathymetry point clouds according to claim 2, characterized in that, The step of synchronizing the fixed reference origin to the camera subsystem, so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system, includes: The fixed reference origin is synchronized to the camera subsystem so that the fixed reference origin serves as the local coordinate origin of the camera subsystem. Based on the fixed reference origin, the observation target point of the camera subsystem is reset to a local position with the eastward coordinates of the center of the survey area and the northward coordinates of the center of the survey area as the origin, thus obtaining the reset observation target point; The current carrier position is obtained and a copy is retained. The current carrier position is then normalized to the local coordinate system where the fixed reference origin is located to obtain the local position of the carrier. The reset observation target point and the local position of the carrier are determined as the current observation state of the camera subsystem, so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system.

5. A mobile rendering method for multibeam bathymetry point clouds according to claim 1, characterized in that, The local coordinate point cloud data is written into a vertex buffer object in batches, and the current orbiting state and current cursor position in the vertex buffer object are updated in real time based on a preset ring rule, including: The storage space of the vertex buffer object is set based on the preset fixed point capacity, and the storage space extends from the storage start point to the storage end point. The current remaining space capacity is determined based on the current cursor position and the storage endpoint. Starting from the current cursor position, the local coordinate point cloud data of the current batch is written to the vertex buffer object, and the current surrounding state and the current cursor position are updated in real time, wherein: If the number of depth measurement points in the local coordinate point cloud data of the current batch is greater than or equal to the preset fixed point capacity, then only the last few points of the preset fixed point capacity in the local coordinate point cloud data of the current batch are retained. The retained local coordinate point cloud data is written to the vertex buffer object from the storage starting point to overwrite the local coordinate point cloud data already stored in the vertex buffer object. The current cursor position is reset to the storage starting point, and the current surround state is updated to surrounded. If the number of depth measurement points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is greater than the number of depth measurement points, then the local coordinate point cloud data of the current batch is continuously written from the current cursor position, and the current cursor position is moved forward in the direction of the storage endpoint by the number of depth measurement points of the current batch. If the number of points in the local coordinate point cloud data of the current batch is less than the preset fixed point capacity, and the current remaining space capacity is less than or equal to the number of sounding points, then the local coordinate point cloud data of the current batch is first written to the storage endpoint from the current cursor position, and then the local coordinate point cloud data of the current batch that has not yet been written is continued to be written from the storage starting point to cover the local coordinate point cloud data already stored at the storage starting point, the current surround state is updated to surrounded, and the current cursor position is updated to the end position of writing the local coordinate point cloud data that has not yet been written.

6. A mobile rendering method for multibeam bathymetry point clouds according to claim 5, characterized in that, The process involves segmented rendering on a mobile device based on local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain an underwater point cloud rendering interface, including: If the current surrounding state is not surrounding, the local coordinate point cloud data between the starting point and the current cursor position stored in the vertex buffer object is determined as the data to be rendered, and the data to be rendered is drawn in a single draw on the mobile device to obtain the point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is at the storage starting point, then all local coordinate point cloud data in the vertex buffer object are determined as the data to be rendered, and the data to be rendered is drawn in one go on the mobile terminal to obtain point cloud drawing data. If the current surrounding state is already surrounded and the current cursor position is not located at the storage start point, then the local coordinate point cloud data between the current cursor position and the storage end point in the vertex buffer object is determined as the prior data segment to be rendered, and the local coordinate point cloud data between the storage start point and the current cursor position is determined as the subsequent data segment to be rendered. The prior data segment to be rendered and the subsequent data segment to be rendered are drawn sequentially on the mobile device to obtain point cloud drawing data. Based on the current observation state of the camera subsystem, the point cloud drawing data is observed and presented to obtain the seabed point cloud rendering interface.

7. A mobile rendering method for multibeam bathymetry point clouds according to claim 6, characterized in that, The process involves segmented rendering on a mobile device based on local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain an underwater point cloud rendering interface, including: Local height coordinates are obtained based on the local coordinate point cloud data; The local height coordinates of the local coordinate point cloud data are restored from the height semantics (height is positive upwards) to the depth semantics (water depth is positive downwards) to obtain the relative water depth of each sounding point relative to the fixed reference origin. Based on the relative water depth and the water depth benchmark of the fixed reference origin, the original water depth of each depth measuring point is calculated to obtain depth color data; The point cloud rendering data is then subjected to depth coloring based on the depth coloring data, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

8. A mobile rendering method for multibeam bathymetry point clouds according to claim 7, characterized in that, The process of applying depth color to the point cloud rendering data based on the depth coloring data, and combining this with the current observation state of the camera subsystem to present the rendered data, results in the seabed point cloud rendering interface, including: The depth coloring data is normalized based on a preset depth coloring range to obtain normalized depth data. Based on the normalized depth data, the texture of the preset depth lookup table is sampled to obtain a depth-colored set. The point cloud rendering data is depth-colored based on the depth-coloring set, and the current observation state of the camera subsystem is combined with the observation and presentation to obtain the seabed point cloud rendering interface.

9. A mobile rendering method for multibeam bathymetry point clouds according to claim 6, characterized in that, Before the single drawing or the sequential drawing, the method further includes: A parameter snapshot is created based on preset rendering parameters, and the parameter snapshot is protected by a mutex lock. In response to a rendering parameter modification request, rendering modification parameters are determined based on the rendering parameter modification request, the rendering modification parameters are written to the parameter snapshot, and an atomic dirty flag is set on the parameter snapshot; Based on the parameter snapshot, the atomic dirty flag is detected. When the atomic dirty flag is detected, the parameter snapshot is consumed and the atomic dirty flag is cleared according to the preset consumption adjustment rules to obtain the adjusted rendering parameters. Based on the adjusted rendering parameters, at least one of the data to be rendered, the preceding data segment to be rendered, and the subsequent data segment to be rendered is rendered and drawn to obtain the point cloud drawing data.

10. A mobile rendering system for multibeam bathymetry point clouds, the mobile rendering system for multibeam bathymetry point clouds comprising a camera subsystem, characterized in that, Also includes: The data acquisition module is used to acquire multiple batches of multibeam bathymetry point cloud data in real time; The center determination module is used to determine the center of the point cloud based on the overall coordinate distribution of the first batch of multibeam bathymetry point cloud data, and to determine the point cloud center as a fixed reference origin, and to keep the fixed reference origin unchanged in the subsequent batches of multibeam bathymetry point cloud data processing. The coordinate transformation module is used to perform local coordinate transformation on the multibeam bathymetry point cloud data of each batch based on the fixed reference origin, so as to obtain the local coordinate point cloud data of the corresponding batch. The origin synchronization module is used to synchronize the fixed reference origin to the camera subsystem so that the camera subsystem and the local coordinate point cloud data are in the same local coordinate system. The circular writing module is used to write the local coordinate point cloud data into the vertex buffer object in batches, and update the current surrounding state and current cursor position in the vertex buffer object in real time based on the preset circular rules. The segmented rendering module is used to perform segmented rendering on the mobile device based on the local coordinate point cloud data in the vertex buffer object, the current orbiting state, the current cursor position, and the current observation state of the camera subsystem, to obtain the seabed point cloud rendering interface.