CN115423889A - Image processing method and device, electronic equipment and storage medium - Google Patents

Image processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115423889A
CN115423889A CN202211049108.0A CN202211049108A CN115423889A CN 115423889 A CN115423889 A CN 115423889A CN 202211049108 A CN202211049108 A CN 202211049108A CN 115423889 A CN115423889 A CN 115423889A
Authority
CN
China
Prior art keywords
displayed
layer
image
tile data
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211049108.0A
Other languages
Chinese (zh)
Inventor
王珂
谢雨汐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Three Body Smart Network Technology Suzhou Co ltd
Original Assignee
Three Body Smart Network Technology Suzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Three Body Smart Network Technology Suzhou Co ltd filed Critical Three Body Smart Network Technology Suzhou Co ltd
Priority to CN202211049108.0A priority Critical patent/CN115423889A/en
Publication of CN115423889A publication Critical patent/CN115423889A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an image processing method, an image processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring at least one piece of element information to be used associated with an image to be displayed, and generating a layer to be displayed according to each piece of element information to be used; determining a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed; based on each slicing scheme to be used, slicing the corresponding layer to be displayed to obtain at least one group of tile data to be used corresponding to each layer to be displayed; when the image display instruction is received, target tile data is determined from at least one group of tile data to be used based on display information in the image display instruction, and a target display image is generated and displayed based on the target tile data. The method and the device have the advantages that the processing efficiency of the image layer slicing is improved, the storage space of the image layer is reduced, and meanwhile, the integrity of the image layer processing is ensured, so that the image display is complete.

Description

