Image-based interactive geological mineral map generation method and system

By converting the geological map into RGBA channel image and reassigning the A channel to block number, the problem of being unable to control the visible and hidden image areas in the prior art is solved, and independent visible and hidden control of the blocks in the image and rich data expressiveness are achieved.

CN117152367BActive Publication Date: 2025-05-06TIBET JULONG COPPER CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310807131.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2025-05-06
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

The existing geographical information system cannot control the visible and hidden area of ​​an image file separately, resulting in the need to be divided into multiple files for use, which is inconvenient to use.

Method used

By converting the geological map to an image file format using the RGBA channel and reassigning the A channel to a block number, control of the visible and hidden state of the block in the image is achieved. Use the display list to store the partition number that needs to be displayed, and render according to the value of the A channel during rendering or transparent processing.

Benefits of technology

It realizes the display and hidden control of image files, can independently control the visible and hidden state of each partition, improves data expressiveness and computing power, and initially makes image replacement surfaces possible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117152367B_ABST
    Figure CN117152367B_ABST
Patent Text Reader

Abstract

The present invention discloses an image-based interactive geological mineral map generation method, comprising the following steps: exporting a geological map and converting it into a geological map image in an image file format using RGBA channels; reassigning the A channel of each pixel in the geological map image, the A channel assignment being a block number, the block number being based on lithological partitions; writing the partition number to be displayed into a display list; rendering the image according to the assignment of the A channel of each pixel in the geological map image, if the partition number of the A channel of the pixel in the geological map image exists in the display list, rendering the pixel in a corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed. The present invention can realize the display and hiding control of image files. Furthermore, the query of geographic image partition attribute information can also be realized through a custom key-value data structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to an image-based interactive geological mineral map generation method and system. Background Art

[0002] In geographic information systems, points, lines, and surfaces are three basic elements. When displaying these data, geographic information system software usually renders these three elements with different logics and superimposes them to form the final image. Traditionally, these elements are usually stored in the form of vector data.

[0003] Among them, "surface" is the most complex element. In the traditional vector data storage method, the surface is defined by a closed "line", that is, a polygon. For example, in MapGIS 6.7, the most widely used software in China's geological exploration industry, the file format corresponding to the surface is "area file". In order to draw a zone file, the user must first use the line file drawing tool to draw a closed polygon that cannot intersect itself, and then convert this polygon into a block in the zone file.

[0004] In ArcGIS, the three basic forms of expression of geographic information layers are divided into three types: features, attributes, and images (i.e., images). "Surfaces" are features, and they are different forms of expression from images. However, from the user's perspective, images and surfaces have many similarities, and they both cover a certain area in two-dimensional space and have a certain area. Compared with "surfaces", images are rasterized and discrete data. Limited by resolution, within the limited storage space of today's computers, the accuracy of their description of regional scope is much lower than that of vectorized "surfaces", because the surface defines the coordinates of the key points of the region, and its position accuracy can be said to be continuous, while the accuracy of images is fixed to its resolution, and its position accuracy is discrete.

[0005] However, when users do not have strict requirements on accuracy, especially when the performance of today's computers has been greatly improved compared to 10 years ago and can process and display higher resolution images, images have more advantages than "surfaces":

[0006] Images can store different values ​​of the same attribute in each pixel (i.e. different properties), while the same attribute in a "surface" can usually only have the same value. For example, in MapGIS 6.7, a region (i.e. "surface") can only have one color, while each pixel in an image file can have a different color.

[0007] Images are easier to perform mathematical calculations on. With the rapid development of parallel computing today, there is dedicated hardware such as GPU for image processing, and a variety of software has been developed to enable users and developers to easily achieve target operations. For example, the famous image processing software Photoshop is based on image operations, which can easily mix multiple image layers in different ways; the famous remote sensing data processing software ENVI is also based on the same principle, performing operations on images to interpret and extract remote sensing information. However, the vector surfaces in software such as MapGIS and ArcGIS cannot quickly and accurately mix information from different layers.

[0008] In short, when an acceptable compromise can be made between the storage space (mainly memory) and data accuracy, images always have stronger data representation than surfaces. However, since the use of images in existing geographic information systems is relatively simple, many basic functions in surfaces do not have corresponding technical methods in images.

