CN108122192B - Picture cutting method and device - Google Patents

Picture cutting method and device Download PDF

Info

Publication number
CN108122192B
CN108122192B CN201611076020.2A CN201611076020A CN108122192B CN 108122192 B CN108122192 B CN 108122192B CN 201611076020 A CN201611076020 A CN 201611076020A CN 108122192 B CN108122192 B CN 108122192B
Authority
CN
China
Prior art keywords
image
sub
display area
target
size
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.)
Active
Application number
CN201611076020.2A
Other languages
Chinese (zh)
Other versions
CN108122192A (en
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.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology 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 Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201611076020.2A priority Critical patent/CN108122192B/en
Publication of CN108122192A publication Critical patent/CN108122192A/en
Application granted granted Critical
Publication of CN108122192B publication Critical patent/CN108122192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • G06T3/053Detail-in-context presentations

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method and a device for cutting a picture, and belongs to the technical field of image processing. The method comprises the following steps: acquiring the size of an image display area; determining a cutting scale based on the size of a target image of a to-be-cut picture and the size of the image display area; and carrying out image cutting on the target image based on the image cutting proportion to obtain a plurality of sub images containing the target sub images, wherein the ratio of the sizes of two adjacent sub images in the plurality of sub images is the image cutting proportion, and the difference between the size of the target sub image and the size of the image display area is smaller than a first preset value. The size of the target sub-image is closer to that of the image display area, so that when the display instruction of the target image is detected subsequently, the target sub-image can be displayed in the image display area, and the target sub-image can be paved in the image display area at the moment, so that a better image display effect can be obtained.

Description

Picture cutting method and device
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for cutting a picture.
Background
With the rapid increase of the image data volume, in order to realize the rapid display of a large-scale image, an image pyramid model is often required to be constructed in advance. The image pyramid model is a multi-resolution organization structure of image data, and in brief, the image pyramid model is a series of sub-images with different resolutions established from an original image. The image pyramid model can improve the display performance of the original image, for example, when a user needs to enlarge or reduce the original image, the computer only needs to perform a small amount of calculation to determine the resolution of the enlarged or reduced original image, and then selects a sub-image with the resolution closest to the determined resolution from the image pyramid model to display, so that the image display time is greatly reduced.
In the related art, an original image is usually cut based on a fixed cut scale to obtain a plurality of sub-images in an image pyramid model, and a ratio of sizes between two adjacent sub-images in the plurality of sub-images is the fixed cut scale. Thereafter, when a display instruction of the original image is detected, an appropriate sub-image may be selected from the plurality of sub-images, and the selected sub-image may be displayed in the image display area.
However, since the sizes of the plurality of sub-images obtained based on the fixed cut-to-figure ratio are often different from the size of the image display area, when the sub-images are displayed in the image display area, the sub-images may not be fully displayed in the image display area due to the small size, or may not be fully displayed in the image display area due to the large size, which may seriously affect the image display effect.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method and an apparatus for cutting a graph. The technical scheme is as follows:
in one aspect, a method for cutting a graph is provided, and the method includes:
acquiring the size of an image display area;
determining a cutting scale based on the size of a target image of a to-be-cut picture and the size of the image display area;
and carrying out image cutting on the target image based on the image cutting proportion to obtain a plurality of sub images containing the target sub images, wherein the ratio of the sizes of two adjacent sub images in the plurality of sub images is the image cutting proportion, and the difference between the size of the target sub image and the size of the image display area is smaller than a first preset value.
Optionally, the size of the target image comprises a width and a height of the target image, and the size of the image display area comprises a width and a height of the image display area;
the determining of the cutting scale based on the size of the target image of the to-be-cut picture and the size of the image display area comprises the following steps:
dividing the width of the target image by the width of the image display area to obtain a first numerical value;
dividing the height of the target image by the height of the image display area to obtain a second numerical value;
when the first numerical value is larger than the second numerical value, determining the map cutting proportion based on the width of the target image and the width of the image display area;
when the first numerical value is smaller than the second numerical value, determining the map cutting scale based on the height of the target image and the height of the image display area.
Optionally, the determining the map cutting scale based on the width of the target image and the width of the image display area includes:
determining an optimal solution of a first proportional calculation function when the first proportional calculation function reaches a minimum value under a first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The first scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the width of the target image.
Optionally, the determining the map cutting scale based on the height of the target image and the height of the image display area includes:
determining an optimal solution of a second proportion calculation function when the second proportion calculation function reaches a minimum value under a first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmIs the height of the image display area, HpIs the height of the target image.
Optionally, the cutting the target image based on the cut scale to obtain a plurality of sub-images including an initial sub-image includes:
determining the number M of the cut pictures based on the cut picture proportion, the size of the target image and a preset size, wherein the preset size is the minimum image size supporting display;
and cutting the target image into the M sub-images based on the cutting scale.
Optionally, the size of the target image includes a width of the target image, the size of the image display area includes a width of the image display area, the cropping scale is determined based on the width of the target image and the width of the image display area, and the preset size includes a preset width;
determining the number M of the cutting images based on the cutting image proportion, the size of the target image and a preset size, wherein the determining comprises the following steps:
determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the width of the target image and the preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
Said first number calculation function:
Figure BDA0001165873300000031
wherein N is a non-negative integer set, WpAnd b1 is the preset width, wherein x is the width of the target image, x is the scale of the cutting chart, and b is the preset width.
The size of the target image comprises the height of the target image, the size of the image display area comprises the height of the image display area, the map cutting proportion is determined based on the height of the target image and the height of the image display area, and the preset size comprises a preset height;
optionally, the determining the number M of the cut pictures based on the cut picture proportion, the size of the target image, and a preset size includes:
determining an optimal solution of a second number calculation function when the second number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
The second number calculates a function:
Figure BDA0001165873300000032
wherein N is non-negativeInteger set, HpIs the height of the target image, x is the cut scale, and b2 is the preset height.
Optionally, after the performing the cropping on the target image based on the cropping scale to obtain a plurality of sub-images including the target sub-image, the method further includes:
when a display instruction of the target image is detected, selecting the target sub-image from the plurality of sub-images;
and displaying the selected target sub-image in the image display area.
Optionally, the selecting the target sub-image from the plurality of sub-images comprises:
selecting the target sub-image directly from the plurality of sub-images; alternatively, the first and second electrodes may be,
randomly selecting one sub-image from the plurality of sub-images, and judging whether the selected sub-image is the target sub-image; and when the selected sub-image is not the target sub-image and a switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
In another aspect, a cutting apparatus is provided, the apparatus including:
the acquisition module is used for acquiring the size of an image display area;
the determining module is used for determining the cutting scale based on the size of the target image of the to-be-cut picture and the size of the image display area;
the map cutting module is used for cutting the target image based on the map cutting proportion to obtain a plurality of sub images including the target sub image, the ratio of the sizes of two adjacent sub images in the plurality of sub images is the map cutting proportion, and the difference value between the size of the target sub image and the size of the image display area is smaller than a first preset value.
Optionally, the size of the target image comprises a width and a height of the target image, and the size of the image display area comprises a width and a height of the image display area; the determining module comprises:
the first calculation unit is used for dividing the width of the target image by the width of the image display area to obtain a first numerical value;
the second calculation unit is used for dividing the height of the target image by the height of the image display area to obtain a second numerical value;
a first determination unit configured to determine the map cutting scale based on a width of the target image and a width of the image display area when the first numerical value is larger than the second numerical value;
a second determination unit configured to determine the map cutting scale based on a height of the target image and a height of the image display area when the first value is smaller than the second value.
Optionally, the first determining unit is configured to:
determining an optimal solution of a first proportional calculation function when the first proportional calculation function reaches a minimum value under a first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The first scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the width of the target image.
Optionally, the second determining unit is configured to:
determining an optimal solution of a second proportion calculation function when the second proportion calculation function reaches a minimum value under a first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmIs the height of the image display area, HpIs the height of the target image.
Optionally, the map cutting module includes:
a third determining unit, configured to determine the number M of the cut pictures based on the cut picture proportion, the size of the target image, and a preset size, where the preset size is a minimum image size supporting display;
and the map cutting unit is used for cutting the target image into the M sub-images based on the map cutting proportion.
Optionally, the size of the target image includes a width of the target image, the size of the image display area includes a width of the image display area, the cropping scale is determined based on the width of the target image and the width of the image display area, and the preset size includes a preset width; the third determination unit is configured to:
determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the width of the target image and the preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
Said first number calculation function:
Figure BDA0001165873300000061
wherein N is a non-negative integer set, WpAnd b1 is the preset width, wherein x is the width of the target image, x is the scale of the cutting chart, and b is the preset width.
Optionally, the size of the target image includes a height of the target image, the size of the image display area includes a height of the image display area, the map cutting scale is determined based on the height of the target image and the height of the image display area, and the preset size includes a preset height; the third determination unit is configured to:
determining an optimal solution of a second number calculation function when the second number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
The second number calculates a function:
Figure BDA0001165873300000062
wherein N is a non-negative integer set, HpIs the height of the target image, x is the cut scale, and b2 is the preset height.
Optionally, the apparatus further comprises:
a selection module, configured to select the target sub-image from the plurality of sub-images when a display instruction of the target image is detected;
and the display module is used for displaying the selected target sub-image in the image display area.
Optionally, the selection module comprises:
a first selection unit for directly selecting the target sub-image from the plurality of sub-images; alternatively, the first and second electrodes may be,
a second selecting unit, configured to select any one of the multiple sub-images, and determine whether the selected sub-image is the target sub-image; and when the selected sub-image is not the target sub-image and a switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, after the size of the image display area is acquired, the cutting scale can be flexibly determined based on the size of the target image to be cut and the size of the image display area. The target image may then be cropped based on the cropping scale to obtain a plurality of sub-images including the target sub-image. Because the difference between the size of the target sub-image and the size of the image display area is smaller than the first preset value, that is, the size of the target sub-image is closer to the size of the image display area, when a display instruction of the target image is detected subsequently, the target sub-image can be displayed in the image display area, and at the moment, the target sub-image can be fully paved in the image display area, so that a better image display effect can be obtained.
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 flow chart of a method for cutting a graph according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a graph cutting apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another image cutting device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a graph cutting method according to an embodiment of the present invention. Referring to fig. 1, the method includes:
step 101: and acquiring a target image of the graph to be cut.
It should be noted that the operation of obtaining the target image of the graph to be cut may be executed by the uploading module, and of course, may also be executed by other modules, which is not limited in this embodiment of the present invention. The uploading module is a user interaction module, namely, a user can complete the selection and uploading of the target image through the uploading module.
Specifically, when a selection instruction is detected, an image selected by the selection instruction may be determined as a target image; alternatively, when the upload instruction is detected, the image uploaded by the upload instruction may be determined as the target image, and of course, the target image may also be obtained in other manners, which is not limited in the embodiment of the present invention.
It should be noted that the selection instruction is used to select the target image, and the selection instruction may be triggered by the user, and the user may trigger the selection instruction by a specified operation, where the specified operation may be a single-click operation, a double-click operation, a voice operation, and the like. In addition, the uploading instruction is used for uploading the target image, and the uploading instruction can also be triggered by the user through a specified operation.
Further, after the target image is obtained, the target image can be resampled based on the size of the thumbnail to obtain the thumbnail of the target image, and a subsequent user can quickly check the target image based on the thumbnail.
It should be noted that the operation of resampling the target image based on the thumbnail size to obtain the thumbnail of the target image may be executed by the real-time processing module, and certainly, may also be executed by other modules, which is not limited in this embodiment of the present invention.
In addition, the thumbnail size may be set in advance, and the thumbnail size may be smaller than the size of the target image.
The resampling is a process of extracting a low-resolution image from a high-resolution image, and specifically, the extraction may be performed by using a nearest neighbor interpolation (nearest neighbor interpolation), a bilinear interpolation (bilinear interpolation), a cubic convolution interpolation (cubic convolution interpolation), or the like.
It should be noted that, reference may be made to related technologies for performing resampling on the target image based on the thumbnail size to obtain the thumbnail of the target image, and this is not described in detail in the embodiments of the present invention.
Step 102: the size of the image display area is acquired.
It should be noted that the size of the image display area may include the width and height of the image display area.
Specifically, the size of the image display area may be acquired from a display device, which is a device that needs to display the target image subsequently; alternatively, when an input operation is detected, the size input by the input operation may be determined as the size of the image display area; alternatively, the size stored in advance may be determined as the size of the image display area, and of course, the size of the image display area may also be acquired in other manners, which is not limited in the embodiment of the present invention.
Note that the input operation is for inputting the size of the image display area, and the input operation may be triggered by the user.
Step 103: the cut scale is determined based on the size of the target image and the size of the image display area.
It should be noted that, based on the size of the target image and the size of the image display area, the operation of determining the scale of the cut image may be performed by the calculation module, and may also be performed by other modules, which is not limited in the embodiment of the present invention.
Additionally, the size of the target image may include the width and height of the target image.
Specifically, the width of the target image may be divided by the width of the image display area to obtain a first numerical value; dividing the height of the target image by the height of the image display area to obtain a second numerical value; when the first numerical value is larger than the second numerical value, determining a map cutting proportion based on the width of the target image and the width of the image display area; when the first numerical value is smaller than the second numerical value, determining a map cutting proportion based on the height of the target image and the height of the image display area; when the first value is equal to the second value, the cut-to-map ratio is determined based on the width of the target image and the width of the image display area, or based on the height of the target image and the height of the image display area.
It should be noted that, when the first value is greater than the second value, it indicates that the target image is closer to the image display area in height, and the difference in width is larger, and then the width may be used as a scaling reference to scale the target image, so as to obtain a sub-image whose width is closer to the width of the image display area. The scaling of the target image is a process of subsequently cutting the target image based on the cutting scale. Therefore, when the first value is larger than the second value, the cropping scale may be determined based on the width of the target image and the width of the image display area, so that a sub-image having a width closer to the width of the image display area may be obtained after the target image is cropped based on the cropping scale.
In addition, when the first value is smaller than the second value, it indicates that the target image is closer to the image display area in width and has a larger difference in height, and then the height may be used as a scaling reference to scale the target image, so as to obtain a sub-image having a height closer to the height of the image display area. Therefore, when the first value is smaller than the second value, the cropping scale may be determined based on the height of the target image and the height of the image display area, so that a sub-image having a height closer to the height of the image display area may be obtained after the target image is subsequently cropped based on the cropping scale.
Furthermore, when the first value is equal to the second value, it indicates that the difference between the width and the height of the target image and the image display area is the same, and then both the height and the width can be used as scaling references to scale the target image. Therefore, when the first value is equal to the second value, the cropping proportion can be determined based on the width of the target image and the width of the image display area, or based on the height of the target image and the height of the image display area, so that a sub-image with the width and the height close to the image display area can be obtained after the target image is cropped based on the cropping proportion.
Based on the width of the target image and the width of the image display area, the operation of determining the scale of the map cut may be: determining an optimal solution of the first proportional calculation function when the first proportional calculation function reaches a minimum value under the first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as a cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
First scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the width of the target image.
It should be noted that, assuming that the optimal solution is x0, x0 makes f (x) reach the minimum value under the first constraint condition, that is, W is defined asmMagnification x0nAfter doubling can be combined with WpHas the smallest difference, and conversely, W ispReduction x0nAfter doubling can be combined with WmThe difference in (a) is minimal. Therefore, at this time, x0 may be determined as a cut scale so that the width of the sub-image obtained after the target image is subsequently cut based on x0 may be as close as possible to the width of the image display area.
In addition, when determining the optimal solution of the first proportional calculation function when the first proportional calculation function reaches the minimum value under the first constraint condition, the optimal solution may be determined by a Gradient Descent method (Gradient determination), a Newton's method (Newton's method), a Conjugate Gradient method (Conjugate Gradient), or the like, which is not limited in the embodiment of the present invention. The operation of determining the optimal solution of the first proportional calculation function when the first proportional calculation function reaches the minimum value under the first constraint condition is similar to the operation of determining the optimal solution of a certain function when the first proportional calculation function reaches the minimum value under a certain constraint condition in the related art, and the detailed description is omitted in the embodiment of the present invention.
Wherein, based on the height of the target image and the height of the image display area, the operation of determining the map cutting scale may be: determining an optimal solution of the second proportional calculation function when the second proportional calculation function reaches a minimum value under the first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as a cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
Second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmHeight of image display area,HpIs the height of the target image.
It should be noted that, assuming that the optimal solution is x1, x1 minimizes f (x) under the first constraint, i.e. H is defined asmMagnification x1nAfter doubling can be reacted with HpHas the smallest difference, and conversely, H ispReduction x1nAfter doubling can be reacted with HmThe difference in (a) is minimal. Therefore, at this time, x1 may be determined as a cut scale so that the height of the sub-image obtained after the target image is subsequently cut based on x1 may be as close as possible to the height of the image display area.
In addition, the operation of determining the optimal solution of the second proportional calculating function when the second proportional calculating function reaches the minimum value under the first constraint condition is similar to the operation of determining the first proportional calculating function when the first proportional calculating function reaches the minimum value under the first constraint condition, and the detailed description thereof will not be provided in the embodiments of the present invention.
Step 104: and cutting the target image based on the cutting proportion to obtain a plurality of sub images containing the target sub image, wherein the difference between the size of the target sub image and the size of the image display area is smaller than a first preset value.
It should be noted that the operation of cutting the target image based on the cut scale to obtain a plurality of sub-images including the target sub-image may be performed by the cutting module, or may be performed by other modules, which is not limited in the embodiment of the present invention.
Because the cropping scale is determined based on the size of the target image and the size of the image display area, after the target image is cropped based on the cropping scale, a target sub-image with a size closer to the size of the image display area is obtained, and at this time, the difference between the size of the target sub-image and the size of the image display area is smaller than a first preset value. The first preset value can be preset, and the first preset value can be smaller.
It should be noted that the ratio of the sizes between two adjacent sub-images in the plurality of sub-images is the cut-map scale. That is, the plurality of sub-images conform to the multi-resolution organization structure in the image pyramid model, specifically, the plurality of sub-images sequentially belong to a plurality of levels in the image pyramid model, and the sub-image at the highest level in the plurality of levels is the target image. The sizes of the sub-images of the multiple levels are sequentially reduced from the upper level to the lower level according to the cut-map scale, in other words, the size of the sub-image of a certain level is divided by the cut-map scale, and the size of the sub-image of the lower level adjacent to the level is obtained.
Specifically, the number M of the cut images may be determined, and then the target image may be cut into M sub-images based on the cut image proportion. The number of the cutting pictures is the number of the layers in the image pyramid model.
The operation of determining the number M of the cut pictures may be: determining the n value of the first proportional calculating function or the second proportional calculating function in the step 102 when the first proportional calculating function or the second proportional calculating function reaches the minimum value under the first constraint condition as the number M of the tangent maps; alternatively, the number M of cut images may be determined based on the cut image scale, the size of the target image, and a preset size.
It should be noted that the preset size may include a preset width and a preset height, and the preset size may be preset and is a minimum image size that supports display.
When the map cutting proportion is determined based on the width of the target image and the width of the image display area, the operation of determining the number M of the map cuts may be, based on the map cutting proportion, the size of the target image, and the preset size: determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the width of the target image and a preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is as follows: g (N) is not less than 0, N is equal to N
The first number calculation function:
Figure BDA0001165873300000111
wherein N is a non-negative integer set, WpThe width of the target image is shown, x is the scale of the cut, and b1 is the preset width.
It should be noted that assuming that the optimal solution is n0, n0 minimizes g (x) under the second constraint, i.e. W is defined aspReduce xn0After doubling, the difference from b1 can be the smallest under the condition of being larger than b 1. Therefore, n0 can be determined as the number M of cuts, so that not only the target image can be guaranteed to be cut to the maximum extent, but also the sub-image of the smallest size among the plurality of sub-images can be guaranteed to be displayed normally.
When the map cutting proportion is determined based on the height of the target image and the height of the image display area, the operation of determining the number M of the map cuts may be, based on the map cutting proportion, the size of the target image, and the preset size: determining an optimal solution of the second number calculation function when the second number calculation function reaches the minimum value under the second constraint condition based on the proportion of the cutting graph, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is as follows: g (N) is not less than 0, N is equal to N
The second number calculates the function:
Figure BDA0001165873300000121
wherein N is a non-negative integer set, HpThe height of the target image, x is the scale of the cut, and b2 is the preset height.
It should be noted that assuming that the optimal solution is n1, n1 minimizes g (x) under the second constraint, i.e. H is defined aspReduce xn1After doubling, the difference from b2 can be the smallest under the condition of being larger than b 2. Therefore, n1 can be determined as the number M of cuts, so that not only the target image can be guaranteed to be cut to the maximum extent, but also the sub-image of the smallest size among the plurality of sub-images can be guaranteed to be displayed normally.
Based on the map-cutting scale, the operation of cutting the target image into M sub-images may be: determining M scaling ratios based on the cut scale; dividing the size of the target image by the M scaling ratios to obtain M sub-image sizes; and resampling the target image based on the size of the M sub-images to obtain the M sub-images.
When M scaling ratios are determined based on the map cutting ratio, the M scaling ratios can be obtained by the following specified formula based on the map cutting ratio;
specifying the formula: scale ═ xM-i
Wherein scale is a scaling, x is the graph cutting proportion, i belongs to N, i is more than or equal to 0 and less than or equal to M-1, and N is a nonnegative integer set.
It should be noted that, when the target image is resampled based on the size of the M sub-images to obtain the M sub-images, the target image may be resampled based on the size of the M sub-images by using a parallel computing method to increase the speed of obtaining the M sub-images. The parallel computing method is to perform computation concurrently by using a plurality of processors to increase the computation speed.
Further, in order to facilitate the subsequent quick search of the plurality of sub-images, before the plurality of sub-images are obtained, the storage paths of the plurality of sub-images may be determined, for example, UUIDs (universal Unique identifiers) corresponding to the plurality of sub-images may be generated. In this way, after the plurality of sub-images are obtained, the plurality of sub-images can be stored according to a predetermined storage path, for example, the plurality of sub-images can be stored in a folder named by the UUID.
Furthermore, in order to facilitate the positioning of the objects contained in the plurality of sub-images, after the plurality of sub-images are obtained, the coordinate range of the target image can be assigned, and the coordinate range of the target image is the coordinate range of the plurality of sub-images; and assigning an initial display coordinate range of each sub-image in the plurality of sub-images based on the coordinate range of the sub-image, wherein the initial display coordinate range of the sub-image is the coordinate range of the image display area on the premise that the coordinate range of the sub-image is used as a reference when the sub-image is displayed in the image display area.
It should be noted that the operations of assigning the coordinate range of the target image and assigning the initial display coordinate range of the sub-image may be executed by the assignment module, and certainly may also be executed by other modules, which is not limited in the embodiment of the present invention.
Furthermore, in order to facilitate subsequent fast acquisition and management of the plurality of sub-images, the metafiles of the plurality of sub-images may be generated, and the metafiles of the plurality of sub-images may include related information of the plurality of sub-images, such as a storage path, a map-cutting scale, an image format, an image coordinate range, an initial display coordinate range, and the like, and the metafiles may be in a format of:
Figure BDA0001165873300000131
Figure BDA0001165873300000141
it should be noted that the operation of generating the metafiles of the multiple sub-images may be executed by the metafile generating module, and of course, may also be executed by other modules, which is not limited in this embodiment of the present invention.
In addition, in practical application, after the plurality of sub-images are obtained, the plurality of sub-images can be published through the server, so that other users can conveniently download and use the plurality of sub-images. The operation of publishing the plurality of sub-images by the server may be executed by the publishing module, and certainly, may also be executed by other modules, which is not limited in the embodiment of the present invention.
Further, after the plurality of sub-images are obtained, the target image can be displayed based on the plurality of sub-images, and specifically, when a display instruction of the target image is detected, the target sub-image is selected from the plurality of sub-images; and displaying the selected target sub-image in an image display area.
It should be noted that the display instruction is used to instruct to display the target image, and the display instruction may be triggered by a user, and the user may trigger by a specified operation.
The operation of selecting the target sub-image from the plurality of sub-images may be: selecting a target sub-image directly from the plurality of sub-images; or, one sub-image can be arbitrarily selected from the plurality of sub-images, and whether the selected sub-image is the target sub-image is judged; and when the selected sub-image is not the target sub-image and the switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
It should be noted that the switching instruction is used to switch a sub-image to another sub-image, and the switching instruction may be triggered by a user, and the user may trigger the switching instruction by a specified operation.
In addition, if the target sub-image is directly selected from the plurality of sub-images, the target sub-image is defaulted to be the sub-image which is displayed for the first time after the display instruction of the target image is received, and at the moment, the user does not need to adjust the sub-image displayed in the image display area, and a good image display effect can be obtained. If one sub-image is arbitrarily selected from the plurality of sub-images, the required processing resources are less, and at this time, the user can switch the sub-image displayed in the image display area to the target sub-image to obtain a better image display effect.
In practical application, the target image may be a small-area map, such as a map inside a garden, a map inside a building, and the like, and the small-area map is smaller in area range and can be displayed in the image display area more completely.
In the embodiment of the invention, after the size of the image display area is acquired, the cutting scale can be flexibly determined based on the size of the target image to be cut and the size of the image display area. The target image may then be cropped based on the cropping scale to obtain a plurality of sub-images including the target sub-image. Because the difference between the size of the target sub-image and the size of the image display area is smaller than the first preset value, that is, the size of the target sub-image is closer to the size of the image display area, when a display instruction of the target image is detected subsequently, the target sub-image can be displayed in the image display area, and at the moment, the target sub-image can be fully paved in the image display area, so that a better image display effect can be obtained.
Fig. 2 is a schematic structural diagram of a graph cutting apparatus according to an embodiment of the present invention. Referring to fig. 2, the apparatus includes an acquisition module 201, a determination module 202, and a map cutting module 203.
An obtaining module 201, configured to obtain a size of an image display area;
a determining module 202, configured to determine a cutting scale based on a size of a target image of a to-be-cut image and a size of an image display area;
the cropping module 203 is configured to crop the target image based on the cropping scale to obtain a plurality of sub-images including the target sub-image, a ratio of sizes between two adjacent sub-images in the plurality of sub-images is the cropping scale, and a difference between the size of the target sub-image and the size of the image display area is smaller than a first preset value.
Optionally, the size of the target image comprises a width and a height of the target image, and the size of the image display area comprises a width and a height of the image display area; the determination module 202 includes:
the first calculation unit is used for dividing the width of the target image by the width of the image display area to obtain a first numerical value;
the second calculating unit is used for dividing the height of the target image by the height of the image display area to obtain a second numerical value;
a first determination unit configured to determine a map cutting scale based on a width of the target image and a width of the image display area when the first value is larger than the second value;
and a second determining unit for determining the map cutting scale based on the height of the target image and the height of the image display area when the first value is smaller than the second value.
Optionally, the first determining unit is configured to:
determining an optimal solution of the first proportional calculation function when the first proportional calculation function reaches a minimum value under the first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as a cut chart proportion;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
First scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the width of the target image.
Optionally, the second determining unit is configured to:
determining an optimal solution of the second proportional calculation function when the second proportional calculation function reaches a minimum value under the first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as a cut chart proportion;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
Second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmHeight of image display area, HpIs the height of the target image.
Optionally, the map cutting module 203 includes:
the third determining unit is used for determining the number M of the cutting pictures based on the cutting picture proportion, the size of the target image and a preset size, wherein the preset size is the minimum image size supporting display;
and the image cutting unit is used for cutting the target image into M sub-images based on the image cutting proportion.
Optionally, the size of the target image includes a width of the target image, the size of the image display area includes a width of the image display area, the cropping scale is determined based on the width of the target image and the width of the image display area, and the preset size includes a preset width; the third determination unit is configured to:
determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the proportion of the cutting graph, the width of the target image and a preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is as follows: g (N) is not less than 0, N is equal to N
The first number calculation function:
Figure BDA0001165873300000171
wherein N is a non-negative integer set, WpThe width of the target image is shown, x is the scale of the cut, and b1 is the preset width.
Optionally, the size of the target image includes a height of the target image, the size of the image display area includes a height of the image display area, the cut-to-figure ratio is determined based on the height of the target image and the height of the image display area, and the preset size includes a preset height; the third determination unit is configured to:
determining an optimal solution of the second number calculation function when the second number calculation function reaches the minimum value under the second constraint condition based on the proportion of the cutting graph, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is as follows: g (N) is not less than 0, N is equal to N
The second number calculates the function:
Figure BDA0001165873300000172
wherein N is a non-negative integer set, HpThe height of the target image, x is the scale of the cut, and b2 is the preset height.
Optionally, the apparatus further comprises:
the selection module is used for selecting a target sub-image from the plurality of sub-images when a display instruction of the target image is detected;
and the display module is used for displaying the selected target sub-image in the image display area.
Optionally, the selection module comprises:
a first selection unit for directly selecting a target sub-image from the plurality of sub-images; alternatively, the first and second electrodes may be,
the second selection unit is used for randomly selecting one sub-image from the plurality of sub-images and judging whether the selected sub-image is the target sub-image; and when the selected sub-image is not the target sub-image and a switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
In the embodiment of the invention, after the size of the image display area is acquired, the cutting scale can be flexibly determined based on the size of the target image to be cut and the size of the image display area. The target image may then be cropped based on the cropping scale to obtain a plurality of sub-images including the target sub-image. Because the difference between the size of the target sub-image and the size of the image display area is smaller than the first preset value, that is, the size of the target sub-image is closer to the size of the image display area, when a display instruction of the target image is detected subsequently, the target sub-image can be displayed in the image display area, and at the moment, the target sub-image can be fully paved in the image display area, so that a better image display effect can be obtained.
It should be noted that: in the graph cutting device provided in the above embodiment, only the division of the functional modules is illustrated in the graph cutting process, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the graph cutting device provided by the above embodiment and the graph cutting method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not described herein again.
Fig. 3 is a schematic structural diagram of a graph cutting apparatus according to an embodiment of the present invention. The map cutting apparatus mainly includes a transmitter 301, a receiver 302, a memory 303, a processor 304, and a communication bus 305. It will be understood by those skilled in the art that the configuration shown in fig. 3 is not intended to be limiting, and may include more or less components than those shown, or some components in combination, or a different arrangement of components, and is not intended to be limiting in the embodiments of the present invention.
The transmitter 301 may be configured to transmit data and/or signaling, etc. The receiver 302 may be used to receive data and/or signaling, etc.
The memory 303 may be used to store one or more operating programs and/or modules for executing the graph cutting method. The Memory 303 may be, but is not limited to, a Read-Only Memory (ROM), a Random Access Memory (RAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic disk storage medium, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by an integrated circuit.
The processor 304 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application-Specific Integrated Circuit (ASIC), or one or more ics for controlling the execution of programs according to the present invention. The processor 304 may implement the graph cutting method provided by the embodiment of fig. 1 described above by running software programs and/or modules stored in the memory 303 and calling data stored in the memory 303.
The communication bus 305 may include a path for communicating information between the aforementioned components.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method of cropping a map, the method comprising:
acquiring the size of an image display area;
determining a cutting scale based on the size of a target image of a to-be-cut picture and the size of the image display area;
performing cropping on the target image based on the cropping proportion to obtain a plurality of sub-images including the target sub-image, wherein the ratio of the sizes of two adjacent sub-images in the plurality of sub-images is the cropping proportion, and the difference between the size of the target sub-image and the size of the image display area is smaller than a first preset value;
the size of the target image comprises the width and the height of the target image, and the size of the image display area comprises the width and the height of the image display area;
the determining of the cutting scale based on the size of the target image of the to-be-cut picture and the size of the image display area comprises the following steps:
dividing the width of the target image by the width of the image display area to obtain a first numerical value;
dividing the height of the target image by the height of the image display area to obtain a second numerical value;
when the first numerical value is larger than the second numerical value, determining the map cutting proportion based on the width of the target image and the width of the image display area;
when the first numerical value is smaller than the second numerical value, determining the map cutting scale based on the height of the target image and the height of the image display area.
2. The method of claim 1, wherein said determining the cut scale based on the width of the target image and the width of the image display area comprises:
determining an optimal solution of a first proportional calculation function when the first proportional calculation function reaches a minimum value under a first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The first scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the width of the target image.
3. The method of claim 1, wherein said determining the cut scale based on the height of the target image and the height of the image display area comprises:
determining an optimal solution of a second proportion calculation function when the second proportion calculation function reaches a minimum value under a first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmIs the height of the image display area, HpIs the height of the target image.
4. The method of claim 1, wherein said cropping the target image based on the cropping scale to obtain a plurality of sub-images including an initial sub-image, comprises:
determining the number M of the cut pictures based on the cut picture proportion, the size of the target image and a preset size, wherein the preset size is the minimum image size supporting display;
and cutting the target image into the M sub-images based on the cutting scale.
5. The method of claim 4, wherein the size of the target image comprises a width of the target image, the size of the image display area comprises a width of the image display area, the cut scale is determined based on the width of the target image and the width of the image display area, and the preset size comprises a preset width;
determining the number M of the cutting images based on the cutting image proportion, the size of the target image and a preset size, wherein the determining comprises the following steps:
determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the width of the target image and the preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
Said first number calculation function:
Figure FDA0003034006370000021
wherein N is a non-negative integer set, WpAnd b1 is the preset width, wherein x is the width of the target image, x is the scale of the cutting chart, and b is the preset width.
6. The method of claim 4, wherein the size of the target image comprises a height of the target image, the size of the image display area comprises a height of the image display area, the cut scale is determined based on the height of the target image and the height of the image display area, and the preset size comprises a preset height;
determining the number M of the cutting images based on the cutting image proportion, the size of the target image and a preset size, wherein the determining comprises the following steps:
determining an optimal solution of a second number calculation function when the second number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
The second number calculates a function:
Figure FDA0003034006370000031
wherein N is a non-negative integer set, HpIs the height of the target image, x is the cut scale, and b2 is the preset height.
7. The method of claim 1, wherein after the cropping the target image based on the cropping scale to obtain a plurality of sub-images comprising a target sub-image, further comprising:
when a display instruction of the target image is detected, selecting the target sub-image from the plurality of sub-images;
and displaying the selected target sub-image in the image display area.
8. The method of claim 7, wherein selecting the target sub-image from the plurality of sub-images comprises:
selecting the target sub-image directly from the plurality of sub-images; alternatively, the first and second electrodes may be,
randomly selecting one sub-image from the plurality of sub-images, and judging whether the selected sub-image is the target sub-image; and when the selected sub-image is not the target sub-image and a switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
9. An apparatus for cutting a drawing, the apparatus comprising:
the acquisition module is used for acquiring the size of an image display area;
the determining module is used for determining the cutting scale based on the size of the target image of the to-be-cut picture and the size of the image display area;
the map cutting module is used for cutting the target image based on the map cutting proportion to obtain a plurality of sub images containing the target sub images, the ratio of the sizes of two adjacent sub images in the plurality of sub images is the map cutting proportion, and the difference value between the size of the target sub image and the size of the image display area is smaller than a first preset value;
the size of the target image comprises the width and the height of the target image, and the size of the image display area comprises the width and the height of the image display area; the determining module comprises:
the first calculation unit is used for dividing the width of the target image by the width of the image display area to obtain a first numerical value;
the second calculation unit is used for dividing the height of the target image by the height of the image display area to obtain a second numerical value;
a first determination unit configured to determine the map cutting scale based on a width of the target image and a width of the image display area when the first numerical value is larger than the second numerical value;
a second determination unit configured to determine the map cutting scale based on a height of the target image and a height of the image display area when the first value is smaller than the second value.
10. The apparatus of claim 9, wherein the first determining unit is to:
determining an optimal solution of a first proportional calculation function when the first proportional calculation function reaches a minimum value under a first constraint condition based on the width of the target image and the width of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The first scale calculation function: f (x) ═ Wm*xn-Wp
Wherein a is a second preset value, N is a non-negative integer set, and WmIs the width of the image display area, WpIs the target mapThe width of the image.
11. The apparatus of claim 9, wherein the second determination unit is to:
determining an optimal solution of a second proportion calculation function when the second proportion calculation function reaches a minimum value under a first constraint condition based on the height of the target image and the height of the image display area; determining the optimal solution as the cut map scale;
the first constraint condition is: f (x) is more than or equal to 0, x is more than or equal to 1 and less than or equal to a, and N belongs to N
The second proportional calculation function: (x) Hm*xn-Hp
Wherein a is a second predetermined value, N is a set of nonnegative integers, HmIs the height of the image display area, HpIs the height of the target image.
12. The apparatus of claim 9, wherein the graph cutting module comprises:
a third determining unit, configured to determine the number M of the cut pictures based on the cut picture proportion, the size of the target image, and a preset size, where the preset size is a minimum image size supporting display;
and the map cutting unit is used for cutting the target image into the M sub-images based on the map cutting proportion.
13. The apparatus of claim 12, wherein the size of the target image comprises a width of the target image, the size of the image display area comprises a width of the image display area, the cut scale is determined based on the width of the target image and the width of the image display area, and the preset size comprises a preset width; the third determination unit is configured to:
determining an optimal solution of the first number calculation function when the first number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the width of the target image and the preset width; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
Said first number calculation function:
Figure FDA0003034006370000051
wherein N is a non-negative integer set, WpAnd b1 is the preset width, wherein x is the width of the target image, x is the scale of the cutting chart, and b is the preset width.
14. The apparatus of claim 12, wherein the size of the target image comprises a height of the target image, the size of the image display area comprises a height of the image display area, the cut scale is determined based on the height of the target image and the height of the image display area, and the preset size comprises a preset height; the third determination unit is configured to:
determining an optimal solution of a second number calculation function when the second number calculation function reaches a minimum value under a second constraint condition based on the map cutting proportion, the height of the target image and the preset height; determining the optimal solution as the number M of the tangent graphs;
the second constraint condition is: g (N) is not less than 0, N is equal to N
The second number calculates a function:
Figure FDA0003034006370000061
wherein N is a non-negative integer set, HpIs the height of the target image, x is the cut scale, and b2 is the preset height.
15. The apparatus of claim 9, wherein the apparatus further comprises:
a selection module, configured to select the target sub-image from the plurality of sub-images when a display instruction of the target image is detected;
and the display module is used for displaying the selected target sub-image in the image display area.
16. The apparatus of claim 15, wherein the selection module comprises:
a first selection unit for directly selecting the target sub-image from the plurality of sub-images; alternatively, the first and second electrodes may be,
a second selecting unit, configured to select any one of the multiple sub-images, and determine whether the selected sub-image is the target sub-image; and when the selected sub-image is not the target sub-image and a switching instruction of the selected sub-image is received, returning to the step of randomly selecting one sub-image from the plurality of sub-images until the selected sub-image is the target sub-image.
CN201611076020.2A 2016-11-29 2016-11-29 Picture cutting method and device Active CN108122192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611076020.2A CN108122192B (en) 2016-11-29 2016-11-29 Picture cutting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076020.2A CN108122192B (en) 2016-11-29 2016-11-29 Picture cutting method and device

Publications (2)

Publication Number Publication Date
CN108122192A CN108122192A (en) 2018-06-05
CN108122192B true CN108122192B (en) 2021-06-18

Family

ID=62226031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076020.2A Active CN108122192B (en) 2016-11-29 2016-11-29 Picture cutting method and device

Country Status (1)

Country Link
CN (1) CN108122192B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112585939B (en) * 2019-12-31 2023-11-17 深圳市大疆创新科技有限公司 Image processing method, control method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944132A (en) * 2010-09-30 2011-01-12 武汉大学 Tile map data organization method
CN102063258A (en) * 2010-12-31 2011-05-18 山东大学 Self-adaptive display method for image on display terminals with different sizes
CN103678501A (en) * 2013-11-18 2014-03-26 航天恒星科技有限公司 Extra-large remote sensing image display method based on pyramids and image rendering engine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3016989B1 (en) * 2014-01-29 2016-01-15 St Microelectronics Grenoble 2 METHOD OF COMBINED TRANSFORMATION OF SCALE AND ASPECT RATIO OF IMAGE

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944132A (en) * 2010-09-30 2011-01-12 武汉大学 Tile map data organization method
CN102063258A (en) * 2010-12-31 2011-05-18 山东大学 Self-adaptive display method for image on display terminals with different sizes
CN103678501A (en) * 2013-11-18 2014-03-26 航天恒星科技有限公司 Extra-large remote sensing image display method based on pyramids and image rendering engine

Also Published As

Publication number Publication date
CN108122192A (en) 2018-06-05

Similar Documents

Publication Publication Date Title
US10445914B2 (en) Method and apparatus for contextually varying imagery on a map
RU2632128C1 (en) Method and system of downloading image fragments to client device
US20140362118A1 (en) Method and System for Displaying Imagery as a Wallpaper on a Computing Device
CN110990516A (en) Map data processing method and device and server
CN107809339B (en) Link display method, link generation method and device
EP3108453B1 (en) Method for selecting data files for downloading
CN111444455A (en) Browser compatible method, system, computer device and storage medium
DE202014010894U1 (en) System for disambiguation of the object selection
US11727080B2 (en) Weighted panels and panel group for responsive design system
CN110609718A (en) Picture loading method and device, electronic equipment and readable storage medium
CN108122192B (en) Picture cutting method and device
RU2632150C1 (en) Method and system of downloading the image to the customer's device
CN110837368B (en) Data processing method and device and electronic equipment
CN114186077A (en) Knowledge graph display method and system
CN113592714A (en) Image amplification method, module and system
CN110598026B (en) Display method and device of picture list and terminal equipment
CN109683798B (en) Text determination method, terminal and computer readable storage medium
CN104793837A (en) Picture generation method and device
CN107766436B (en) Address associated data processing method, user terminal and server
JP2013120201A (en) Information processing apparatus and method
CN115577203A (en) Method, device and application for rendering geoJson map boundary data based on leaf let map
EP4191432A1 (en) Method and apparatus for gis point data rendering, computer device, and storage medium
CN113888673A (en) Map editing method, system, device, computing equipment and storage medium
JP2010134887A (en) Map display device and method for displaying area using comparison object
CN110059281B (en) Picture display method, device, terminal and computer readable 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
GR01 Patent grant
GR01 Patent grant