Image processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of geographic information system technologies, and in particular, to an image processing method and apparatus, an electronic device, and a storage medium.
Background
With the popularization of Geographic Information Systems (GIS), it is important to process training thematic image layers accurately, reliably, quickly, and efficiently by lightening the existing data.
At present, light processing and issuing on GIS thematic map layer data are mainly realized by directly processing and issuing thematic map layers through a shared page, processing and issuing thematic map layers based on a server, or slicing and then issuing thematic map layers, but the processing mode has the problems of low processing efficiency, incomplete image slice display and large image storage space.
In order to solve the above problems, an improvement on a processing method of the GIS topic map data is needed.
Disclosure of Invention
The invention provides an image processing method, an image processing device, electronic equipment and a storage medium, and aims to solve the problems that the slicing processing efficiency of image layer data is low, the occupied space is large, and an image is incomplete when an image layer is lost.
In a first aspect, an embodiment of the present invention provides an image processing method, including:
acquiring at least one piece of element information to be used associated with an image to be displayed, and generating a layer to be displayed according to each piece of element information to be used; wherein the information of the elements to be used comprises at least one of position information of an area to be displayed of the image to be displayed and image display attribute information;
determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling corresponding to the to-be-displayed layer;
based on each slicing scheme to be used, slicing the corresponding layers to be displayed to obtain at least one group of tile data to be used corresponding to each layer to be displayed;
when an image display instruction is received, target tile data is determined from the at least one group of tile data to be used based on display information in the image display instruction, a target display image is generated based on the target tile data, and the target tile data is displayed
In a second aspect, an embodiment of the present invention further provides an image processing apparatus, including:
the image layer to be displayed generating module is used for acquiring at least one element information to be used associated with the image to be displayed and generating an image layer to be displayed according to each element information to be used; wherein the information of the elements to be used comprises at least one of position information of an area to be displayed of the image to be displayed and image display attribute information;
the slicing scheme determining module is used for determining a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed;
the tile data determining module is used for carrying out slicing processing on the corresponding layers to be displayed based on each slicing scheme to be used so as to obtain at least one group of tile data to be used corresponding to each layer to be displayed;
and the target display image determining module is used for determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction when the image display instruction is received, so as to generate a target display image based on the target tile data and display the target display image.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the image processing method according to any of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to enable a processor to implement the image processing method according to any embodiment of the present invention when executed.
According to the technical scheme of the embodiment, at least one piece of element information to be used related to the image to be displayed is obtained, the layer to be displayed is generated according to the element information to be used, and the element information to be used is processed according to layer generation software to obtain the layer to be displayed corresponding to the image to be displayed. Determining a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed, determining a layer to be displayed of a corresponding level according to the to-be-used scaling, and determining a corresponding to-be-used slicing scheme, so as to slice the layer to be displayed of the corresponding level based on each to-be-used slicing scheme. And based on each slicing scheme to be used, slicing the corresponding layer to be displayed to obtain at least one group of tile data to be used corresponding to each layer to be displayed. According to different scaling to be used, the slicing scheme to be used slices the layer to be displayed to obtain different tile data to be used, and the tile data to be used corresponding to the layer to be displayed in the same level is used as a group of tile data to be used. When an image display instruction is received, determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction, generating a target display image based on the target tile data, displaying, determining the target tile data from the at least one group of tile data to be used according to information such as display hierarchy, display area and display proportion in the display information, determining a target display layer corresponding to the target tile data, importing the target tile data into the target display layer, obtaining a target display image, and displaying. The problems that the slice processing efficiency of the image layer data is low, the occupied space is large, and the image is incomplete when the image layer is lost are solved, the image layer slice processing efficiency is improved, the image layer storage space is reduced, and meanwhile the integrity of image layer processing is guaranteed, so that the image can be displayed completely.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of layer processing according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a layer processing according to a second embodiment of the present invention;
FIG. 4 is a diagram of a target display control interface according to a second embodiment of the present invention;
FIG. 5 is a diagram of a target display image according to a second embodiment of the present invention;
FIG. 6 is a schematic diagram of an image processing apparatus according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device implementing the image processing method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Before elaborating the technical solution, an application scenario of the technical solution is introduced to more clearly understand the technical solution. The geographic information system is also called as a geoscience information system, is a comprehensive subject and is a specific and very important spatial information system. It is based on geography and cartography and remote sensing and computer science support, collect, store, manage, calculate, analyze, display and describe the relevant geographic distribution data in the whole or part of the earth surface (including the atmosphere) space. With the popularization of the GIS field, it is important to accurately, reliably, quickly and efficiently process the training thematic map layer on the network by lightening the existing data.
Example one
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, where the embodiment is applicable to a situation where layers in a geographic information system are processed and an image to be displayed is imported into the processed layers to obtain a target display image, the method may be executed by an image processing apparatus, the image processing apparatus may be implemented in a form of hardware and/or software, and the image processing apparatus may be configured in a computing device that can execute the image processing method.
As shown in fig. 1, the method includes:
s110, acquiring at least one piece of element information to be used associated with the image to be displayed, and generating a layer to be displayed according to each piece of element information to be used.
The image to be displayed can be understood as an image corresponding to the corresponding geographic information when geographic information query is performed based on the GIS software. The element information to be used may be understood as at least one of information associated with the image to be displayed, position information of an area to be displayed where the element information to be used is included in the image to be displayed, and image display attribute information, for example, a user may determine the area to be displayed by using the element information to be used, such as geographical position information of the area to be displayed, and may also define display attributes of the image to be displayed, for example, a coordinate system of the image to be displayed may be a longitude and latitude coordinate system or a mars coordinate system, or another coordinate system. The layer to be displayed can be understood as a transparent data layer, the layer to be displayed can be associated with each element information to be used, and the layer to be displayed is set according to each element information to be used so as to determine the layer attribute of the layer to be displayed.
Specifically, when the user queries the geographic image information based on the GIS software, the user may input at least one piece of information of the to-be-used element associated with the to-be-displayed image in the GIS software, for example, in an editing control of a display interface based on the GIS software, input an image storage location, image information, layer attributes, and a coordinate system used by the to-be-displayed image corresponding to the to-be-displayed image. And calling a transparent layer in the GIS software, and associating each element information to be used with the transparent layer to obtain a layer to be displayed corresponding to the image to be displayed.
Optionally, the obtaining at least one to-be-used element information associated with the image to be displayed, and generating the layer to be displayed according to each to-be-used element information includes: according to the image identification of the image to be displayed, at least one piece of element information to be used associated with the image identification is called from an element information repository; and processing each element information to be used based on layer generation software to obtain a layer to be displayed corresponding to the image to be displayed.
The element information repository may be understood as a database for storing element information corresponding to an image to be displayed. The image identifier may be understood as identifying information corresponding to the image to be displayed, so as to determine the element information to be used corresponding to the image to be displayed according to the image identifier. The layer generation software may be understood as software for generating a layer to be displayed, for example, a GIS Portal platform, and may be configured to enable a user to obtain shared layer data.
Specifically, according to an image identifier of an image to be displayed, corresponding element information to be used is called from an element information repository, and each element information to be used is input into layer generation software, so that each element information to be used is processed based on the layer generation software, and a layer to be displayed is obtained.
And S120, determining a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed.
In practical application, in order to show the image to be displayed to the user more clearly, the image to be displayed may be zoomed, and the corresponding image to be displayed may be retrieved according to the zoom ratio input by the user. It can be understood that the generation of the image to be displayed is related to the layer to be displayed, that is, by adjusting the scaling of the layer to be displayed, the image to be displayed is processed based on the adjusted layer to be displayed, and the image to be displayed with the corresponding scaling can be obtained.
The scaling to be used may be understood as a scale for adjusting the layer to be displayed. The to-be-used slicing scheme may be understood as a slicing scheme corresponding to a to-be-used scaling, and illustratively, the to-be-displayed image layer may be sliced into 4 parts, 16 parts, 64 parts, or the like based on different to-be-used slicing schemes.
In the technical scheme, determining a to-be-used slicing scheme corresponding to a layer to be displayed according to a to-be-used scaling corresponding to the layer to be displayed includes: inputting a to-be-used scaling corresponding to a to-be-displayed layer in a scaling editing control in a target control interface; and determining a slicing scheme to be used corresponding to the image layer to be displayed according to the scaling to be used.
The target control interface can be understood as a control interface of GIS software, the control interface comprises at least one scaling control, and a user can input the scaling to be used in each scaling editing control according to actual requirements.
Specifically, a user may input a corresponding to-be-used scaling through the target control interface to perform scaling processing on the to-be-displayed layer based on each to-be-used scaling, so as to obtain at least one hierarchical to-be-displayed layer. Further, a to-be-used slicing scheme corresponding to each to-be-used scaling is determined, so that the to-be-displayed image layer of the corresponding level is sliced based on each to-be-used slicing scheme.
Illustratively, the number of the to-be-used scaling ratios is 3, and scaling processing is performed on the to-be-displayed layers based on each to-be-used scaling ratio, so that layers to be displayed corresponding to each to-be-used scaling ratio, that is, layers to be displayed of 3 levels can be obtained. According to the scaling to be used corresponding to each level, the slicing scheme to be used corresponding to the layer to be displayed of each level can be determined. Wherein the slicing scheme to be used matches the scaling to be used of the respective level.
And S130, slicing the corresponding layer to be displayed based on each slicing scheme to be used to obtain at least one group of tile data to be used corresponding to each layer to be displayed.
The tile data to be used may be understood as rectangular data of a block into which a layer to be displayed is cut.
Specifically, the to-be-used slicing schemes corresponding to layers to be displayed at different levels are different, and the layers to be displayed at the corresponding levels are called and sliced to obtain the to-be-used tile data corresponding to each layer to be displayed. In other words, the tile data corresponding to the same layer to be displayed is used as a set of tile data to be used.
In practical application, based on each slicing scheme to be used, slicing the corresponding layer to be displayed to obtain at least one group of tile data to be used corresponding to each layer to be displayed, including: determining a current layer to be displayed corresponding to the current slicing scheme to be used and determining a scale to be used between the current layer to be displayed and an original layer to be displayed of an image to be displayed aiming at each slicing scheme to be used; and adjusting the slicing parameters of the layer slicing management tool based on the scale to be used, so as to perform slicing processing on the current layer to be displayed based on the adjusted layer slicing management tool, and obtain corresponding tile data to be used.
Each to-be-used slicing scheme can be used as a current to-be-used slicing scheme, and the current to-be-used slicing scheme can be understood as a scheme for slicing the layer to be displayed at the current moment. The scale to be used may be understood as a scale determined according to a scaling to be used corresponding to the current layer to be displayed, and is used to cut the corresponding layer to be displayed. The original layer to be displayed may be understood as a layer to be displayed that is not sliced. The layer slicing management tool may be understood as a tool for slicing a layer to be displayed, for example, a slice cache plug-in installed in GIS software. The slicing parameter may be understood as a parameter for slicing the layer to be displayed, for example, the number of slices to be performed on the layer to be displayed.
Specifically, for example, one of the to-be-used slicing schemes is taken as the current to-be-used slicing scheme, and the current to-be-used slicing scheme corresponding to the current to-be-displayed layer is called according to the to-be-used scaling corresponding to the current to-be-displayed layer. Based on the current to-be-used slicing scheme, a to-be-used scale between the current to-be-displayed layer and the original to-be-displayed layer of the to-be-displayed image can be determined, so that the slicing parameter corresponding to the current to-be-displayed layer is determined based on the to-be-used scale. By adjusting the slice parameters in the layer slice management tool, the current layer to be displayed can be sliced to obtain the tile data to be used corresponding to the current layer to be displayed.
And S140, when the image display instruction is received, determining target tile data from at least one group of tile data to be used based on the display information in the image display instruction, generating a target display image based on the target tile data, and displaying the target display image.
The image display instruction may be understood as an instruction for displaying an image to be displayed, such as a jump link. The display information may be understood as image display information corresponding to an image to be displayed, such as an image display area, a display scale, a display hierarchy, and the like. The target tile data may be understood as tile data corresponding to an image to be displayed corresponding to the image display instruction. The target display image may be understood as an image to be displayed corresponding to the image display instruction.
Specifically, when a user can query a geographic image based on a GIS Portal in the server, the user can input a map name and the like of a corresponding geographic area, so as to retrieve corresponding image information from the local resource storage module according to information such as the map name and the like, and perform corresponding processing on the image information at the local resource storage module to obtain at least one to-be-used tile data, so as to determine target tile data from at least one group of to-be-used tile data, and directly send the obtained target tile data to the server for viewing.
Optionally, determining the target tile data from at least one set of tile data to be used based on the display information in the image display instruction, includes: analyzing the image display instruction to obtain display information corresponding to the layer to be displayed; determining tile data to be used corresponding to the display information from at least one set of tile data to be used; and determining the tile data to be used as target tile data, generating a target display image based on the target tile data, and displaying.
Illustratively, the display information in the image display instruction is an image to be displayed corresponding to the 2 nd level, the scaling is 80%, and the display area is an a area in the geographic image. According to the display information, a layer to be displayed corresponding to the image to be displayed, that is, a layer to be displayed at the 2 nd level with a scaling of 80% may be called. And slicing the layer according to the to-be-used slicing scheme corresponding to the to-be-displayed layer to obtain corresponding to-be-used tile data serving as target tile data, and generating and displaying a target display image based on the target tile data.
Optionally, determining the tile data to be used as the target tile data, so as to generate and display a target display image based on the target tile data, including: determining a layer to be displayed corresponding to the target tile data as a target display layer; and importing the target tile data into a target display layer, generating a target display image and displaying the target display image.
Wherein, the target display layer can be understood as a layer to be displayed corresponding to the target tile data.
Specifically, a target display layer can be determined according to the target tile data, and the target tile data is imported into the target display layer based on the tile data import software, so that a target display image can be generated. And after the target display image is obtained, sending the target display image to a server so as to display the target display image based on a display interface of the server.
The method has the advantages that the image layer to be displayed is processed based on the local resource storage module, and after the target tile data and the target display layer corresponding to the target tile data are determined, the target tile data are imported into the target display layer to obtain the target display image. That is to say, the processing of the target display image is processed in the local resource storage module, and the processed target display image is directly sent to the server for display, so that the problem that the image display is incomplete when the image layer and the image are processed based on the server can be avoided.
According to the technical scheme, at least one piece of element information to be used associated with the image to be displayed is obtained, the layer to be displayed is generated according to the element information to be used, and the element information to be used is processed according to the layer generation software, so that the layer to be displayed corresponding to the image to be displayed is obtained. Determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling corresponding to the to-be-displayed layer, determining a corresponding level of to-be-displayed layer according to the to-be-used scaling, and determining a corresponding to-be-used slicing scheme, so as to slice the corresponding level of to-be-displayed layer based on each to-be-used slicing scheme. And carrying out slicing processing on the corresponding layers to be displayed based on each slicing scheme to be used to obtain at least one group of tile data to be used corresponding to each layer to be displayed. According to different scales to be used, the tile data to be used obtained by slicing the layer to be displayed by the slicing scheme to be used are different, and the tile data to be used corresponding to the layer to be displayed at the same level is used as a group of tile data to be used. When an image display instruction is received, determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction, generating a target display image based on the target tile data, displaying, determining the target tile data from the at least one group of tile data to be used according to information such as display hierarchy, display area and display proportion in the display information, determining a target display layer corresponding to the target tile data, importing the target tile data into the target display layer, obtaining a target display image, and displaying. The problems that the slice processing efficiency of the image layer data is low, the occupied space is large, and the image is incomplete when the image layer is lost are solved, the image layer slice processing efficiency is improved, the image layer storage space is reduced, and meanwhile the integrity of image layer processing is guaranteed, so that the image can be displayed completely.
Example two
In a specific example, as shown in fig. 2, in order to ensure data accuracy and improve processing efficiency, a user may save the arranged data thematic layers in the GIS software as data types that can be distributed in the GIS Portal. In order to avoid processing failure caused by too large data volume and too long processing time, the alternative storage is selected as an off-line service definition instead of direct processing and releasing. The concrete mode is as follows:
1.1 selecting the "share" function in the toolbar
1.2 choosing "Web layer" in the share "
1.3, selecting another storage as an offline service definition from the "release Web layer", "overlay Web layer" and "another storage as offline service definition" under the Web layer, and storing the thematic layer data as sd files (that is, storing the thematic layer data in the local resource storage module). When sd is stored, the coordinate system set in the current thematic layer should be selected in the "configuration".
That is to say, a plurality of thematic image layers are pre-stored in the local resource storage module, for example, image layers with different image layer attributes, different display areas, and different image categories can be used as one thematic image layer, when a user needs to call a corresponding image layer, and input image layer information (i.e., element information to be used) corresponding to the required image layer, and generate an image layer to be displayed according to each element information to be used.
As shown in FIG. 3, in order to use the service in Web GIS, the service layer is generated through GIS Portal for the storage and reading of tile data of the following thematic layer. (in this step, only data is uploaded in the portal and services are created but not sliced yet, preview operation cannot be performed in "online mapping" in the portal, and subsequent operations such as slice uploading are required to obtain complete tile data in the service center.) specific steps are as follows:
2.1 selecting "personal hub" in GIS Portal "
2.2 click on personal center and select "My Contents" in the corresponding interface "
2.3 after setting up the folder for storing the layer service during publishing, click the 'add' above "
And 2.4, selecting local resources in the adding process, and distributing the sd file (namely, the layer to be displayed) which is locally stored in the step 1.3 to a GIS Portal to generate thematic layer service. (the step is only to upload data and create services in the portal but not to slice, and can not perform preview operation in the online drawing in the portal, and the whole tile data can be acquired in the service center only by performing operations such as subsequent slice uploading, etc.)
On the basis of the scheme, a user inputs image information (namely element information to be used) corresponding to an image to be displayed through a server, for example, image identification, a storage path and the like of the image to be displayed are included, so that the corresponding image to be displayed is determined from a local resource storage module, and an image layer to be displayed is generated according to the element information to be used associated with the image to be displayed.
Further, the user may select a coordinate system required to be used with the image to be displayed, and input a to-be-used scaling corresponding to the layer to be displayed based on a scaling edit control in the target control interface, so as to determine a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling, see fig. 4. For example, taking the current layer to be displayed as an example, the layer to be displayed is sliced according to a management slice caching tool (i.e., a layer slicing management tool) in the GIS software, specifically, a to-be-used scale between the current layer to be displayed and the original layer to be displayed may be determined, a slicing parameter of the layer management tool is determined based on the to-be-used scale, and the layer to be displayed is sliced based on the adjusted layer slicing management tool, so as to obtain at least one set of tile data to be used.
Illustratively, the scale ratios to be used are shown in the following table:
scale grade Proportional scale Space required for slicing Scale grade Proportional scale Space required for slicing
A1 1:B1 C1 A11 1:B11 C11
A2 1:B2 C2 A12 1:B12 C12
A3 1:B3 C3 A13 1:B13 C13
A4 1:B4 C4 A14 1:B14 C14
A5 1:B5 C5 A15 1:B15 C15
A6 1:B6 C6 A16 1:B16 C16
A7 1:B7 C7 A17 1:B17 C17
A8 1:B8 C8 A18 1:B18 C18
A9 1:B9 C9 A19 1:B19 C19
A10 1:B10 C10 A20 1:B20 C20
Wherein, the scale level is A, B is the actual distance, and C is the slice size. Among them, B2=2B1, B3=2b2=4b1 \8230, 8230, C2=4C1, C3=4c2= 1692 \8230, 8230and so on.
Further, different to-be-used scaling ratios correspond to different to-be-used slicing schemes, a current to-be-displayed layer corresponding to the to-be-processed layer is determined according to the to-be-used scaling ratio, and the current to-be-used slicing scheme corresponding to the current to-be-displayed layer is called.
For example, if the scale level of the requirement is a10 to a16, a10 and a16 are contents that the thematic map layer data tile must contain; the slice levels a11, a12, a13, a14, and a15 are non-necessarily inclusive. Assuming that the slice definition is 1,3,5 \8230;, the desired slice levels are a10, a12, a14 and a16, and the desired slice space is a10+ a12+ a14+ a16= a10+ 169810 +256a10+4096a10= 4369810. The slice levels required by the traditional thematic image layer processing training method are A10, A11, A12, A13, A14, A15 and A16, and the required slice space is A10+ A11+ A12+ A13+ A14+ A15+ A16= A10+4A10+ 16910 +64A10+256A10 1024A10+ 6A10=5461A10.
Therefore, the thematic layer can be easily compressed to 80% of the original size by performing layer processing based on the technical scheme. That is to say, this instrument can carry out the optional scale of choosing and carry out the section, needn't carry out the section according to continuous scale under the section scheme like traditional release mode, and stability is higher moreover, has practiced thrift the section time greatly when the layer lightweight.
When an image display instruction is detected, such as an image jump link corresponding to an image to be displayed, the image display instruction is analyzed to obtain display information, target tile data is determined from at least one type of tile data to be used based on the display information, a target display layer corresponding to the target tile data is determined, the target tile data is imported into the target display layer, and the target display layer is obtained and displayed. When the target tile data is imported into the target display layer, the data can be imported through an import tool in the GIS software, for example, the import tool can be a Bitvise SSH Client. As shown in fig. 5, according to the present embodiment, when the scale = 1.
According to the technical scheme of the embodiment, at least one piece of element information to be used related to the image to be displayed is obtained, the layer to be displayed is generated according to the element information to be used, and the element information to be used is processed according to layer generation software to obtain the layer to be displayed corresponding to the image to be displayed. Determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling corresponding to the to-be-displayed layer, determining a corresponding level of to-be-displayed layer according to the to-be-used scaling, and determining a corresponding to-be-used slicing scheme, so as to slice the corresponding level of to-be-displayed layer based on each to-be-used slicing scheme. And carrying out slicing processing on the corresponding layers to be displayed based on each slicing scheme to be used to obtain at least one group of tile data to be used corresponding to each layer to be displayed. According to different scales to be used, the tile data to be used obtained by slicing the layer to be displayed by the slicing scheme to be used are different, and the tile data to be used corresponding to the layer to be displayed at the same level is used as a group of tile data to be used. When an image display instruction is received, determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction, generating a target display image based on the target tile data, displaying, determining the target tile data from the at least one group of tile data to be used according to information such as display hierarchy, display area and display scale in the display information, determining a target display layer corresponding to the target tile data, importing the target tile data into the target display layer, obtaining a target display image, and displaying. The problems that the slice processing efficiency of the image layer data is low, the occupied space is large, and the image is incomplete when the image layer is lost are solved, the image layer slice processing efficiency is improved, the image layer storage space is reduced, and meanwhile the integrity of image layer processing is guaranteed, so that the image can be displayed completely.
EXAMPLE III
Fig. 6 is a schematic structural diagram of an image processing apparatus according to a third embodiment of the present invention. As shown in fig. 6, the apparatus includes: a layer to be displayed generating module 210, a slicing scheme determining module 220, a tile data determining module 230, and a target display image determining module 240.
The to-be-displayed layer generating module 210 is configured to acquire at least one to-be-used element information associated with an image to be displayed, and generate a to-be-displayed layer according to each to-be-used element information; the element information to be used comprises at least one of position information of an area to be displayed of the image to be displayed and image display attribute information;
the slicing scheme determining module 220 is configured to determine, according to the scaling to be used corresponding to the layer to be displayed, a slicing scheme to be used corresponding to the layer to be displayed;
the tile data determining module 230 is configured to perform slicing processing on the corresponding to-be-displayed layer based on each to-be-used slicing scheme, so as to obtain at least one set of to-be-used tile data corresponding to each to-be-displayed layer;
and a target display image determining module 240, configured to, when receiving the image display instruction, determine target tile data from at least one set of tile data to be used based on display information in the image display instruction, to generate a target display image based on the target tile data, and to display the target display image.
According to the technical scheme of the embodiment, at least one piece of element information to be used related to the image to be displayed is obtained, the layer to be displayed is generated according to the element information to be used, and the element information to be used is processed according to layer generation software to obtain the layer to be displayed corresponding to the image to be displayed. Determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling corresponding to the to-be-displayed layer, determining a corresponding level of to-be-displayed layer according to the to-be-used scaling, and determining a corresponding to-be-used slicing scheme, so as to slice the corresponding level of to-be-displayed layer based on each to-be-used slicing scheme. And carrying out slicing processing on the corresponding layers to be displayed based on each slicing scheme to be used to obtain at least one group of tile data to be used corresponding to each layer to be displayed. According to different scaling to be used, the slicing scheme to be used slices the layer to be displayed to obtain different tile data to be used, and the tile data to be used corresponding to the layer to be displayed in the same level is used as a group of tile data to be used. When an image display instruction is received, determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction, generating a target display image based on the target tile data, displaying, determining the target tile data from the at least one group of tile data to be used according to information such as display hierarchy, display area and display proportion in the display information, determining a target display layer corresponding to the target tile data, importing the target tile data into the target display layer, obtaining a target display image, and displaying. The problems that the slice processing efficiency of the image layer data is low, the occupied space is large, and the image is incomplete when the image layer is lost are solved, the image layer slice processing efficiency is improved, the image layer storage space is reduced, and meanwhile the integrity of image layer processing is guaranteed, so that the image can be displayed completely.
Optionally, the layer to be displayed generating module includes: the element information determining unit is used for calling at least one piece of element information to be used associated with the image identifier from the element information storage library according to the image identifier of the image to be displayed;
and the layer to be displayed determining unit is used for processing each element information to be used based on the layer generating software to obtain the layer to be displayed corresponding to the image to be displayed.
Optionally, the slicing scheme determining module includes: the scaling determining unit is used for inputting the scaling to be used corresponding to the layer to be displayed in the scaling editing control in the target control interface;
and the slicing scheme determining unit is used for determining the to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling.
Optionally, the tile data determining module includes: the scale determining unit is used for determining a current layer to be displayed corresponding to the current slicing scheme to be used and determining a scale to be used between the current layer to be displayed and an original layer to be displayed of the image to be displayed aiming at each slicing scheme to be used;
and the tile data determining unit is used for adjusting the slicing parameters of the layer slicing management tool based on the to-be-used scale, so as to slice the current layer to be displayed based on the adjusted layer slicing management tool, and obtain corresponding tile data to be used.
Optionally, the target display image determining module includes: the display information determining unit is used for analyzing the image display instruction to obtain display information corresponding to the layer to be displayed; the display information comprises at least one of a display level, a display scale and a display area corresponding to the layer to be displayed;
a tile data determining unit configured to determine tile data to be used corresponding to the display information from among the at least one set of tile data to be used;
and a target display image determining unit for determining the tile data to be used as target tile data, generating a target display image based on the target tile data, and displaying.
Optionally, the target display image determining unit includes: the target display layer determining subunit is used for determining a layer to be displayed corresponding to the target tile data as a target display layer;
and the target display image determining subunit is used for importing the target tile data into the target display layer, generating a target display image and displaying the target display image.
The image processing device provided by the embodiment of the invention can execute the image processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 7 shows a schematic structural diagram of the electronic device 10 according to the embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as an image processing method.
In some embodiments, the image processing method may be implemented as a computer program that is tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the image processing method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the image processing method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An image processing method, comprising:
acquiring at least one piece of element information to be used associated with an image to be displayed, and generating a layer to be displayed according to each piece of element information to be used; the element information to be used comprises at least one of position information of an area to be displayed of the image to be displayed and image display attribute information;
determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling corresponding to the to-be-displayed layer;
based on each slicing scheme to be used, slicing the corresponding layer to be displayed to obtain at least one group of tile data to be used corresponding to each layer to be displayed;
when an image display instruction is received, target tile data is determined from the at least one group of tile data to be used based on display information in the image display instruction, and a target display image is generated and displayed based on the target tile data.
2. The method according to claim 1, wherein the obtaining at least one piece of information of elements to be used associated with an image to be displayed, and generating a layer to be displayed according to each piece of information of elements to be used comprises:
calling at least one piece of element information to be used associated with the image identifier from an element information repository according to the image identifier of the image to be displayed;
and processing each element information to be used based on layer generation software to obtain a layer to be displayed corresponding to the image to be displayed.
3. The method according to claim 1, wherein the determining the to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed comprises:
inputting a to-be-used scaling corresponding to the layer to be displayed in a scaling editing control in a target control interface;
and determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to the to-be-used scaling.
4. The method according to claim 1, wherein the slicing processing is performed on the corresponding to-be-displayed layer based on each to-be-used slicing scheme to obtain at least one group of to-be-used tile data corresponding to each to-be-displayed layer, including:
determining a current layer to be displayed corresponding to each slicing scheme to be used, and determining a scale to be used between the current layer to be displayed and an original layer to be displayed of an image to be displayed;
and adjusting the slice parameters of the layer slice management tool based on the scale to be used, so as to perform slice processing on the current layer to be displayed based on the adjusted layer slice management tool, and obtain corresponding tile data to be used.
5. The method of claim 1, wherein determining target tile data from the at least one set of tile data to be used based on display information in the image display instructions comprises:
analyzing the image display instruction to obtain display information corresponding to the layer to be displayed; the display information comprises at least one of a display scale and a display area corresponding to the layer to be displayed;
determining tile data to be used corresponding to the display information from the at least one set of tile data to be used;
and determining the tile data to be used as target tile data, and generating and displaying a target display image based on the target tile data.
6. The method according to claim 5, wherein the determining and displaying the tile data to be used as target tile data to generate a target display image based on the target tile data comprises:
determining a layer to be displayed corresponding to the target tile data as a target display layer;
and importing the target tile data into the target display layer to generate and display a target display image.
7. An image processing apparatus characterized by comprising:
the to-be-displayed layer generating module is used for acquiring at least one to-be-used element information associated with the to-be-displayed image and generating a to-be-displayed layer according to each to-be-used element information; wherein the information of the elements to be used comprises at least one of position information of an area to be displayed of the image to be displayed and image display attribute information;
the slicing scheme determining module is used for determining a to-be-used slicing scheme corresponding to the layer to be displayed according to the to-be-used scaling corresponding to the layer to be displayed;
the tile data determining module is used for carrying out slicing processing on the corresponding layers to be displayed based on each slicing scheme to be used so as to obtain at least one group of tile data to be used corresponding to each layer to be displayed;
and the target display image determining module is used for determining target tile data from the at least one group of tile data to be used based on display information in the image display instruction when the image display instruction is received, so as to generate a target display image based on the target tile data, and displaying the target display image.
8. The apparatus of claim 7, wherein the tile data determination module comprises:
the scale determining unit is used for determining a current layer to be displayed corresponding to the current slicing scheme to be used and determining a scale to be used between the current layer to be displayed and an original layer to be displayed of an image to be displayed aiming at each slicing scheme to be used;
and the tile data determining unit is used for adjusting the slice parameters of the layer slice management tool based on the to-be-used scale so as to perform slice processing on the current to-be-displayed image based on the adjusted layer slice management tool, and obtain corresponding to-be-used tile data.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the image processing method of any one of claims 1-6.
10. A computer-readable storage medium storing computer instructions for causing a processor to implement the image processing method of any one of claims 1 to 6 when executed.
CN202211049108.0A 2022-08-30 2022-08-30 Image processing method and device, electronic equipment and storage medium Pending CN115423889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211049108.0A CN115423889A (en) 2022-08-30 2022-08-30 Image processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211049108.0A CN115423889A (en) 2022-08-30 2022-08-30 Image processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115423889A true CN115423889A (en) 2022-12-02

