GPU-accelerated method and device for extracting lake DLG from hyperspectral image
By performing coarse extraction of water regions from hyperspectral images in the CPU and precise matching and opening operations using CUDA cores in the GPU, the problems of low automation and data transmission bottleneck in hyperspectral image DLG acquisition methods for lakes are solved, achieving efficient lake DLG extraction.
Patent Information
- Application Number
- CN202510869833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-06-26
AI Technical Summary
Existing hyperspectral imaging DLG acquisition methods for lakes have low automation levels, and the data transfer rate between the CPU and GPU cannot match the GPU's computing speed, resulting in excessively long processing times and the inability to fully utilize hardware bottlenecks.
By employing GPU acceleration technology, a coarse water body vector set is generated by performing coarse extraction of water body regions in the CPU, and then precise matching and opening operations are performed in the GPU using multiple CUDA cores, thereby reducing the amount of data transfer between the CPU and GPU and improving processing efficiency.
It improves the computational efficiency of DLG extraction from hyperspectral images of lakes, reduces manual intervention, enhances the feasibility of large-scale applications, and makes full use of the parallel processing capabilities of GPUs.
Smart Images

Figure CN120708066B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hyperspectral image processing, and more specifically, to a method and apparatus for extracting DLG from hyperspectral images of lakes based on GPU acceleration. Background Technology
[0002] With the continuous development and integration of computer technology and spatial information technology, surveyors are no longer satisfied with the early method of using surveying technology to collect large-scale topographic maps in the field for lake DLG data collection, because this method is not only greatly affected by the environment, but also very inefficient.
[0003] Remote sensing technology is a technique for detecting and identifying targets by sensing electromagnetic waves, visible light, and infrared radiation reflected or emitted by the target from a distance. Hyperspectral remote sensing is a new Earth observation technology that emerged in the 1980s. It is a technique for acquiring a large amount of very narrow and spectrally continuous image data in the ultraviolet, visible, near-infrared, and mid-infrared regions of the electromagnetic spectrum. Hyperspectral imaging spectrometers provide tens to hundreds of narrow-band spectral information for each pixel, generating a spectral curve between spectral bands and spectral values. Therefore, hyperspectral images not only contain two-dimensional spatial information but also a large amount of spectral information. Different substances behave differently under different spectral signals in different bands. Based on the differences in spectral curves, we can perform DLG (Depth-Layer Gauge) data acquisition on lakes in hyperspectral images.
[0004] However, the above methods for acquiring DLG data for lakes using hyperspectral imagery still require a significant amount of computation time, which is insufficient to meet the processing time requirements of surveyors. Summary of the Invention
[0005] This invention addresses the problem of low processing efficiency of hyperspectral image data in existing technologies by providing a GPU-accelerated method and apparatus for extracting DLG from hyperspectral images of lakes.
[0006] According to a first aspect of the present invention, a GPU-accelerated method for extracting DLG from hyperspectral images of lakes is provided, comprising:
[0007] The hyperspectral image data is preprocessed in the CPU, and the water body regions in the hyperspectral image data are coarsely extracted to generate a coarsely extracted water body vector set. The coarsely extracted water body vector set is transmitted to the GPU, wherein the coarsely extracted water body vector set records the spectral data of each water body pixel extracted in the coarse extraction.
[0008] Multiple CUDA cores are deployed in the GPU, and a matching task for a water pixel is assigned to each CUDA core. The matching task is to match the spectral data of the current water pixel with each spectrum in the spectral library, and based on the matching result, determine whether the current water pixel is a lake system pixel.
[0009] Based on the determination results of each water pixel by multiple CUDA cores, a result matrix is generated and the result matrix is transmitted to the CPU.
[0010] In the CPU, a binarized image is constructed based on the result matrix, and the binarized image is sent to the GPU. In the GPU, an opening operation is performed on the binarized image to generate a lake pixel image.
[0011] Extract lake DLG from the lake pixel image.
[0012] According to a second aspect of the present invention, a GPU-accelerated hyperspectral image lake DLG extraction device is provided, comprising a preprocessing module, a lake pixel extraction module, a binarized image construction module, and a lake DLG extraction module, wherein the preprocessing module and the binarized image construction module are located in a CPU, and the lake pixel extraction module and the lake DLG extraction module are located in a GPU.
[0013] The preprocessing module is used to preprocess the hyperspectral image data, coarsely extract the water body regions in the hyperspectral image data, generate a coarsely extracted water body vector set, and transmit the coarsely extracted water body vector set to the GPU. The coarsely extracted water body vector set records the spectral data of each water body pixel extracted in the coarse extraction.
[0014] The lake pixel extraction module completes the matching task of all water body pixels based on multiple CUDA cores deployed in the GPU. Each CUDA core is assigned a matching task for one water body pixel. The matching task involves matching the current water body pixel with each spectrum in the spectral library, determining whether the current water body pixel is a lake water system pixel based on the matching results, and generating a result matrix based on the determination results of each water body pixel by multiple CUDA cores, and transmitting the result matrix to the CPU.
[0015] The binarized image construction module is used to construct a binarized image based on the result matrix and send the binarized image to the GPU;
[0016] The lake DLG extraction module is used to perform an opening operation on the binarized image to generate a lake pixel image; and to extract the lake DLG from the binarized image.
[0017] This invention provides a GPU-accelerated method and apparatus for extracting lake DLG from hyperspectral images. The method performs coarse extraction of water pixels from hyperspectral image data on the CPU, constructing a water vector set, reducing data transfer between the CPU and GPU, improving GPU utilization, and further enhancing processing efficiency. For precise identification of lake water system pixels, the parallel architecture of the GPU (NVIDIA CUDA) simultaneously processes tens of thousands of hyperspectral image pixels containing hundreds of bands, performing tasks such as preprocessing, lake pixel extraction, and lake DLG extraction. This eliminates the need for manual computation, enhancing the feasibility of large-scale applications. Attached Figure Description
[0018] Figure 1 A flowchart of a GPU-accelerated hyperspectral image lake DLG extraction method provided for this invention;
[0019] Figure 2 This is a flowchart illustrating the preprocessing of hyperspectral image data according to an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the process for extracting lake water system pixels according to an embodiment of the present invention;
[0021] Figure 4 This is an overall flowchart of lake water system pixel extraction according to an embodiment of the present invention;
[0022] Figure 5 This is a structural block diagram of a GPU-accelerated hyperspectral image lake DLG extraction device according to an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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, 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. In addition, the technical features of the various embodiments or individual embodiments provided by the present invention can be arbitrarily combined with each other to form feasible technical solutions. Such combinations are not constrained by the order of steps and / or structural composition patterns, but must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0024] Existing methods for extracting deep vein gravitational genomics (DLG) from hyperspectral images mainly suffer from two problems: 1. Low automation: Existing methods require manual adjustment of threshold parameters or reliance on prior knowledge to set feature extraction rules, resulting in limited generalization ability when applied across different regions. 2. Hardware bottlenecks: The data transfer rate between the CPU and GPU cannot match the GPU's computing speed. Furthermore, due to the massive amount of data in hyperspectral images, most of the processing time is spent on data transfer, preventing the GPU from fully utilizing its processing power.
[0025] This invention addresses the shortcomings of existing technologies by using full-spectrum information from hyperspectral imagery for matching calculations, fully utilizing all the information in the imagery. However, this design significantly increases computational load. Therefore, by introducing GPU acceleration technology, the computation process is optimized, greatly improving computational efficiency. Furthermore, since hyperspectral imagery is large, data transfer between the CPU and GPU consumes considerable time. Therefore, this invention reduces data transfer between the CPU and GPU by constructing a coarsely extracted water body vector set, thus improving efficiency.
[0026] Figure 1 A flowchart of a GPU-accelerated hyperspectral image lake DLG extraction method provided for this invention is shown below. Figure 1 As shown, the method includes:
[0027] Step 1: Preprocess the hyperspectral image data in the CPU, coarsely extract the water body regions in the hyperspectral image data, generate a coarsely extracted water body vector set, and transmit the coarsely extracted water body vector set to the GPU. The coarsely extracted water body vector set records the spectral data of each water body pixel extracted coarsely.
[0028] See Figure 2 The preprocessing of hyperspectral image data is performed on the CPU. This preprocessing mainly includes radiometric calibration, atmospheric correction, orthorectification, and coarse extraction of water body regions to obtain a set of water body vectors.
[0029] The step of preprocessing the hyperspectral image data in the CPU, and coarsely extracting water bodies from the hyperspectral image data to generate a coarsely extracted water body vector set includes:
[0030] Step 11: Input the RPC file, hyperspectral image data, and hyperspectral image metadata into the CPU. The RPC file includes geometric correction parameters.
[0031] Step 12: Perform radiometric calibration on the hyperspectral image data based on the input hyperspectral image data, the hyperspectral image metadata, and the radiometric calibration parameters;
[0032] Step 13: Perform atmospheric correction on the radiometrically calibrated hyperspectral image data, and perform geometric correction based on the geometric correction parameters;
[0033] Step 14: Perform coarse extraction of water body regions on the geometrically corrected hyperspectral image data to generate a coarsely extracted water body vector set.
[0034] Specifically, due to the large amount of hyperspectral image data, the complete transmission between the CPU and GPU would consume a lot of time. Furthermore, most of the pixels in a single scene are non-aquatic, which increases the computational load on the GPU. Therefore, water pixels are initially screened by coarsely extracting water areas after radiometric calibration, atmospheric correction, and geometric correction.
[0035] Because the reflectivity of the near-infrared band is better at distinguishing water bodies and most non-aquatic objects on the land surface compared to the reflectivity of other bands (such as blue, green and red bands), in this invention, most non-aquatic objects in the target hyperspectral image can be distinguished from water bodies by using the reflectivity threshold of the near-infrared band, so as to extract the coarsely extracted water body area from the target hyperspectral image.
[0036] Therefore, step 41 involves coarsely extracting water regions from the geometrically corrected hyperspectral image data to generate a coarsely extracted water vector set, including:
[0037] If the reflectance of the near-infrared band of each pixel in the geometrically corrected hyperspectral image data is less than a set threshold, then the pixel is initially identified as a water body pixel; otherwise, the pixel is a non-water body pixel.
[0038] Traverse every pixel in the hyperspectral image data and coarsely extract all water body pixels from the hyperspectral image data;
[0039] Based on the location information of each water body pixel and the spectral value of each band, a coarse water body vector set is constructed. The coarse water body vector set includes multiple vector data. Each vector data includes the location information of a water body pixel and the spectral value of each pixel band. The location information of the water body pixel is represented by the row and column of the water body pixel. The representation of the coarse water body vector set can be seen in Table 1 below.
[0040] Table 1. Set of coarsely extracted water body vectors
[0041]
[0042] Table 1 records the relevant data for each water body pixel extracted coarsely, including the row and column position of the pixel and the spectral value of each pixel band. A vector data represents the relevant information of a water body pixel.
[0043] Step 2: Deploy multiple CUDA cores in the GPU and assign a matching task for each CUDA core. The matching task is to match the spectral data of the current water pixel with each spectrum in the spectral library. Based on the matching results, determine whether the current water pixel is a lake system pixel.
[0044] Understandably, step 1 coarsely extracts water region pixels from the hyperspectral image data. However, this coarse extraction is not very accurate, as it may mistakenly identify some non-water pixels as water pixels. Therefore, it is necessary to further refine the determination of whether each water pixel is indeed a lake or river system pixel. This precise determination is performed on the GPU. Thus, step 1 performs coarse extraction of water pixels, which reduces the amount of data transferred between the CPU and GPU, and shortens data transfer time.
[0045] See also Figure 3 This invention extracts water system pixels by matching the spectrum of each water body pixel in the preprocessed coarse water body vector set with the spectrum in the spectral library using spectral angle matching. Then, it performs an opening operation on the water system pixels to remove non-lake water system pixels and outputs lake water system pixels.
[0046] Since the core mathematical operations for spectral angle matching involve performing vector dot product, magnitude calculation, and inverse cosine operation on each coarsely extracted water body vector, the set of water body vectors is loaded into GPU memory, and batch computation is performed using CUDA kernel functions. OpenCV provides the `morphologyEx()` interface for opening operations, enabling GPU-accelerated morphological operations through pre-compiled CUDA code.
[0047] Because the amount of data to be processed is relatively large, multiple CUDA cores are deployed in the GPU, with each CUDA core responsible for handling the matching and judgment task of one water pixel. In one embodiment of the present invention, step 2 specifically includes:
[0048] Step 21: In each CUDA core, traverse each spectrum in the spectral library, calculate the spectral angle between each spectrum and the spectrum of the water pixel in the current vector data, and obtain the m spectral angles corresponding to the current water pixel, where m is the number of spectra in the spectral library.
[0049] Step 22: If one or more of the m spectral angles are less than the spectral angle threshold, then the current water body pixel is determined to be a lake water system pixel.
[0050] Step 23: If all spectral angles in the m spectral angles are greater than the spectral angle threshold, then the current water body pixel is determined to be a non-lake water system pixel.
[0051] Specifically, the GPU-accelerated extraction process for lake and water system pixels is as follows: Figure 4 As shown, firstly, the CPU sends the preprocessed coarsely extracted water body vector set and the spectral library to the GPU. Then, each CUDA core in the GPU is responsible for processing one water body vector data. For a CUDA core in the GPU, it iterates through each spectrum in the spectral library and calculates the spectral angle between each spectrum and the spectrum of the water body pixel in the current water body vector. If the spectral angle between any spectrum in the spectral library and the spectrum of the current water body pixel is less than 1.0°, it indicates that the water body pixel is indeed a lake system pixel. If the spectral angle between every spectrum in the spectral library and the current water body pixel is greater than 1.0°, it indicates that the water body pixel is not a lake system pixel.
[0052] By using multiple CUDA cores in the GPU, each water pixel in the coarsely extracted water vector set is precisely identified to determine whether each water pixel belongs to a lake system.
[0053] If the number of water pixels in the coarsely extracted water vector set is large, but the number of CUDA cores in the GPU is limited, then all vector data can be divided into n batches, where n ≥ 2 and n is a positive integer. For each batch of vector data, the matching task is executed in parallel based on multiple CUDA cores. After processing one batch of water pixel data based on multiple CUDA cores, another batch of water pixel data is then processed.
[0054] Step 3: Based on the determination results of each water pixel by multiple CUDA cores, generate a result matrix and transmit the result matrix to the CPU.
[0055] Understandably, after step 2 accurately determines whether each water pixel in the coarsely extracted water vector set is a lake water system pixel, the determination result of whether each water pixel is a lake water system pixel is recorded in the result matrix. The result matrix includes the row and column position information and identification information of each water pixel. The identification information indicates whether the water pixel is a lake water system pixel. The constructed result matrix is transmitted to the CPU.
[0056] Step 4: In the CPU, a binarized image is constructed based on the result matrix, and the binarized image is sent to the GPU. In the GPU, an opening operation is performed on the binarized image to generate a lake pixel image.
[0057] Step 5: Extract lake DLG from the binarized image.
[0058] Understandably, the lake's DLG (Digital Line Graphic) is extracted from the lake pixel image generated in step 4. DLG is a basic dataset that stores geographic features in vector form, containing both spatial coordinates (such as roads, waterways, and settlement boundaries) and attribute information (such as name and type).
[0059] In one embodiment, step 5 specifically includes:
[0060] Lake DLG is extracted from lake pixel images using the boundary tracing method, generating surface features with topological relationships.
[0061] The extraction of lake DLG from the binarized image based on the boundary tracing method includes:
[0062] The boundary tracing method is used to scan the boundary pixels of each lake and water system region pixel by pixel to extract the boundary contour of each lake and water system region.
[0063] This involves allocating multiple lake and water system regions to multiple GPU thread blocks, and then using these GPU thread blocks to process the extraction of the boundary contours of the multiple lake and water system regions in parallel.
[0064] Specifically, lake DLG extraction involves extracting boundary contour pixels from the lake's water system region. In one embodiment of this invention, a boundary tracing method is used to extract the lake DLG. If there are many lake water system regions, or if the lake water system regions are large, resulting in a large number of boundary pixels, multiple GPU thread blocks can be considered. Each thread is responsible for tracing a single boundary segment, and the global path state is managed through atomic operations, significantly improving efficiency.
[0065] See Figure 5 The present invention provides a GPU-accelerated hyperspectral image lake DLG extraction device, which includes a preprocessing module 501, a lake pixel extraction module 502, a binarized image construction module 503, and a lake DLG extraction module 504. The preprocessing module 501 and the binarized image construction module 503 are located in the CPU, while the lake pixel extraction module 502 and the lake DLG extraction module 504 are located in the GPU.
[0066] The preprocessing module 501 is used to preprocess the hyperspectral image data, coarsely extract the water body regions in the hyperspectral image data, generate a coarsely extracted water body vector set, and transmit the coarsely extracted water body vector set to the GPU. The coarsely extracted water body vector set records the spectral data of each coarsely extracted water body pixel.
[0067] The lake pixel extraction module 502 completes the matching task of all water body pixels based on multiple CUDA cores deployed in the GPU. Each CUDA core is assigned a matching task for one water body pixel. The matching task is to match the current water body pixel with each spectrum in the spectral library, determine whether the current water body pixel is a lake water system pixel based on the matching results, and generate a result matrix based on the determination results of each water body pixel by multiple CUDA cores, and transmit the result matrix to the CPU.
[0068] The binarized image construction module 503 is used to construct a binarized image based on the result matrix and send the binarized image to the GPU;
[0069] The lake DLG extraction module 504 is used to perform an opening operation on the binarized image to generate a lake pixel image; and to extract the lake DLG from the binarized image.
[0070] The preprocessing module 501 is used to preprocess the hyperspectral image data, coarsely extract water regions from the hyperspectral image data, generate a coarsely extracted water vector set, and transmit the coarsely extracted water vector set to the GPU, including:
[0071] The hyperspectral image data is subjected to radiometric calibration, atmospheric correction, and geometric correction.
[0072] Determine whether the reflectance of the near-infrared band of each pixel in the geometrically corrected hyperspectral image data is less than a set threshold. If so, the pixel is initially identified as a water pixel.
[0073] Traverse every pixel in the hyperspectral image data and coarsely extract all water body pixels from it;
[0074] Based on the location information of each water body pixel and the spectral value of each band, a coarse water body vector set is constructed. The coarse water body vector set includes multiple vector data. Each vector data includes the location information of a water body pixel and the spectral value of each pixel band. The location information of the water body pixel is represented by the row and column where the water body pixel is located.
[0075] The lake pixel extraction module 502, based on multiple CUDA cores deployed in the GPU, completes the matching task for all water pixels, including:
[0076] Assign a matching task for vector data to each CUDA core, traverse each spectrum in the spectral library, calculate the spectral angle between each spectrum and the spectrum of the water pixel in the current vector data, and obtain the m spectral angles corresponding to the current water pixel, where m is the number of spectra in the spectral library.
[0077] If one or more of the m spectral angles are less than the spectral angle threshold, then the current water pixel is determined to be a lake water system pixel.
[0078] If all spectral angles out of m spectral angles are greater than the spectral angle threshold, then the current water body pixel is determined to be a non-lake water system pixel.
[0079] It is understood that the GPU-accelerated hyperspectral image lake DLG extraction system provided by the present invention corresponds to the GPU-accelerated hyperspectral image lake DLG extraction method provided in the foregoing embodiments. The relevant technical features of the GPU-accelerated hyperspectral image lake DLG extraction system can be referred to the relevant technical features of the GPU-accelerated hyperspectral image lake DLG extraction method, and will not be repeated here.
[0080] The present invention provides a GPU-accelerated hyperspectral image lake DLG extraction method and apparatus, which has the following advantages:
[0081] (1) Using the parallel architecture of GPU (NVIDIA CUDA) to simultaneously process tens of thousands of hyperspectral image pixels containing hundreds of bands, lake pixel extraction, lake DLG extraction and other tasks, the computation avoids human intervention and the feasibility of large-scale application is enhanced.
[0082] (2) By constructing a coarse extraction water body vector set, the amount of data transfer between CPU and GPU is reduced, the utilization rate of GPU is improved, and the processing efficiency is further improved.
[0083] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0084] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0085] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0086] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0087] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0088] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0089] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A GPU-accelerated hyperspectral image lake DLG extraction method, characterized in that, include: The hyperspectral image data is preprocessed in the CPU, and the water body regions in the hyperspectral image data are coarsely extracted to generate a coarsely extracted water body vector set. The coarsely extracted water body vector set is transmitted to the GPU, wherein the coarsely extracted water body vector set records the spectral data of each water body pixel extracted in the coarse extraction. Multiple CUDA cores are deployed in the GPU, and a matching task for a water pixel is assigned to each CUDA core. The matching task is to match the spectral data of the current water pixel with each spectrum in the spectral library, and based on the matching result, determine whether the current water pixel is a lake system pixel. Based on the determination results of each water pixel by multiple CUDA cores, a result matrix is generated and the result matrix is transmitted to the CPU. In the CPU, a binarized image is constructed based on the result matrix, and the binarized image is sent to the GPU. In the GPU, an opening operation is performed on the binarized image to generate a lake pixel image. Extract lake DLG from the lake pixel image. 2.The hyperspectral image lake DLG extraction method according to claim 1, characterized in that, The step of preprocessing the hyperspectral image data in the CPU, and coarsely extracting water bodies from the hyperspectral image data to generate a coarsely extracted water body vector set includes: Input the RPC file, hyperspectral image data, and hyperspectral image metadata into the CPU. The RPC file includes geometric correction parameters. Radiometric calibration is performed on the hyperspectral image data based on the input hyperspectral image data, hyperspectral image metadata, and radiometric calibration parameters. Atmospheric correction is performed on the radiometrically calibrated hyperspectral image data, and geometric correction is performed based on the geometric correction parameters; The geometrically corrected hyperspectral image data is subjected to coarse extraction of water body regions to generate a coarsely extracted water body vector set. 3.The hyperspectral image lake DLG extraction method according to claim 1 or 2, characterized in that, The step of coarsely extracting water bodies from the geometrically corrected hyperspectral image data to generate a coarsely extracted water body vector set includes: If the reflectance of the near-infrared band of each pixel in the geometrically corrected hyperspectral image data is less than a set threshold, then the pixel is initially determined to be a water pixel; otherwise, the pixel is determined to be a non-water pixel. Traverse every pixel in the hyperspectral image data and coarsely extract all water body pixels from the hyperspectral image data; Based on the location information of each water body pixel and the spectral value of each band, a coarse water body vector set is constructed. The coarse water body vector set includes multiple vector data. Each vector data includes the location information of a water body pixel and the spectral value of each pixel band. The location information of the water body pixel is represented by the row and column where the water body pixel is located. 4.The hyperspectral image lake DLG extraction method according to claim 1, characterized in that, The process involves deploying multiple CUDA cores in the GPU and assigning a matching task to each CUDA core for a water pixel. This matching task involves matching the spectral data of the current water pixel with every spectrum in the spectral library. Based on the matching results, it determines whether the current water pixel belongs to a lake system. This includes: In each CUDA core, iterate through each spectrum in the spectral library, calculate the spectral angle between each spectrum and the spectrum of the water pixel in the current vector data, and obtain the m spectral angles corresponding to the current water pixel, where m is the number of spectra in the spectral library; If one or more of the m spectral angles are less than the spectral angle threshold, then the current water pixel is determined to be a lake water system pixel. If all spectral angles out of m spectral angles are greater than the spectral angle threshold, then the current water body pixel is determined to be a non-lake water system pixel. 5.The hyperspectral image lake DLG extraction method according to claim 4, characterized in that, When the number of CUDA cores is less than the number of vector data, all vector data is divided into n batches, where n ≥ 2 and n is a positive integer. For each batch of vector data, the matching task is executed in parallel based on multiple CUDA cores. 6.The hyperspectral image lake DLG extraction method according to claim 1, characterized in that, The process of generating a result matrix based on the determination results of each water pixel using multiple CUDA cores and transmitting the result matrix to the CPU includes: The determination result of whether each water pixel is a lake water system pixel is recorded in the result matrix. The result matrix includes the row and column position information and identification information of each water pixel. The identification information indicates whether the water pixel is a lake water system pixel. 7.The hyperspectral image lake DLG extraction method according to claim 1, characterized in that, Extracting lake DLG from the binarized image includes: Lake DLG is extracted from the binarized image based on the boundary tracing method to generate surface features with topological relationships; The extraction of lake DLG from the binarized image based on the boundary tracing method includes: The boundary tracing method is used to scan the boundary pixels of each lake and water system region pixel by pixel to extract the boundary contour of each lake and water system region. This involves allocating multiple lake and water system regions to multiple GPU thread blocks, and then using these GPU thread blocks to process the extraction of the boundary contours of the multiple lake and water system regions in parallel.
8. A GPU acceleration-based hyperspectral image lake DLG extraction device, characterized in that, It includes a preprocessing module, a lake pixel extraction module, a binarized image construction module, and a lake DLG extraction module, wherein the preprocessing module and the binarized image construction module are located in the CPU, and the lake pixel extraction module and the lake DLG extraction module are located in the GPU; The preprocessing module is used to preprocess the hyperspectral image data, coarsely extract the water body regions in the hyperspectral image data, generate a coarsely extracted water body vector set, and transmit the coarsely extracted water body vector set to the GPU. The coarsely extracted water body vector set records the spectral data of each water body pixel extracted in the coarse extraction. The lake pixel extraction module completes the matching task of all water body pixels based on multiple CUDA cores deployed in the GPU. Each CUDA core is assigned a matching task for one water body pixel. The matching task involves matching the current water body pixel with each spectrum in the spectral library, determining whether the current water body pixel is a lake water system pixel based on the matching results, and generating a result matrix based on the determination results of each water body pixel by multiple CUDA cores, and transmitting the result matrix to the CPU. The binarized image construction module is used to construct a binarized image based on the result matrix and send the binarized image to the GPU; The lake DLG extraction module is used to perform an opening operation on the binarized image to generate a lake pixel image; and to extract the lake DLG from the binarized image. 9.The hyperspectral image lake DLG extraction device of claim 8, wherein, The preprocessing module is used to preprocess the hyperspectral image data, perform coarse extraction of water bodies from the hyperspectral image data, generate a coarsely extracted water body vector set, and transmit the coarsely extracted water body vector set to the GPU, including: The hyperspectral image data is subjected to radiometric calibration, atmospheric correction, and geometric correction. Determine whether the reflectance of the near-infrared band of each pixel in the geometrically corrected hyperspectral image data is less than a set threshold. If so, the pixel is initially identified as a water pixel. Traverse every pixel in the hyperspectral image data and coarsely extract all water body pixels from it; Based on the location information of each water body pixel and the spectral value of each band, a coarse water body vector set is constructed. The coarse water body vector set includes multiple vector data. Each vector data includes the location information of a water body pixel and the spectral value of each pixel band. The location information of the water body pixel is represented by the row and column where the water body pixel is located. 10.The hyperspectral image lake DLG extraction device of claim 9, wherein, The lake pixel extraction module, based on multiple CUDA cores deployed in the GPU, completes the matching task for all water pixels, including: Assign a matching task for vector data to each CUDA core, traverse each spectrum in the spectral library, calculate the spectral angle between each spectrum and the spectrum of the water pixel in the current vector data, and obtain the m spectral angles corresponding to the current water pixel, where m is the number of spectra in the spectral library. If one or more of the m spectral angles are less than the spectral angle threshold, then the current water pixel is determined to be a lake water system pixel. If all spectral angles out of m spectral angles are greater than the spectral angle threshold, then the current water body pixel is determined to be a non-lake water system pixel.
Citation Information
Patent Citations
Water-body classification
US20140119639A1
Adaptive spatial-spectral processing (ASSP)
WO2010132135A1