[0009] In geological work, especially in geological exploration, the "geological map" commonly used is mainly composed of faces. These faces mark and distinguish the differences in lithology on the surface. These differences are specifically manifested in that different faces have different attributes, and the attributes of each face can be controlled separately, such as modifying the color, visibility, and so on of a certain block. Among them, as for how to control the visibility of different partitions, the most commonly used MapGIS software in the domestic exploration industry implements it through file switches and layer switches. As for image files, MapGIS and ArcGIS can only control the display or hiding of an entire image file, but cannot control the display or hiding of a certain area within the image separately.

[0010] Based on the existing geographic information software, different blocks can be divided into different image files, and the visibility of blocks can be controlled by controlling the visibility of image files. However, this will result in a geological map consisting of multiple files, which is very inconvenient to use.

[0011] Existing raster image processing tools, such as Adobe Photoshop, can use layers to control the visibility of image areas. When rendering, the final effect of the image is the result of multiple layers superimposed. These layer information can be saved in PSD or TIFF file formats. For geographic information systems, without developing a new image format, the only existing image format that can be used to support saving layers is TIFF. Other image formats are either proprietary formats (for example, PSD and PSB are proprietary formats of Adobe), or the formats are too complex and not versatile enough (such as EXR files, which are mainly used in the film and television industry and can generally only be read by professional software).

[0012] Even without considering the file format, the layer method has potential performance issues. Because when rendering the final effect of a multi-layer file, the occlusion relationship of each layer must be calculated pixel by pixel for synthesis. The larger the image and the more layers, the longer the synthesis takes. Photoshop uses special methods to improve the performance of layer synthesis, but these methods will increase the complexity of the system, and it is still unknown whether they are applicable to the application environment of geographic information systems. Summary of the invention

[0013] The main purpose of the present invention is to provide a special data storage method and rendering method, which can realize the visibility control of image files in geographic information software systems, and preliminarily make it possible to replace surfaces with images, so as to provide richer data expression and computing power than surfaces.

[0014] The technical solution adopted by the present invention is:

[0015] A method for generating an interactive geological mineral map based on an image is provided, comprising the following steps:

[0016] Export geological maps and convert them into geological map images in image file format using RGBA channels;

[0017] Re-assign the A channel of each pixel in the geological map image. The A channel is assigned a block number. The block number is assigned according to the lithology partition. Different lithology partitions are assigned different numbers. Pixels belonging to the same partition use the same partition number. The number of numbers is the number of partitions.

[0018] Write the partition number to be displayed into the display list;

[0019] Image rendering is performed according to the assignment of the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, the pixel is rendered with the corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

[0020] Following the above technical solution, the partition number in the display list is modified according to the user's instruction to achieve independent display and hiding control of each partition.

[0021] Following the above technical solution, when rendering an image, different rendering methods are selected according to different rendering architectures, including CPU rendering and GPU rendering.

[0022] Following the above technical solution, when using CPU rendering, read the A channel of each pixel in the geological map image to obtain the partition number of the pixel. If the partition number exists in the display list, the RGB channel of the pixel is rendered to the frame buffer; if the partition number does not exist in the display list, the pixel is considered to be fully transparent, that is, the RGB channel of the pixel is not rendered to the frame buffer.

[0023] Following the above technical solution, when using GPU rendering, rendering is performed as follows:

[0024] 1) Load the geological map image into the video memory as a texture, recorded as TEX1;

[0025] 2) Create a palette image P in memory with a width equal to the maximum value in the display list + 1 and a height of 1, and the initial pixel value is 0;

[0026] 3) For each partition number X in the display list, set pixel (X, 0) of the palette image P to 1;

[0027] 4) Load the palette image P into the video memory, recorded as TEX2;

[0028] 5) In the fragment shader, use the target polygon UV to sample the RGBA value of TEX1, set the sampled A channel value to S, and the RGB channel value to C; use (S, 0) as the UV value to sample TEX2, and set the sampled value to E; if E is greater than 1, use C for color rendering; if E is less than 1, it is considered transparent.

[0029] Following the above technical solution, the method further comprises the steps of: defining a key-value data structure, in which the key is the block number of channel A in the geological map image, and the value is the attribute information of the block;

[0030] When querying block attributes, the following steps are specifically included:

[0031] In the image rendering window, the UV coordinate information of the mouse position relative to the geological map image is queried.

[0032] After obtaining the UV information, the pixel corresponding to the UV position in the geological map image is calculated according to the width and height of the geological map image;

[0033] Read the A channel of the pixel to obtain the block number of the pixel;

[0034] Use the block number to query the key-value data structure to obtain the attribute value of the block.

[0035] Returns the property value to the window for display to the user.

[0036] The present invention also provides an image-based interactive geological mineral map generation system, comprising:

[0037] An image format conversion module, used to export geological maps and convert them into geological map images in an image file format using RGBA channels;

[0038] A channel assignment module, used to reassign the A channel of each pixel in the geological map image, the A channel assignment is the block number, the block number is based on the lithology partition, different lithology partitions are assigned different numbers, pixels belonging to the same partition use the same partition number, the number of numbers is the number of partitions;

[0039] Display list module, used to write the partition number to be displayed into the display list;

[0040] The rendering module is used to render the image according to the assignment of the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, the pixel is rendered with the corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

[0041] In accordance with the above technical solution, the system further comprises a key-value data structure module, which is used to define a key-value data structure, in which the key is the block number of channel A in the geological map image, and the value is the attribute information of the block;

[0042] When querying block attributes, it is specifically used for:

[0043] In the image rendering window, the UV coordinate information of the mouse position relative to the geological map image is queried.

[0044] After obtaining the UV information, the pixel corresponding to the UV position in the geological map image is calculated according to the width and height of the geological map image;

[0045] Read the A channel of the pixel to obtain the block number of the pixel;

[0046] Use the block number to query the key-value data structure to obtain the attribute value of the block.

[0047] Returns the property value to the window for display to the user.

[0048] In accordance with the above technical solution, the display list module is further used to modify the partition number in the display list according to user instructions to control the visibility of each partition.

[0049] The present invention also provides a computer storage medium, which stores a computer program that can be executed by a processor, and the computer program executes the image-based interactive geological mineral map generation method described in the above technical solution.

[0050] The beneficial effects of the present invention are as follows: the interactive geological mineral map generation method of the present invention is based on the existing common RGBA channel image format, and the RGB channel of the image is consistent with the traditional usage and stores the color of the image. However, the A channel no longer stores opacity, but stores the partition number of the corresponding pixel. Pixels belonging to the same partition use the same partition number. By setting or modifying the partition number in the display list, the visibility control of different partitions can be achieved. After using this method, the image can be divided into multiple blocks whose visibility can be independently controlled. The operating performance of this method is only related to the image resolution and has nothing to do with the number of partitions. Using this method, the visibility control of image files can be realized in the geographic information software system, which preliminarily makes it possible to replace surfaces with images, so as to provide richer data expression and computing power than surfaces.

[0051] Furthermore, the method can be executed on both CPU and GPU. For example, when using GPU rendering, users can even control the visibility of each block in real time. Geological maps and other geographic information images produced based on this method will take into account the advantages of both vector surfaces and images.

[0052] Furthermore, in addition to the image file, by defining a key-value data structure, the key-value data structure can be saved in any form of file. In the key-value data structure, the key is the block number of the A channel in the image, and the value is the attribute information of the block. Through the key-value data structure, the user can query the attribute information of the pixel according to the image pixel pointed by the mouse. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0054] Figure 1 This is a flow chart of an interactive geological mineral map generation method based on an image according to Embodiment 1 of the present invention;

[0055] Figure 2 is a schematic diagram of image rendering in Embodiment 2 of the present invention;

[0056] Figure 3 is a schematic diagram of the RGB channel colors of the Juno geological map in Example 3 of the present invention;

[0057] Figure 4 is a schematic diagram of channel A of the processed geological map in Example 3 of the present invention;

[0058] Figure 5 This is an application effect diagram of Example 3 of the present invention in ZScape software;

[0059] Figure 6 is a schematic diagram of displaying block attribute values ​​in Example 4 of the present invention;

[0060] Figure 7 It is a schematic diagram showing the lithology information of each area when the method of Example 5 of the present invention is applied in the ZScape software. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0062] The present invention is based on existing common image formats, such as TIFF or PNG, and uses a special data storage method and rendering method to achieve control of the visibility status of blocks in the image. The method can be executed on both the CPU and the GPU. The operating performance of the method is only related to the image resolution and has nothing to do with the number of partitions. Using this method, the visibility control of image files can be achieved in the geographic information software system, making it possible to initially replace surfaces with images, so as to provide richer data expression and computing power than surfaces.