Family

ID=84199937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211049108.0A Pending CN115423889A (en) 2022-08-30 2022-08-30 Image processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115423889A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453170A (en) * 2023-12-25 2024-01-26 西安芯云半导体技术有限公司 Display control method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453170A (en) * 2023-12-25 2024-01-26 西安芯云半导体技术有限公司 Display control method, device and storage medium
CN117453170B (en) * 2023-12-25 2024-03-29 西安芯云半导体技术有限公司 Display control method, device and storage medium

Similar Documents

Publication Publication Date Title
KR102121361B1 (en) Method and device for identifying the type of geographic location where the user is located
US11138216B2 (en) Automatically invoked unified visualization interface
US11238632B2 (en) Interface to index and display geospatial data
US10938684B2 (en) Disparate monitoring for IoT
CN110209748B (en) Method and apparatus for indexing geofences
EP3916575A2 (en) Method and apparatus for assisting quality inspection of map data, electronic device, and storage medium
CN115423889A (en) Image processing method and device, electronic equipment and storage medium
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN115761130A (en) Three-dimensional scene rapid construction method and device, electronic equipment and storage medium
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN110895591A (en) Method and device for positioning self-picking point
US20220398244A1 (en) Query method and device and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115860877A (en) Product marketing method, device, equipment and medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN115248735A (en) Log data output control method, device, equipment and storage medium
CN114610719A (en) Cross-cluster data processing method and device, electronic equipment and storage medium
CN115373831A (en) Data processing method, device and computer readable storage medium
CN112905635A (en) Service processing method, device, equipment and storage medium
CN110764860A (en) Project configuration method, device, server and storage medium in user interface
CN111832304B (en) Weight checking method and device for building names, electronic equipment and storage medium
CN116050371A (en) Report generation method, device, equipment and program product
CN117132187A (en) Method and device for determining region of interest
CN115510838A (en) Template generation method and device, electronic equipment and storage medium
CN114490154A (en) Method and device for displaying reasons of data abnormality, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination