CN109657172A - Preview picture method, apparatus, equipment and storage medium - Google Patents
Preview picture method, apparatus, equipment and storage medium Download PDFInfo
- Publication number
- CN109657172A CN109657172A CN201811448542.XA CN201811448542A CN109657172A CN 109657172 A CN109657172 A CN 109657172A CN 201811448542 A CN201811448542 A CN 201811448542A CN 109657172 A CN109657172 A CN 109657172A
- Authority
- CN
- China
- Prior art keywords
- preview
- picture
- request
- current image
- blocky
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present application discloses a kind of preview picture method, apparatus, equipment and storage medium, this method comprises: determining targets preview region and the target tier of current image according to preview request;Classification processing is zoomed in and out to the current image, according to the target tier and the targets preview region, determines the corresponding map data mining platform of the target tier;The current image is split according to the rule of setting, obtains blocky picture corresponding with the map data mining platform;The blocky picture is sent to the sender of the preview request, so that the sender of the preview request integrates the blocky picture, and preview is shown.Displaying target preview area, improves the processing speed during preview picture;The only corresponding figure layer of load target tier, and show solve the problems, such as the delay and Caton in current image preview, realize any scaling to current image for preview is carried out after the blocky picture integration.
Description
Technical field
The invention relates to image processing techniques more particularly to a kind of preview picture method, apparatus, equipment and deposit
Storage media.
Background technique
With advances in technology and the improvement of people's living standards, digital information progress into people's lives.Example
Such as, by propagating pictorial information online, so that people is got the content in pictorial information, improve people to hidden in pictorial information
The technology and knowledge contained is paid close attention to.
An effective way for obtaining pictorial information is then to carry out online preview to picture, and the prior art is usually to pass through
HTML technology is shown picture, alternatively, being amplified using magnifying glass mode to local picture.But the two methods
It is typically only capable to realize online preview normal picture, when picture precision is higher, for example, picture precision is more than indicator screen
When resolution ratio, will lead to can not normal preview picture.
Summary of the invention
It is in the prior art to solve this application provides a kind of preview picture method, apparatus, equipment and storage medium
Delay and Caton problem in preview picture.
The present invention adopts the following technical scheme:
In a first aspect, the embodiment of the present application provides a kind of preview picture method, this method comprises:
Targets preview region and the target tier of current image are determined according to preview request;
Classification processing is zoomed in and out to the current image, according to the target tier and the targets preview region,
Determine the corresponding map data mining platform of the target tier;
The current image is split according to the rule of setting, obtains block diagram corresponding with the map data mining platform
Piece;
The blocky picture is sent to the sender of the preview request, so that the sender couple of the preview request
The bulk picture is integrated, and preview is shown.
Second aspect, the embodiment of the present application provide a kind of preview picture device, which includes:
Region and level determining module, for determining targets preview region and the mesh of current image according to preview request
Mark level;
Map data mining platform determining module, for zooming in and out classification processing to the current image, according to the target tier
And the targets preview region, determine the corresponding map data mining platform of the target tier;
Divide module, for being split the current image according to the rule of setting, obtains and the map data mining platform
Corresponding bulk picture;
Preview display module, for the blocky picture to be sent to the sender of the preview request, so that described pre-
The sender of request of looking at integrates the blocky picture, and preview is shown.
The third aspect, the embodiment of the present application provide a kind of equipment, including memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of places
Manage the preview picture method of device realization as described in relation to the first aspect.
Fourth aspect, the embodiment of the present application provide a kind of storage medium comprising computer executable instructions, the meter
Calculation machine executable instruction by computer processor when being executed for executing preview picture method as described in relation to the first aspect.
It is had the advantages that in the technical solution adopted by the present invention: determining the target of current image according to preview request
Preview area and target tier, displaying target preview area.Improve the processing speed during preview picture;To institute
It states current image and zooms in and out classification processing, according to the target tier and the targets preview region, determine the target
The corresponding map data mining platform of level;The only corresponding figure layer of load target tier, receive from server with the map data mining platform pair
The blocky picture answered, and shown preview is carried out after the blocky picture integration.Solve delay in current image preview with
Caton problem realizes any scaling to current image.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application its
Its feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of preview picture method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another preview picture method provided by the embodiments of the present application;
Fig. 3 is the effect that a kind of application image pyramid model provided by the embodiments of the present application carries out picture scaling classification
Figure;
Fig. 4 is the flow chart of another preview picture method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another preview picture method provided by the embodiments of the present application;
Fig. 6 is the flow chart of another preview picture method provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of preview picture device provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of equipment provided by the embodiments of the present application.
Specific embodiment
It is specifically real to the application with reference to the accompanying drawing in order to keep the purposes, technical schemes and advantages of the application clearer
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining this Shen
Please, rather than the restriction to the application.It also should be noted that illustrating only for ease of description, in attached drawing and the application
Relevant part rather than full content.It should be mentioned that some examples before exemplary embodiment is discussed in greater detail
Property embodiment be described as flow chart describe processing or method.Although flow chart describes operations (or step)
At the processing of sequence, but many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, operations
Sequence can be rearranged.The processing can be terminated when its operations are completed, be not included in it is also possible to have
Additional step in attached drawing.The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Specifically, the effect of the picture of online preview material object is in kind better than viewing on the spot under some specific scenes,
Alternatively, online preview picture provide the user very big convenience in the case where not having viewing material object condition on the spot.?
In actual application, the precision of picture influences the effect of online preview, and the application scenarios of high-precision picture are more and more, works as figure
When piece precision is higher, method in the prior art usually can not carry out efficient preview to high-precision picture and show.The application is real
Apply the online preview that the preview picture method in example is applicable to normal picture and high-precision picture.Such as: normal picture and height
The criteria for classifying of precision picture can be using 5M size as separation, be used only to example here, not form restriction.With more
Development of the number museum to Digitalization Construction, effective online historical relic picture of propagating increasingly is paid attention to, and usual situation
Under, the historical relic picture in museum is high-precision picture, and the displaying that method provided by the embodiments of the present application can effectively link up is high
Precision picture, for example, showing the true detail of historical relic.It is following by taking the high-precision picture of Cultural relics in museum as an example, be described.
Fig. 1 gives a kind of flow chart of preview picture method provided by the embodiments of the present application, figure provided in this embodiment
Piece method for previewing can be executed by preview picture device, which can be real by way of hardware and/or software
It is existing.The device can be integrated and is used cooperatively in the server with client.With reference to Fig. 1, this method be can specifically include:
Step 110, the targets preview region that current image is determined according to preview request and target tier.
Wherein, the preview request for the user that client will acquire is sent to server, and server receives preview request,
Illustratively, client can be the headend equipment directly interacted with user, which can provide user's interaction circle
Face, user on the headend equipment by operating, so that client obtains the preview request of user.Server is to current
Picture carries out relevant treatment on backstage, and the picture that processing is completed is sent to client and is rendered, and client completes processing
Picture carry out online preview and show.
Specifically, server determines targets preview region and the target tier of current image according to preview request,
In, targets preview region refers to, user needs the part of online preview in the secondary preview request, for example, this time of user merely desires to
Check the local display figure of picture lower left corner part, then the left lower corner is divided into targets preview region.In actual application process
In, it can be by the preview request of analysis user, and the operation of the preview request is triggered, to determine targets preview region,
For example, coordinate data of the operation of analysis triggering preview request in current display page, and, coordinate data correspondence is being worked as
The dimension data of preceding picture determines targets preview region according to above-mentioned coordinate data and dimension data.
The concept of following levels for simply introducing picture, the level of picture refers to, in Computer Design system, for more
Picture material is conveniently and effectively handled, is usually placed in them in different layers, and image is considered as being folded by several tomographic images
Made of adding.Using image processing software, independent processing can be done to every layer, rather than influence the picture material of other layers.New
When building an image file, system can establish a background layer automatically for it, which is equivalent to one piece of painting canvas, can do above
Textures, drawing and other image processing works.If an image has multiple figure layers, each figure layer all have identical pixel,
Port number and format.Picture in the embodiment of the present application, namely image among the above.In addition, working as according to preview request is corresponding
The coordinate range of the preceding display page and the size in targets preview region, determine the target tier of current image, for example, currently
The level of picture is provided with altogether 18 layers, and determining target tier is the 5th layer.
Step 120 zooms in and out classification processing to the current image, according to the target tier and the target
Preview area determines the corresponding map data mining platform of the target tier.
Specifically, classification processing is zoomed in and out to current image, to determine that current preview requests corresponding level of zoom,
Wherein, the switching of figure layer is carried out according to the level of zoom of current image.In a specific example, by taking map as an example, map
Have the range of a level of zoom, level of zoom can be indicated with scale bar or resolution ratio, map have one it is total
Level of zoom, each figure layer have respective level of zoom, can control figure layer in this way and show in suitable level of zoom, need
It is noted that being not necessarily two times of relationship between adjacent two-stage, arbitrary value can be, it is not limited here.In the application
In embodiment, in targets preview region, according to target tier, map data mining platform corresponding with the target tier is determined,
In, the corresponding level of zoom of each map data mining platform.
The current image is split by step 130 according to the rule of setting, is obtained corresponding with the map data mining platform
Blocky picture.
Wherein, the rule of application settings divides current image real-time perfoming, can specifically pass through image processing techniques reality
It is existing, the rule of setting can be backstage research staff according to the property of current image and the application scenarios of current image or
The preview request of analysis user selects, and this will not be repeated here.Current image is divided into several blocky pictures, blocky picture with
Map data mining platform is corresponding, that is, can then determine the corresponding picture segmentation of the map data mining platform after one group of map data mining platform of every determination
Blocky picture afterwards.
In a specific example, GPU (Graphics Processing Unit, the figure of server can be passed through
Processor) targets preview region is obtained in real time, and current image is cut in real time in targets preview region, to obtain
Corresponding bulk picture, without carrying out slicing treatment in advance, meanwhile, under the support of high-performance GPU, it may be implemented quickly aobvious
Show, reduce file process, accelerates access speed.
Step 140, the sender that the blocky picture is sent to the preview request, so that the preview request
Sender integrates the blocky picture, and preview is shown.
In practical application, the sender of preview request can be the headend equipment that can be interacted with user, specifically,
Blocky picture is sent to headend equipment, the blocky picture received is integrated by headend equipment, specific implementation can
Be each blocky picture of analysis size and comprising image information, blocky picture is integrated by splicing,
Picture to be shown after being integrated, renders picture to be shown and preview is shown.
The embodiment of the present application determines targets preview region and the target tier of current image according to preview request, only aobvious
Show targets preview region.Improve the processing speed during preview picture;The current image is zoomed in and out at classification
Reason, according to the target tier and the targets preview region, determines the corresponding map data mining platform of the target tier;Only add
The corresponding figure layer of target tier is carried, receives the blocky picture corresponding with the map data mining platform from server, and by described piece
Preview is carried out after the integration of shape picture to show.It solves the problems, such as the delay and Caton in current image preview, realizes to current figure
Any scaling of piece.
To sum up, by taking historical relic high-precision picture as an example, the technical solution of the embodiment of the present application is illustrated: image procossing,
The targets preview region for calculating high-precision picture, that is, indication range Bbox;Classification is zoomed in and out to the picture afterwards, so that often
One level of zoom is corresponding with corresponding figure layer;Based on CUDA-GPU (Compute Unified Device
Architecture-Graphics Processing Unit, unifiedly calculate framework equipment-graphics processor) working environment
Under build picture, get and corresponding fractional transmission directly taken to preceding from server by GPU after image display area range
End equipment is shown, is not necessarily to preparatory slicing treatment, while under the support of high-performance GPU, is realized quickly display, is reduced text
Part processing, accelerates access time.It is issued without by GEOSERVER, to realize efficient processing.
On the basis of the above embodiments, Fig. 2 gives another preview picture method provided by the embodiments of the present application
Flow chart.The preview picture method is the materialization to above-mentioned preview picture method.With reference to Fig. 2, the preview picture method packet
It includes:
Step 210, the targets preview region that current image is determined according to preview request and target tier.
Optionally, the preview request described in the display position of click request equipment current page and/or adjusting by asking
The operation button in equipment is asked to trigger.
Wherein, user passes through the headend equipment interacted and operates, and in actual application process, passes through
It can directly be operated on the headend equipment, for example, can pass through when the display screen of the headend equipment is touch screen
Touch screen induction user's operation obtains preview request.In addition, preview request can also be triggered by request equipment.Specifically
, request equipment can be attached with headend equipment by wired or wireless way.In a specific example, request
Equipment is shown that the display position by clicking request equipment current page is triggered on headend equipment with visible icon
Preview request;It can also be triggered by adjusting the operation button in request equipment, wherein by being carried out to operation button
It adjusts, realizes the determination to the level of zoom of picture.
Illustratively, request equipment includes mouse, correspondingly, the operation button includes mouse roller.Specifically, logical
It crosses icon of the mouse in headend equipment current display page to show, determines targets preview region;Meanwhile it being rolled according to mouse
The operation of wheel, determines level of zoom, to determine target figure layer.
The current image includes the picture that picture precision is greater than monitor resolution.Wherein, if the picture of current image
Precision is greater than the resolution ratio of display, then defining the picture is high-precision picture, here an only example, does not form tool
Body limits.In a specific example, the application scenarios in the embodiment of the present application can be to museum be historical relic picture into
The online preview of row, it is generally the case that more demanding due to historical relic picture, it typically is high-precision pictures.
Step 220 establishes image pyramid model;
Specifically, current image to be divided into the tile of n*n pixel, wherein these tile very littles, speed of download is quickly;
For example, using 0-17, totally 18 grades of scalings, tile size n*n, scaling are classified by taking resolution ratio as an example, and resolution ratio is often put
It is twice, the tile of four n*n is further divided on the basis of upper level tile, resolution ratio is higher and higher, and the content of display is got over
Come abundanter, 17 grades are most abundant, the establishment process of image pyramid model is illustrated above by a specific example, and
In the above example, n can take 256.
Step 230 zooms in and out classification processing to the current image according to described image pyramid model.
Wherein it is determined that application image pyramid model zooms in and out classification processing to picture after image pyramid model,
So that each level of zoom is corresponding with corresponding figure layer.
Fig. 3 shows a kind of effect picture of application image pyramid model progress picture scaling classification, with reference to Fig. 3, it is assumed that
Picture in this example embodiment is historical relic high-precision picture, wherein 310 indicate the first level, and 320 indicate the second level, 330 tables
Show third level, in this specific example, 320 the second levels indicated are target tier, and 340 regions indicated are mesh
Mark preview area.As seen in Figure 3, with the raising of scaling classification process intermediate-resolution, the content that picture is shown is more next
It is abundanter.
Step 240, according to the target tier and the targets preview region, determine that the target tier is corresponding
Map data mining platform.
Step 250, the acquisition request equipment operate in the set time period.
Specifically, the operation of mouse within the set time is obtained so as to request equipment be mouse as an example, for example, setting
Time can be 1 minute.In a specific example, operation corresponding operation class of the mouse in nearest 1 minute is obtained
Type and the corresponding number of different action types, for example, 2 operations in nearest 1 minute are all to be enlarged.
Step 260 is operated according to the next step of the operation prediction request equipment.
Specifically, the next step of the operation prediction request equipment of request equipment within the set time can be operated,
Such as: operation twice recently is all to be enlarged, then can predict that the operation of next step is to be enlarged;If continuously put
Big number can not recognize image content after reaching preset times or amplification, then predict that the operation of next step is to reduce behaviour
Make.In actual application process, two prediction results can also be generated, i.e., operation can be amplifying operation in next step, may be used also
To be reduction operation.
Step 270 generates the next step corresponding preview request of operation and the corresponding figure layer letter of the preview request
Breath.
Illustratively, after predicting the next step operation of request equipment, generation operates corresponding preview in next step and asks
It asks, if operation is to be enlarged in next step, corresponding preview request is amplification preview request, if operation is to reduce in next step
Operation, then corresponding preview request is to reduce preview request, and then generate map data mining platform corresponding with the preview request.?
In one specific example, when generating two prediction results, then it is corresponding amplification preview request and reduce preview request figure
Layer information generates.
The above-mentioned operation for generating the corresponding map data mining platform of subsequent preview request in advance, further improves preview request
Response speed.
The current image is split by step 280 according to the rule of setting, is obtained corresponding with the map data mining platform
Blocky picture.
With further reference to Fig. 3, targets preview region 340 is extracted in target tier (i.e. the second level 320) and is obtained currently
After picture, the corresponding current image in targets preview region 340 is subjected to picture segmentation, in scheme shown in Fig. 3, currently
Picture is divided into 32 blocky pictures.
Step 290, the sender that multiple blocky pictures are transmitted to the preview request, so that the preview is asked
The sender asked integrates the blocky picture, and preview is shown.
Specifically, parallel transmission refers to, when user need to show multiple blocky pictures, multiple bulk pictures can one
And transmitted, then GPU directly acquire multiple blocky pictures effect it is more preferable, such as in scheme shown in Fig. 3, current image
Divide the blocky picture of 32 obtained as 32 task transmitted in parallel, can be further improved the reception speed of sender, it is real
The quick display of existing image reduces the refreshing delay of preview image.The size selection of blocky picture can be according to bandwidth, GPU
Image-capable etc. is adjusted, such as bandwidth is bigger, can choose bigger size.In addition, the selection of GPU also influences
Transmission speed can be realized in a specific example by selecting CUDA.When multiple blocky pictures are transmitted to
After the sender of preview request, so that the sender of preview request integrates blocky picture, and carries out preview and show.
It should be noted that the execution sequence of the step in above-described embodiment is used as a kind of alternative embodiment mode, not
Specific restriction is formed to the embodiment of the present application.Such as: as long as generating the operation of the preview request of certain number, step 250,
The prediction process to preview request next time of step 260 and step 270 is executable, according to the preview request generated, knot
Step 250, step 260 and step 270 are closed, preview request next time is predicted.
In the embodiment of the present application, by request equipment in the display position of current page and the adjustment request equipment
On operation button trigger preview request, and establish image pyramid model, worked as according to described image pyramid model to described
Preceding picture zooms in and out classification processing, to obtain corresponding with level of zoom map data mining platform, and not all map data mining platform, raising
Preview picture speed.It obtains the request equipment to operate in the set time period, be set according to the operation prediction request
Standby next step operation generates the next step and operates corresponding preview request and the corresponding figure layer letter of the preview request
Breath generates the next step predicted in advance and operates corresponding map data mining platform, further improves the response speed of preview request;
Multiple blocky pictures are transmitted to the sender of the preview request, so that the sender of the preview request is to described
Blocky picture is integrated, and preview is shown, while improving preview request response speed, the preview for improving picture is aobvious
Show effect.
The embodiment of the present application can be applicable to the high-precision picture for historical relic and carry out in the scene of online preview, it is intended to be
User provides the high-precision online preview service of historical relic picture online.It is high-precision by technical solution provided by the embodiments of the present application
The online preview of degree picture, which can link up, infinitely amplifies, reduces or translates dragging, meanwhile, for more than indicator screen high-resolution
The high-precision historical relic picture of rate, can also realize online preview.Especially historical relic is periodically shot in fields such as museum, archaeologies
When a large amount of high-precision pictures, online preview effect well is embodied.
To sum up, by taking historical relic high-precision picture as an example, Fig. 4 shows the flow chart of another preview picture method, with reference to figure
4.Step 410, the indication range Bbox for calculating high-precision picture, that is, targets preview region;Step 420 is based on image gold
The classification of word tower scaling of model, specifically can be using laplacian pyramid algorithm, is zoomed in and out based on image pyramid model
Classification;Step 430 builds picture real-time parallel picture segmentation service based on CUDA-GPU;Step 440, the height based on WEBGL
The rendering of precision picture.
The processing of picture is illustrated below for by pyramid model, initially enters the early period in picture path
Image file is examined, secondly, judging whether the corresponding OpenLayers interface of display device can be used, is then converted to picture
Binary form is written in the OpenLayers page.Original image is uploaded to digital resources system, saves the long width values of picture
And the path picture URL, the indication range Bbox of picture is arranged: it is assumed that current center point coordinate is cx, cy (can be arbitrarily to have
The latitude and longitude coordinates of effect), picture a length of width, width heigth.
Center point coordinate is converted to ' EPSG:3857 ' coordinate value, cx1, cy1;
Calculate X minimum value: cx1-width*1000/2;
Calculate Y minimum value: cy1-heigth*1000/2;
Calculate X maximum value: cx1+width*1000/2;
Calculate Y maximum value: cy1+heigth*1000/2;
Static images are loaded by the picture indication range calculated above in OpenLayers.
Based on the above technical solution, it can also be split by complete high-precision picture as blocky picture
Afterwards, several blocky pictures is distributed in GEOSERVER, is arranged and calculates the minimum and maximum indication range of picture, it is rear logical
WEBGL is crossed to be rendered;Calculating indication range, picture scaling classification is rear to be loaded by GPU, before obtaining corresponding figure layer progress
End display.In a specific example, Fig. 5 shows the flow chart of another preview picture method, with reference to Fig. 5, step
510, it is handled based on image pyramid model high-precision picture;Step 520, the high-precision picture publication based on GEOSERVER;
Step 530, the high-precision picture rendering based on WEBGL.
Further, it is also possible to be to carry out network slice to picture first, it is loaded under the working environment of GPU and builds figure
Piece (the picture issuing process that the process can substitute GEOSERVER), also may be implemented above-mentioned to the pre- of high-precision picture in this way
Look at effect.Fig. 6 shows the flow chart of another preview picture method, with reference to Fig. 6, wherein step 610 calculates the aobvious of picture
Bbox is enclosed in demonstration;Step 620, circulation level number;Step 630 calculates current layer pixel span;Step 640 calculates abscissa most
Massive index;Step 650 calculates abscissa minimum index;Step 660 calculates ordinate largest index;Step 670 is calculated and is indulged
Coordinate minimum index;Step 680 is sliced according to grid;Step 690, all the points meet threshold condition, if so, process
Terminate, if it is not, thening follow the steps 630.
Based on the above technical solution, to client, server and its Floor layer Technology in the embodiment of the present application
Realization is illustrated.
It is to be illustrated to the major name applied in the embodiment of the present application first: where OpenLayers is one special
The JavaScript class libraries packet provided is developed for Web GIS client, the map datum for realizing reference format publication is visited
It asks;GeoServer is that the J2EE of OpenGIS Web server specification is realized, using the GeoServer publication that can be convenient
Diagram data allows user be updated, delete to characteristic, insertion operation, can be relatively easy to by GeoServer
Rapid communal space geography information between users;WebGL (Web Graphics Library) is a kind of 3D drawing agreement,
This drawing technique standard permission is combined together JavaScript and OpenGL ES 2.0, by increasing OpenGL ES
2.0 JavaScript binding, WebGL can provide hardware 3D for HTML5Canvas and accelerate rendering, and such Web is opened
Hair personnel can come to show 3D scene and model more glibly in browser by system video card, moreover it is possible to create complexity
Navigation and data, which visualize, to be realized.WebGL solves the problems, such as two: first of existing Web interactive three-dimensional animation, passes through
Html script itself realizes the production of Web interactive three-dimensional animation, supports without any browser plug-in;Second, utilize bottom
The figure rendering that carries out of graphics hardware acceleration function, be by the way that unified, standard and cross-platform OpenGL interface is real
Existing.
On the basis of the above embodiments, Fig. 7 is that a kind of structure of preview picture device provided by the embodiments of the present application is shown
It is intended to.With reference to Fig. 7, preview picture device provided in this embodiment is specifically included: region and level determining module 710, figure layer letter
Cease determining module 720, segmentation module 730 and preview display module 740.
Wherein, region and level determining module 710, for determining the targets preview area of current image according to preview request
Domain and target tier;Map data mining platform determining module 720, for zooming in and out classification processing to the current image, according to institute
Target tier and the targets preview region are stated, determines the corresponding map data mining platform of the target tier;Divide module 730, uses
The current image is split according to the rule of setting, obtains blocky picture corresponding with the map data mining platform;Preview
Display module 740, for the blocky picture to be sent to the sender of the preview request, so that the preview request
Sender integrates the blocky picture, and preview is shown.
The embodiment of the present application determines targets preview region and the target tier of current image according to preview request, only aobvious
Show targets preview region.Improve the processing speed during preview picture;The current image is zoomed in and out at classification
Reason, according to the target tier and the targets preview region, determines the corresponding map data mining platform of the target tier;Only add
The corresponding figure layer of target tier is carried, receives the blocky picture corresponding with the map data mining platform from server, and by described piece
Preview is carried out after the integration of shape picture to show.It solves the problems, such as the delay and Caton in current image preview, realizes to current figure
Any scaling of piece.
Further, the blocky picture is multiple;
Correspondingly, preview display module 740 is specifically used for:
Multiple blocky pictures are transmitted to the sender of the preview request.
Further, the preview request is by clicking described in display position and/or the adjusting of request equipment current page
Request the operation button triggering in equipment.
Further, further includes:
Number of operations obtains module, operates in the set time period for obtaining the request equipment;
Prediction module is operated, for operating according to the next step of the operation prediction request equipment;
Request and information generating module operate corresponding preview request and the preview for generating the next step
Request corresponding map data mining platform.
Further, the request equipment includes mouse, correspondingly, the operation button includes mouse roller.
Further, map data mining platform determining module 720 is specifically used for:
Establish image pyramid model;
Classification processing is zoomed in and out to the current image according to described image pyramid model.
Further, the current image includes the picture that picture precision is greater than monitor resolution.
Preview picture device provided by the embodiments of the present application can be used for executing preview picture side provided by the above embodiment
Method has corresponding function and beneficial effect.
The embodiment of the present application provides a kind of equipment, and it is pre- that picture provided by the embodiments of the present application can be integrated in the equipment
Look at device.Fig. 8 is a kind of structural schematic diagram of equipment provided by the embodiments of the present application.With reference to Fig. 8, which includes: processor
80, memory 81.The quantity of processor 80 can be one or more in the equipment, be with a processor 80 in Fig. 8
Example.The quantity of memory 81 can be one or more in the equipment, in Fig. 8 by taking a memory 81 as an example.The equipment
Processor 80 can be connected with memory 81 by bus or other modes, in Fig. 8 for being connected by bus.
Memory 81 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, the corresponding program instruction/module of preview picture method as described in the application any embodiment is (for example, picture
Region and level determining module 710, map data mining platform determining module 720, segmentation module 730 and preview in pre-viewing device are shown
Module 740).Memory 81 can mainly include storing program area and storage data area, wherein storing program area can store operation
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data according to equipment
Deng.In addition, memory 81 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 81
It can further comprise the memory remotely located relative to processor 80, these remote memories can be by being connected to the network extremely
Equipment.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Software program, instruction and the module that processor 80 is stored in memory 81 by operation, thereby executing equipment
Various function application and data processing, that is, realize above-mentioned preview picture method, which includes: basis
Preview request determines targets preview region and the target tier of current image;The current image is zoomed in and out at classification
Reason, according to the target tier and the targets preview region, determines the corresponding map data mining platform of the target tier;According to
The current image is split by the rule of setting, obtains blocky picture corresponding with the map data mining platform;By the bulk
Picture is sent to the sender of the preview request, so that the sender of the preview request is whole to the blocky picture progress
It closes, and preview is shown.
The equipment of above-mentioned offer can be used for executing preview picture method provided by the above embodiment, have corresponding function
And beneficial effect.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
When being executed by computer processor for executing a kind of preview picture method, which includes: basis for row instruction
Preview request determines targets preview region and the target tier of current image;The current image is zoomed in and out at classification
Reason, according to the target tier and the targets preview region, determines the corresponding map data mining platform of the target tier;According to
The current image is split by the rule of setting, obtains blocky picture corresponding with the map data mining platform;By the bulk
Picture is sent to the sender of the preview request, so that the sender of the preview request is whole to the blocky picture progress
It closes, and preview is shown.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to
It include: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, it is all
Such as DRAM, DDR RAM, SRAM, EDO RAM, Lan Basi (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic are situated between
Matter (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include it
The memory or combinations thereof of its type.In addition, storage medium can be located at program in the first computer system being wherein performed
In, or can be located in different second computer systems, second computer system is connected by network (such as internet)
It is connected to first computer system.Second computer system can provide program instruction to the first computer for executing.Term
" storage medium " may include that may reside in different location (such as in the different computer systems by network connection)
Two or more storage mediums.Storage medium can store can be performed by one or more processors program instruction (such as
It is implemented as computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
Figure provided by the application any embodiment can also be performed in the preview picture method that executable instruction is not limited to the described above
Relevant operation in piece method for previewing.
The application any embodiment can be performed in preview picture device, storage medium and the equipment provided in above-described embodiment
Provided preview picture method, the not technical detail of detailed description in the above-described embodiments, reference can be made to the application is arbitrarily implemented
Preview picture method provided by example.
Note that above are only the preferred embodiment and institute's application technology principle of the application.Those skilled in the art can manage
Solution, the application are not limited to specific embodiment described here, are able to carry out various apparent changes for a person skilled in the art
The protection scope changed, readjust and substituted without departing from the application.Therefore, although by above embodiments to the application
It is described in further detail, but the application is not limited only to above embodiments, the case where not departing from the application design
Under, it can also include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.
Claims (10)
1. a kind of preview picture method characterized by comprising
Targets preview region and the target tier of current image are determined according to preview request;
Classification processing is zoomed in and out to the current image, according to the target tier and the targets preview region, is determined
The corresponding map data mining platform of the target tier;
The current image is split according to the rule of setting, obtains blocky picture corresponding with the map data mining platform;
The blocky picture is sent to the sender of the preview request, so that the sender of the preview request is to described piece
Shape picture is integrated, and preview is shown.
2. the method according to claim 1, wherein the bulk picture is multiple;
Correspondingly, the blocky picture to be sent to the sender of the preview request, comprising:
Multiple blocky pictures are transmitted to the sender of the preview request.
3. the method according to claim 1, wherein the preview request is by clicking request equipment current page
Display position and/or adjust it is described request equipment on operation button triggering.
4. according to the method described in claim 3, it is characterized by further comprising:
The request equipment is obtained to operate in the set time period;
According to the next step operation of the operation prediction request equipment;
It generates the next step and operates corresponding preview request and the corresponding map data mining platform of the preview request.
5. according to the method described in claim 3, it is characterized in that, the request equipment includes mouse, correspondingly, the operation
Button includes mouse roller.
6. the method according to claim 1, wherein described zoom in and out classification processing packet to the current image
It includes:
Establish image pyramid model;
Classification processing is zoomed in and out to the current image according to described image pyramid model.
7. the method according to claim 1, wherein the current image includes picture precision greater than display point
The picture of resolution.
8. a kind of preview picture device characterized by comprising
Region and level determining module, for determining targets preview region and the destination layer of current image according to preview request
Grade;
Map data mining platform determining module, for zooming in and out classification processing to the current image, according to the target tier and
The targets preview region determines the corresponding map data mining platform of the target tier;
Divide module, for being split the current image according to the rule of setting, obtains corresponding with the map data mining platform
Blocky picture;
Preview display module, for the blocky picture to be sent to the sender of the preview request, so that the preview is asked
The sender asked integrates the blocky picture, and preview is shown.
9. a kind of equipment characterized by comprising
Memory and one or more processors;
The memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Existing preview picture method as claimed in claim 1.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
For executing preview picture method as claimed in claim 1 when computer processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811448542.XA CN109657172A (en) | 2018-11-30 | 2018-11-30 | Preview picture method, apparatus, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811448542.XA CN109657172A (en) | 2018-11-30 | 2018-11-30 | Preview picture method, apparatus, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109657172A true CN109657172A (en) | 2019-04-19 |
Family
ID=66111087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811448542.XA Withdrawn CN109657172A (en) | 2018-11-30 | 2018-11-30 | Preview picture method, apparatus, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109657172A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110187924A (en) * | 2019-05-29 | 2019-08-30 | 吉林亿联银行股份有限公司 | Picture loading method and device |
CN110602189A (en) * | 2019-08-30 | 2019-12-20 | 维沃移动通信有限公司 | File downloading method, server and electronic equipment |
CN110990613A (en) * | 2019-12-17 | 2020-04-10 | 神州数码医疗科技股份有限公司 | Image transmission processing method, device, terminal and storage medium |
CN111767490A (en) * | 2020-06-30 | 2020-10-13 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for displaying image |
CN113112564A (en) * | 2020-01-13 | 2021-07-13 | 长沙市海图科技有限公司 | Method, system and storage medium for CAD (computer-aided design) online calling WMTS (wireless multimedia transport service) |
CN113852823A (en) * | 2021-11-30 | 2021-12-28 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN115423690A (en) * | 2022-11-04 | 2022-12-02 | 之江实验室 | High-resolution liver cancer pathological image display method and system based on image pyramid |
-
2018
- 2018-11-30 CN CN201811448542.XA patent/CN109657172A/en not_active Withdrawn
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110187924A (en) * | 2019-05-29 | 2019-08-30 | 吉林亿联银行股份有限公司 | Picture loading method and device |
CN110602189A (en) * | 2019-08-30 | 2019-12-20 | 维沃移动通信有限公司 | File downloading method, server and electronic equipment |
CN110602189B (en) * | 2019-08-30 | 2022-07-12 | 维沃移动通信有限公司 | File downloading method, server and electronic equipment |
CN110990613A (en) * | 2019-12-17 | 2020-04-10 | 神州数码医疗科技股份有限公司 | Image transmission processing method, device, terminal and storage medium |
CN110990613B (en) * | 2019-12-17 | 2024-02-23 | 神州数码医疗科技股份有限公司 | Image transmission processing method, device, terminal and storage medium |
CN113112564A (en) * | 2020-01-13 | 2021-07-13 | 长沙市海图科技有限公司 | Method, system and storage medium for CAD (computer-aided design) online calling WMTS (wireless multimedia transport service) |
CN113112564B (en) * | 2020-01-13 | 2023-03-10 | 长沙市海图科技有限公司 | Method, system and storage medium for CAD (computer-aided design) online calling WMTS (wireless multimedia transport service) |
CN111767490A (en) * | 2020-06-30 | 2020-10-13 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for displaying image |
CN111767490B (en) * | 2020-06-30 | 2024-04-23 | 北京百度网讯科技有限公司 | Method, apparatus, device and storage medium for displaying image |
CN113852823A (en) * | 2021-11-30 | 2021-12-28 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN113852823B (en) * | 2021-11-30 | 2022-03-01 | 深圳市通恒伟创科技有限公司 | Image data uploading method, system and device based on Internet of things |
CN115423690A (en) * | 2022-11-04 | 2022-12-02 | 之江实验室 | High-resolution liver cancer pathological image display method and system based on image pyramid |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109657172A (en) | Preview picture method, apparatus, equipment and storage medium | |
CN109829022B (en) | Internet map service system fusing monitoring video information and construction method | |
CN110379010A (en) | Three-dimensional geographic information method for visualizing and system based on video fusion | |
Santana et al. | Multimodal location based services—semantic 3D city data as virtual and augmented reality | |
EP2643820B1 (en) | Rendering and navigating photographic panoramas with depth information in a geographic information system | |
US8872846B2 (en) | Interactive virtual weather map | |
CN110675728B (en) | Generation method, device and equipment of thermodynamic diagram and computer readable storage medium | |
CN107423445A (en) | A kind of map data processing method, device and storage medium | |
US20090094556A1 (en) | User defined scenarios in a three dimensional geo-spatial system | |
Ruzinoor et al. | A review on 3D terrain visualization of GIS data: techniques and software | |
US9697751B2 (en) | Interactive representation of clusters of geographical entities | |
CN104394422A (en) | Video segmentation point acquisition method and device | |
WO2010013854A1 (en) | Three dimensional geographical information client apparatus, server apparatus and three dimensional geographical information system having the same | |
Liu et al. | Implementation of interactive three-dimensional visualization of air pollutants using WebGL | |
CN104599310A (en) | Three-dimensional scene cartoon recording method and device | |
CN104700455A (en) | Method for visualizing three-dimensional data | |
CN110389981B (en) | Data display method, device, electronic equipment and computer readable storage medium | |
Yu et al. | A hybrid system of expanding 2D GIS into 3D space | |
Sherlock et al. | Interactive data styling and multifocal visualization for a multigrid web-based Digital Earth | |
Noguera et al. | A scalable architecture for 3D map navigation on mobile devices | |
Rechichi | Chimera: a BIM+ GIS system for cultural heritage | |
Trapp et al. | Colonia 3D communication of virtual 3D reconstructions in public spaces | |
CN115018967B (en) | Image generation method, device, equipment and storage medium | |
Rieffel et al. | Geometric tools for multicamera surveillance systems | |
US10198837B2 (en) | Network graphing selector |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190419 |
|
WW01 | Invention patent application withdrawn after publication |