[0063] By using the method of the present invention, the transparency of an image during rendering no longer depends on the A channel of the pixel itself, but on the value of the palette corresponding to the A channel value.

[0064] The data storage method of the present invention can use any image file using RGBA channels as a carrier format. RGBA is a color space model, which consists of RGB color space and Alpha channel. RGBA represents red (Red), green (Green), blue (Blue) and Alpha channel (Alpha). Existing file formats that support RGBA channels include but are not limited to PNG, TIFF, etc. Existing file formats that do not support RGBA channels include but are not limited to JPEG.

[0065] The RGB channels of an image are consistent with traditional usage, storing the color of the image. However, the A channel no longer stores opacity, but stores the partition number of the corresponding pixel. Pixels belonging to the same partition use the same partition number.

[0066] Example 1

[0067] like Figure 1 As shown, the method for generating an interactive geological mineral map based on an image in an embodiment of the present invention comprises the following steps:

[0068] S1, exporting the geological map and converting it into a geological map image in an image file format using RGBA channels;

[0069] S2, re-assign the A channel of each pixel in the geological map image, the A channel assignment is the block number, the block number is based on the lithology partition, different lithology partitions are assigned different numbers, pixels belonging to the same partition use the same partition number, the number of numbers is the number of partitions;

[0070] S3, writing the partition number to be displayed into the display list;

[0071] S4. Perform image rendering according to the value assigned to the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, perform corresponding color rendering on the pixel; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

[0072] Example 2

[0073] An image file with RGBA channels is used as the carrier format, and this embodiment takes IMG as an example.

[0074] The method for generating an interactive geological mineral map based on an image in an embodiment of the present invention is as follows: Figure 2 As shown, the following steps are included:

[0075] 1. When rendering, input the image created by the above RGBA method (herein referred to as IMG) into the rendering program, and open the list of partition numbers to be displayed (herein referred to as ZL).

[0076] 2. Choose the rendering method according to the different rendering architectures:

[0077] a) When using CPU rendering, for each pixel of IMG, first read the A channel of the pixel to obtain the partition number of the pixel. If the partition number exists in ZL, the RGB channels of the pixel are rendered to the frame buffer; if the partition number does not exist in ZL, the pixel is considered to be fully transparent, that is, the RGB channels of the pixel are not rendered to the frame buffer.

[0078] b) When using GPU rendering, follow these steps:

[0079] Load IMG into video memory as a texture, here called TEX1.

[0080] Create a palette image P in memory with a width of the maximum value in ZL + 1, a height of 1, and an initial pixel value of 0.

[0081] For each partition number X in ZL, set pixel (X,0) of P to 1.

[0082] Load P into video memory, here called TEX2.

[0083] In the fragment shader or equivalent material expression, use the target polygon UV to sample the RGBA value of TEX1, set the sampled A channel value to S, and the RGB channel value to C; use (S, 0) as the UV value to sample TEX2, and set the sampled value to O. Figure 2 As shown, if O is greater than 1, C is used for color rendering; if O is less than 1, it is considered transparent.

[0084] 3. When the area visibility is controlled according to user instructions, that is, after ZL is modified, repeat step 2 to obtain the modified result, thus realizing independent visibility control of each area.

[0085] After using the method of the present invention, the image can be divided into multiple blocks whose visibility can be independently controlled. When using GPU rendering, the user can even control the visibility of each block in real time. Geographic information images such as geological maps produced based on this method will take into account the advantages of both vector surfaces and images.

[0086] Example 3

[0087] Taking the Juneau area geological map as an example, this method is used to independently control its geological blocks. In this example, OpenGL is used for rendering on the GPU.

[0088] The method for generating an interactive geological mineral map based on an image in this embodiment comprises the following steps:

[0089] 1. Export the geological map of the Juneau area in MapGIS format as a JPEG image. The RGB channel colors of the Juneau geological map (some confidential text information has been hidden) are as follows: Figure 3 shown.

[0090] 2. Use any image editing tool or method to save the above image in TIFF format, and reassign the A channel to the block number. According to its lithology, it is divided into 17 different blocks, and the minimum value of the A channel is 1 and the maximum value is 17. The A channel of the geological map after processing in step 2 (GAMMA adjustment is performed to highlight the value difference) is as follows Figure 4 shown.

[0091] 3. Use the following C++ code to create a palette image and load the palette and geological map image into the video memory through the OpenGL interface:

[0092]

[0093]

[0094] 4. Create a fragment shader according to the following GLSL code:

[0095]

[0096] 5. The steps of creating polygonal planes and binding fragment shader variables are consistent with the traditional GLSL usage and are omitted here.

[0097] Application effects in ZScape software, such as Figure 5 As shown, except for blocks numbered 4, 5, 6, 7, 8, and 9, other blocks are hidden, and the satellite image layer underneath is displayed.

[0098] Example 4

[0099] This embodiment, based on the above embodiments, further defines a key-value data structure in addition to the image file. The key-value data structure can be saved in any form of file. In the key-value data structure, the key is the block number of the A channel in the image, and the value is the attribute information of the block.

[0100] After the image file and key-value data structure are created using the storage method of the above embodiment, Figure 6 As shown, you can use the following steps to query block attributes:

[0101] In the image rendering window, query the UV coordinate information of the mouse position relative to the image.

[0102] After obtaining the UV information, the pixel corresponding to the UV position in the image is calculated according to the width and height of the image.

[0103] Read the A channel of the pixel to obtain the block number of the pixel.

[0104] Use the block number to query the key-value data structure to obtain the attribute value of the block.

[0105] Return the above property values ​​to the window to be displayed to the user.

[0106] After using this method, the user can use the mouse to point to a certain position in the image to query the attribute information of the position, thereby realizing the replacement of the traditional vector surface geological map with the image geological map.

[0107] Example 5

[0108] On the basis of Example 4, taking the geological map of Juneau area as an example, the method of Example 4 is used to store and query lithology information, which mainly includes the following steps:

[0109] 1. According to the method of Example 3, a geological map image in TIFF format with region number information in channel A is prepared, wherein the minimum value of channel A is 1 and the maximum value is 17.

[0110] 2. Use JSON language to create a comparison table of block numbers and lithology information, the contents of which are as follows:

[0111]

[0112]

[0113] 3. Write a Python function LookUp to query attribute information. The parameters are passed in by the upper caller:

[0114]

[0115] In ZScape software, when the mouse points to different lithology areas, the lithology information of the area will be displayed in the upper left corner of the window, such as Figure 7 As shown, (a) shows the N1 porphyry granite porphyry, (b) shows the second section of the E2 Nianbo group, and (c) shows the diorite.

[0116] Example 6

[0117] In order to implement the above method embodiment, the present invention also provides an image-based interactive geological mineral map generation system, comprising:

[0118] An image format conversion module, used to export geological maps and convert them into geological map images in an image file format using RGBA channels;

[0119] A channel assignment module, used to reassign the A channel of each pixel in the geological map image, the A channel assignment is the block number, the block number is based on the lithology partition, different lithology partitions are assigned different numbers, pixels belonging to the same partition use the same partition number, the number of numbers is the number of partitions;

[0120] Display list module, used to write the partition number to be displayed into the display list;

[0121] The rendering module is used to render the image according to the assignment of the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, the pixel is rendered with the corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

[0122] Furthermore, the system also includes a key-value data structure module for defining a key-value data structure, in which the key is the block number of channel A in the geological map image, and the value is the attribute information of the block;

[0123] When querying block attributes, it is specifically used for:

[0124] In the image rendering window, the UV coordinate information of the mouse position relative to the geological map image is queried.

[0125] After obtaining the UV information, the pixel corresponding to the UV position in the geological map image is calculated according to the width and height of the geological map image;

[0126] Read the A channel of the pixel to obtain the block number of the pixel;

[0127] Use the block number to query the key-value data structure to obtain the attribute value of the block.

[0128] Returns the property value to the window for display to the user.

[0129] Furthermore, in order to realize the real-time display and hiding control of the user, the display list module is also used to modify the partition number in the display list according to the user instruction to perform the display and hiding control of each partition.

[0130] The further functions of each module correspond to the steps of the above method embodiment and will not be repeated here.

[0131] Example 7

[0132] The present application also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. When the computer-readable storage medium of this embodiment is executed by a processor, the method of generating an interactive geological mineral map based on an image of the method embodiment is realized.

[0133] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A method for generating an interactive geological mineral map based on an image, characterized in that: The following steps are involved: Export geological maps and convert them into geological map images in image file format using RGBA channels; Re-assign the A channel of each pixel in the geological map image. The A channel is assigned a block number. The block number is assigned according to the lithology partition. Different lithology partitions are assigned different numbers. Pixels belonging to the same partition use the same partition number. The number of numbers is the number of partitions. Write the partition number to be displayed into the display list; Image rendering is performed according to the assignment of the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, the pixel is rendered with the corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

2. The method for generating an interactive geological mineral map based on an image according to claim 1, characterized in that: Modify the partition number in the display list according to the user's instructions to achieve independent display and hiding control of each partition.

3. The method for generating an interactive geological mineral map based on an image according to claim 1, characterized in that: When rendering an image, different rendering methods are selected according to different rendering architectures, including CPU rendering and GPU rendering.

4. The method for generating an interactive geological mineral map based on an image according to claim 3, characterized in that: When using CPU rendering, read the A channel of each pixel in the geological map image, obtain the partition number of the pixel, and if the partition number exists in the display list, render the RGB channels of the pixel to the frame buffer; If the partition number does not exist in the display list, the pixel is considered to be fully transparent, that is, the RGB channels of the pixel are not rendered into the frame buffer.

5. The method for generating an interactive geological mineral map based on an image according to claim 3, characterized in that: When using GPU rendering, rendering is performed as follows: 1) Load the geological map image into the video memory as a texture, recorded as TEX1; 2) Create a palette image P in memory with a width of the maximum value in the display list + 1 and a height of 1. The initial pixel value is 0; 3) For each partition number X in the display list, set pixel (X,0) of palette image P to 1; 4) Load the palette image P into the video memory, recorded as TEX2; 5) In the fragment shader, use the target polygon UV to sample the RGBA value of TEX1, and set the sampled A channel value to S and the RGB channel value to C; Use (S, 0) as the UV value to sample TEX2, and set the sampling value to E; if E is greater than 1, use C for color rendering; if E is less than 1, it is considered transparent.

6. The method for generating an interactive geological mineral map based on an image according to claim 1, characterized in that: The method further comprises the steps of: defining a key-value data structure, in which the key is the block number of channel A in the geological map image, and the value is the attribute information of the block; When querying block attributes, the following steps are specifically included: In the image rendering window, the UV coordinate information of the mouse position relative to the geological map image is queried; after obtaining the UV information, the pixel corresponding to the UV position in the geological map image is calculated according to the width and height of the geological map image; Read the A channel of the pixel to obtain the block number of the pixel; Use the block number to query the key-value data structure to obtain the attribute value of the block; Returns the property value to the window for display to the user.

7. An image-based interactive geological mineral map generation system, characterized in that: include: An image format conversion module, used to export geological maps and convert them into geological map images in an image file format using RGBA channels; A channel assignment module, used to reassign the A channel of each pixel in the geological map image, the A channel assignment is the block number, the block number is based on the lithology partition, different lithology partitions are assigned different numbers, pixels belonging to the same partition use the same partition number, the number of numbers is the number of partitions; Display list module, used to write the partition number to be displayed into the display list; The rendering module is used to render the image according to the assignment of the A channel of each pixel in the geological map image. If the partition number of the A channel of the pixel in the geological map image exists in the display list, the pixel is rendered with the corresponding color; otherwise, the pixel is considered to be fully transparent and no corresponding color rendering is performed.

8. The image-based interactive geological mineral map generation system according to claim 7, characterized in that: The system also includes a key-value data structure module for defining a key-value data structure, in which the key is the block number of channel A in the geological map image, and the value is the attribute information of the block; When querying block attributes, it is specifically used for: In the image rendering window, query the UV coordinate information of the mouse position relative to the geological map image; After obtaining the UV information, the pixel corresponding to the UV position in the geological map image is calculated according to the width and height of the geological map image; Read the A channel of the pixel to obtain the block number of the pixel; Use the block number to query the key-value data structure to obtain the attribute value of the block; Returns the property value to the window for display to the user.

9. The image-based interactive geological mineral map generation system according to claim 7, characterized in that: The display list module is also used to modify the partition number in the display list according to user instructions to control the visibility of each partition.

10. A computer storage medium, characterized in that: A computer program executable by a processor is stored therein, and the computer program executes the image-based interactive geological mineral map generation method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Image rendering control method, terminal equipment and storage medium

    CN111489429A

  • Geographic information data fusion visualization method based on smooth rendering mode

    CN115641248A