A method and apparatus for displaying image data
By adaptively adjusting the relative size of the display area and the presentation area, and based on the density of the scattered data, the scattered data at the target location is magnified, which solves the problem of poor visualization effect caused by dense data or excessive loading in big data visualization, and achieves efficient image data display.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2026-03-06
AI Technical Summary
Traditional data visualization methods cannot effectively handle big data, especially when the data is intensive or the loading volume is too large, resulting in problems such as unclear viewing or waste of resources.
By adaptively adjusting the relative size of the display area and the presentation area, and based on the density of the scattered data, the scattered data at the target location is enlarged, and the base map or display radius is adaptively adjusted to achieve data display in the form of an image.
It improves the visualization of big data, solves the problem of being unable to view image data due to the large amount of data loaded, and achieves efficient utilization of resources.
Smart Images

Figure CN114911962B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of big data visualization technology, and in particular relates to an adaptive display method and apparatus for image data. Background Technology
[0002] Currently, massive amounts of data are generated every moment, and how to collect, refine, and utilize this data is a challenge. Traditional data visualization represents each data point in the database as a single image element, while also representing the various attribute values of the data in a multidimensional form, allowing for observation of the data from different dimensions and thus enabling deeper observation and analysis.
[0003] Data visualization primarily uses graphical means to clearly and effectively convey and communicate information; it's simply a different way of presenting data. However, big data visualization involves massive amounts of data, diverse types, and low value density, requiring storage, aggregation, and preprocessing. Traditional data visualization methods cannot be accurately applied to big data processing. For example, when using a fisheye lens to view data details during big data visualization, the following problems often occur: the data is too densely packed in the display area, making it difficult to see clearly; or, the large amount of data loaded during visualization affects the viewing function. Summary of the Invention
[0004] This application provides a method and apparatus for displaying image data. According to a first aspect of this application, a method for displaying image data is provided, the method comprising: based on a triggering event at a target location within a display area, obtaining the density of scattered data in an area corresponding to the target location; determining, at least based on the density of the scattered data, the amount of scattered data that can be displayed in the display area corresponding to the target location; wherein the display area is a portion of the display area; and by adjusting the relative size of the background image on the display area and the display area itself, enlarging and displaying the displayable scattered data in the display area in the form of an image within the display area.
[0005] Optionally, determining the number of scattered data points that can be displayed in the display area corresponding to the target location based at least on the density of the scattered data points includes: determining the display area based on the target location and the display radius; determining the number of data points to be displayed in the display area based on the specified image display size and display distortion corresponding to the scattered data points; and determining the number of scattered data points that can be displayed in the display area based on the density of the scattered data points and the number of data points to be displayed.
[0006] Optionally, the step of magnifying and displaying the scatter data in the display area in the form of an image by adjusting the relative size of the background image on the display area and the display area includes: adjusting the scaling factor of the background image on the display area to magnify and display the scatter data in the form of an image in the display area.
[0007] Optionally, determining the number of scattered data points that the display area can display based on the density of the scattered data points and the number of data points to be displayed includes: determining the distance between the scattered data point and the target location for any scattered data point within the area corresponding to the target location; sorting the scattered data points according to the order of the distances; and determining the scattered data points with the smallest distances in the sorting results as scattered data points to be displayed in image form within the display area. The method further includes: determining the scattered data points in the sorting results other than the scattered data points with the smallest distances in the sorting results as scattered data points to be displayed in scattered form.
[0008] Optionally, the method further includes: for any scattered data within the display area: determining a first display position of the scattered data based on the scaling factor of the background image on the display area; calculating the distance between the first display position and the target position, and determining the magnification factor of the scattered data based on the distance and the display distortion; and determining a second display position of the scattered data based on the magnification factor and the first display position.
[0009] The method further includes: calculating the scatter display position of each scatter data point outside the display area based on the scaling factor of the base map on the display area.
[0010] Optionally, determining the scatter data that the display area corresponding to the target location can display based at least on the density of the scatter data includes: determining the display radius based on the display distortion, the specified image display size corresponding to the scatter data, and the density of the scatter data; and determining the display area based on the target location and the display radius to determine the scatter data that the display area can display.
[0011] Optionally, the step of magnifying and displaying the scatter data that can be displayed in the display area in the form of an image by adjusting the relative size of the background image on the display area and the display area includes: determining the display radius of the display area so as to magnify and display the scatter data that can be displayed in the form of an image within the display area.
[0012] Optionally, determining the display area based on the target location and the display radius to determine the scattered data that the display area can display includes: obtaining the location information of any scattered data within the area corresponding to the target location; determining whether the location information of the scattered data is located within the display area; if the scattered data is located within the display area, then determining it as scattered data displayed in the form of an image within the display area; the method further includes: if the scattered data is located outside the display area, then determining it as scattered data displayed in the form of scattered points outside the display area.
[0013] Optionally, the method further includes: for any scatter data point within the display area: determining the distance between the scatter data point and the target location; determining the magnification factor corresponding to the scatter data point based on the distance and the display distortion; and determining the display location of the scatter data point based on the magnification factor and the location information of the scatter data point.
[0014] To achieve the above objectives, a second aspect of the present application provides an image data display device, wherein the device includes: an acquisition module, configured to acquire the density of scattered data in an area corresponding to a target location based on a triggering event within a display area; a determination module, configured to determine, at least based on the density of the scattered data, the amount of scattered data that can be displayed in the display area corresponding to the target location; wherein the display area is a portion of the display area; and an adjustment module, configured to enlarge and display the displayable scattered data in the display area in the form of an image by adjusting the relative size of the background image on the display area and the display area.
[0015] To achieve the above objectives, a computer-readable medium is provided according to a third aspect of the present application, having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in the first aspect.
[0016] This application provides a method and apparatus for displaying image data. The method involves first obtaining the density of scattered data points in the area corresponding to a target location within a display area, based on a triggering event at that target location; then, determining the amount of scattered data that the display area corresponding to the target location can display, at least based on the density of the scattered data; wherein the display area is a portion of the display area; and finally, by adjusting the relative size of the background image and the display area, the scattered data that can be displayed is enlarged and displayed as an image within the display area. This allows for adaptive display of image data at a specified location according to user needs, thus solving the problem of visualizing large amounts of data. Attached Figure Description
[0017] The following sections will describe some specific embodiments of this application in detail by way of example and not limitation, with reference to the accompanying drawings. The same reference numerals in the drawings denote the same or similar parts or components. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the drawings:
[0018] Figure 1 A flowchart illustrating a method for displaying image data according to an embodiment of this application;
[0019] Figure 2 A flowchart illustrating a method for displaying image data based on an adaptively adjusted base map, as provided in another embodiment of this application;
[0020] Figure 3 This is a flowchart illustrating the process of determining the scatter data that can be displayed in the display area based on the adaptive base map adjustment scheme in this application;
[0021] Figure 4 This is a flowchart illustrating the process of determining the magnification factor and display position of scatter data in the adaptive adjustment base map scheme of this application;
[0022] Figure 5 A flowchart illustrating a method for displaying image data based on an adaptive adjustment of the display radius, as provided in another embodiment of this application;
[0023] Figure 6 This is a flowchart illustrating the process of determining the scatter data that can be displayed in the display area in the adaptive adjustment display radius scheme of this application;
[0024] Figure 7 This is a schematic diagram of the structure of an image data display device provided in an embodiment of this application. Detailed Implementation
[0025] To make the objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] like Figure 1 The diagram shown is a flowchart illustrating a method for displaying image data according to an embodiment of this application. A method for displaying image data includes:
[0027] S101, based on the trigger of the target location within the display area, obtain the density of scattered data in the area corresponding to the target location;
[0028] S102, at least based on the density of the scattered data, determine the scattered data that the display area corresponding to the target location can display; wherein, the display area is a part of the display area;
[0029] S103, by adjusting the relative size of the background image on the display area and the display area, enlarges and displays the scatter data that can be displayed in the form of an image within the display area.
[0030] In S101, the user triggers the display of a target location. Based on the user's trigger, the system obtains the density of the scattered data in the area corresponding to the target location. The area corresponding to the target location is used to indicate the surrounding area, including the target location.
[0031] In S102, the visualization of image data can be achieved by adaptively adjusting the base map; alternatively, the visualization of image data can be achieved by adaptively adjusting the display radius.
[0032] In the adaptive adjustment of the base map: determine the scattered data that can be displayed in the display area corresponding to the target location, including: first determine the number of data to be displayed in the display area, and then determine the scattered data that can be displayed in the display area based on the number of data to be displayed in the display area and the density of the scattered data;
[0033] In the adaptive adjustment of the display radius scheme: determining the scattered data that the display area corresponding to the target position can display includes: determining the display radius based on the display distortion of the magnifying glass, the specified image display size corresponding to the scattered data, and the density of the scattered data; determining the display area based on the target position and the display radius, so as to determine the scattered data that the display area can display.
[0034] Here, the display area is used to indicate the area centered on the target location and displaying scattered data at that target location.
[0035] In S103, in the adaptive adjustment of the base map scheme: the display area size remains unchanged, and the scattered data that can be displayed in the display area is magnified in the form of an image by adjusting the size of the base map on the display area.
[0036] In the adaptive adjustment of the display radius scheme: the size of the base map on the display area remains unchanged, and the scattered data that can be displayed is enlarged in the form of an image within the display area by adjusting the size of the display area.
[0037] This application embodiment is based on triggering a target location within the display area to obtain the density of scattered data in the area corresponding to the target location; then, it determines the amount of scattered data that can be displayed in the display area corresponding to the target location based at least on the density of the scattered data; finally, by adjusting the relative size of the base map and the display area, it enlarges and displays the displayed scattered data in the form of an image within the display area. Therefore, it is possible to achieve a visual display of large amounts of data at the target location, improving the visualization effect and solving the problem of resource waste caused by the inability to view image data due to the large amount of data loaded.
[0038] A method that adaptively adjusts the base map is used to visualize image data.
[0039] like Figure 2 The diagram shown is a flowchart illustrating a method for displaying image data based on an adaptive adjustment of the base map, according to another embodiment of this application.
[0040] The embodiments of this application are as follows: Figure 1 This method, based on an optimized implementation of the previous example, is a further optimization of the image data display method using an adaptive base map adjustment scheme. It includes at least the following steps:
[0041] S201, based on the trigger of the target location within the display area, obtain the density of scattered data in the area corresponding to the target location;
[0042] S202, at least based on the density of the scattered data, determine the scattered data that the display area corresponding to the target location can display; wherein, the display area is a part of the display area;
[0043] S203, Adjust the scaling factor of the background image on the display area to enlarge and display the scatter data that can be displayed in the display area as an image.
[0044] Among them, steps S201 and S202 are respectively with Figure 1 The processes of steps S101 and S102 are similar and will not be repeated here.
[0045] In step S203, while keeping the size of the display area unchanged, the scaling factor of the base map is adaptively adjusted so that the scattered data within the display area are displayed at their respective new positions with their respective magnification factors; the scattered data outside the display area are displayed at their new positions in the form of scattered points.
[0046] It should be noted that if the scattered data in the area corresponding to the target location is very dense, the system can adaptively distribute the dense scattered data according to the number of data points to be displayed in the display area, thus obtaining the scattered data that can be displayed in the display area. If the scattered data in the area corresponding to the target location is very sparse, the system will adaptively cluster the sparse scattered data according to the number of data points to be displayed in the display area, thus obtaining the scattered data that can be displayed in the display area.
[0047] In a preferred embodiment, for step S202, the scattered data that can be displayed in the display area corresponding to the target location can be determined based on the display radius and the density of the scattered data; specifically as follows: Figure 3 The diagram shown is a flowchart illustrating the process of determining the scatter data that can be displayed in the display area based on the adaptive base map adjustment scheme of this application.
[0048] Determining the scatter data that can be displayed in the display area includes at least the following steps:
[0049] S301, Determine the display area based on the target location and display radius;
[0050] S302, based on the specified image display size and display distortion degree corresponding to the scatter data, determine the number of data to be displayed in the display area;
[0051] S303, determine the amount of scattered data that can be displayed within the display area based on the density of the scattered data and the number of data to be displayed;
[0052] In S301, the display area that the magnifying glass can display is determined based on the display radius, with the target location as the center. Here, the magnifying glass can be a fisheye magnifying glass, or other types of magnifying glasses.
[0053] In S302, the image display size corresponding to each scatter point in the scatter data can be the same or different; there are no strict limitations here. Generally, once the magnifying glass is determined, its magnification is also determined. Magnification corresponds to the degree of distortion; when the magnifying glass is determined, the degree of distortion is also determined.
[0054] The formula for calculating the number of data N displayed within the display area is as follows (1):
[0055]
[0056] Where W represents the area of the display area, P represents the display distortion of the display area, S represents the specified image display size corresponding to the scatter data, and E, C, and D are all constants.
[0057] In step S303, for any scattered data point within the area corresponding to the target location, the distance between the scattered data point and the target location is determined; the scattered data points are sorted according to the order of their distances; the scattered data points with the smallest distances in the sorting result are designated as scattered data points to be displayed as images within the display area; the scattered data points other than the scattered data points with the smallest distances in the sorting result are designated as scattered data points to be displayed as scattered points. For example: the scattered data points are sorted in ascending order of distance, the top N scattered data points in the sorting result are added to the image display list, and the scattered data points in the image display list are used as scattered data points to be displayed as images within the display area. The other scattered data points besides the top N scattered data points in the sorting result are added to the scattered point display list, and the scattered data points in the scattered point display list are used as scattered data points to be displayed as scattered points outside the display area.
[0058] In a preferred embodiment, for step S203, the magnification and display position of the scatter data can be adaptively adjusted based on the scaling factor of the base map; specifically as follows: Figure 4 The diagram shown is a flowchart illustrating the process of determining the magnification factor and display position of scattered data in the adaptive base map adjustment scheme of this application.
[0059] Determining the magnification factor and display position of scatter data involves at least the following steps:
[0060] S401, for any scattered data point within the display area: determine the first display position of the scattered data point based on the scaling factor of the background image on the display area; calculate the distance between the first display position and the target position, and determine the magnification factor of the scattered data point based on the distance and the display distortion; determine the second display position of the scattered data point based on the magnification factor and the first display position.
[0061] S402, based on the scaling factor of the background image on the display area, calculate the scatter point display position of each scatter point data in the scatter point data displayed in scatter point form outside the display area.
[0062] The magnification of the scatter plot data is inversely proportional to the distance (the distance between the first display position and the target position). The magnification of the scatter plot data is greatest at the target position, which is the distortion of the display like a magnifying glass; the magnification of the scatter plot data around the target position gradually decreases as the distance from the target position gradually increases. The magnification of each scatter plot data point within the display area is uncertain.
[0063] The scaling factor of the background image in the display area is the same for each scatter point. Because the scaling factor of the background image in the display area varies, the positions of all scatter points within the display area will change, including those in the image display list and the scatter point display list.
[0064] It should be noted that the algorithm used to calculate the second display position of the scattered data within the display area and the magnification of the scattered data is the magnifying glass distortion algorithm.
[0065] At the zoom level of the display area's base map, the N scattered data points within the display area are displayed at their respective magnification levels in their new positions; the scattered data points outside the display area are displayed as scattered points in their new positions.
[0066] This application embodiment enables the visualization of large-scale image data by adaptively controlling the amount of data displayed within the display area and the scaling factor of the base map, thereby improving the visualization effect of big data and solving the problem of resource waste caused by the inability to view image data due to the large amount of data loaded.
[0067] The following section will provide a detailed explanation of the adaptive adjustment of the base map as a method for displaying image data, using specific applications as examples.
[0068] First, based on the display radius R, image display size S, and display distortion P, the number of data points N to be displayed within the display area is automatically calculated. Then, with the current mouse point as the center, the scaling factor of the background image in the display area is automatically calculated when displaying N data points within the display radius R. Finally, with the background image scaling factor determined, the N scattered data points within the R range are displayed as data images at their respective magnification factors and new positions, while other scattered data points are still displayed as scattered points at their new positions.
[0069] The specific process is as follows:
[0070] Step 1: Set the display distortion P; display radius R; image display size S.
[0071] Step 2: Calculate the number of data N displayed in the display area according to formula (1).
[0072] Step 3: Based on the feature region W' of the N data points to be displayed in the image and the display area W of the N data points, calculate the scaling factor L of the background image of the display area.
[0073] Step 4: Based on the magnifying glass distortion algorithm, calculate the magnification factor of each of the N data points of the image to be displayed, as well as the new position of each of the N data points of the image to be displayed.
[0074] Step 5: Obtain images of N data points and display them at a new location with a specified magnification.
[0075] Step 6: Based on the scaling factor L of the base map, calculate the new location of other scattered data outside the display area, and display the scattered data at the new location.
[0076] The visualization of image data is achieved by adaptively adjusting the display radius.
[0077] like Figure 5 The diagram shown is a flowchart illustrating a method for displaying image data based on an adaptive adjustment of the display radius, according to another embodiment of this application.
[0078] The embodiments of this application are as follows: Figure 1 This method for displaying image data based on an adaptive adjustment of the display radius is further optimized from the previous embodiment and includes at least the following steps:
[0079] S501, based on the trigger of the target location within the display area, obtain the density of scattered data in the area corresponding to the target location;
[0080] S502, at least based on the density of the scattered data, determine the scattered data that the display area corresponding to the target location can display; wherein, the display area is a part of the display area;
[0081] S503, determine the display radius of the display area, so as to display the scattered data that can be displayed in the form of images within the display area.
[0082] Among them, steps S501 and S502 are respectively with Figure 1 The processes of steps S101 and S102 are similar and will not be repeated here.
[0083] In step S503, while keeping the size of the display area base map unchanged, the size of the display radius is adaptively adjusted so that the scattered data within the display area are displayed at their respective new positions with their respective magnifications; the scattered data outside the display area are displayed in their original positions in the form of scattered points.
[0084] In a preferred embodiment, for step S502, the scatter data that the display area corresponding to the target location can display can be determined based on the display distortion of the display area, the specified image display size corresponding to the scatter data, and the density of the scatter data. Specifically, as follows... Figure 6 The diagram shown is a flowchart illustrating the process of determining the scatter data that can be displayed in the display area in the adaptive adjustment display radius scheme of this application.
[0085] Determining the scatter data that can be displayed in the display area includes at least the following steps:
[0086] S601, determine the display radius based on the display distortion, the specified image display size corresponding to the scatter data, and the density of the scatter data;
[0087] S602, determine the display area based on the target location and display radius, so as to determine the scattered data that can be displayed in the display area.
[0088] In S601, the formula for calculating the radius R is shown in equation (2) below:
[0089]
[0090] Where P represents the display distortion of the display area, and S represents the specified image display size corresponding to the scatter data. This represents the density of the scatter data; F, C, and D are all constants.
[0091] In S602, the location information of any scattered data within the area corresponding to the target location is obtained; it is determined whether the location information of the scattered data is located within the display area; if the scattered data is located within the display area, it is determined to be scattered data displayed in the form of an image within the display area; if the scattered data is located outside the display area, it is determined to be scattered data displayed in the form of scattered points outside the display area.
[0092] For example: For each scatter data point within the target location area, determine whether the location information of the scatter data point is within the display area. Add the scatter data point within the display area to the image display list, and add the scatter data point outside the display area to the scatter display list. The scatter data point in the image display list is displayed as an image in the display area, and the scatter data point in the scatter display list is displayed as a scatter point outside the display area.
[0093] In a preferred embodiment, for step S503, the magnification and display position of the scattered data can be adaptively adjusted based on the display distortion of the display area and the position of the scattered data within the display area. Specifically, as described below, determining the magnification and display position of the scattered data based on the adaptive adjustment of the display radius scheme of this application includes at least the following steps:
[0094] For any scattered data point within the display area: determine the distance between the scattered data point and the target location; determine the magnification factor corresponding to the scattered data point based on the distance and the display distortion; determine the display position of the scattered data point based on the magnification factor and the location information of the scattered data point.
[0095] For any scattered data point outside the display area: display the scattered data point in its original location.
[0096] The magnification factor corresponding to scatter data is inversely proportional to the distance (the distance between the scatter data and the target position).
[0097] It should be noted that the algorithm used to calculate the display position of scattered data within the display area and the magnification of the scattered data is the magnifying glass distortion algorithm.
[0098] Therefore, scattered data within the display area are displayed as data images at a specific magnification in the new display location, while scattered data outside the display area are displayed as scattered points in the original location.
[0099] The following section will provide a detailed explanation of the method for adaptively adjusting the display radius to display image data, using specific applications as examples.
[0100] First, using the current mouse point as the center, calculate the density of the scatter data. Based on the density of the scatter data Given the image display size S and display distortion P, calculate the display radius R. Then, with the current mouse point as the center, display the scattered data within the radius R as images at the new location with their respective magnifications, while other scattered data remain displayed as scattered points in their original locations.
[0101] The specific process is as follows:
[0102] Step 1: Set the display distortion P; image display size S.
[0103] Step 2: Calculate the density of the scatter data.
[0104] Step 3: Based on formula (2), determine the density of the scatter data. Given the image display size S, display distortion P, calculate the display radius R.
[0105] Step 4: For any scatter data point: Based on the location information of the scatter data point, detect whether the scatter data point is within the display area. If not, it will still be displayed in the original location as a scatter point.
[0106] Step 5: If the scattered data is within the display area, then calculate the magnification of the scattered data and its new position based on the magnifying glass distortion algorithm.
[0107] Step 6: Obtain an image of the scatter data of the display area and display it at the new location with a specified magnification.
[0108] This application implements adaptive adjustment of the display radius of the display area, thereby controlling the display range and the amount of display data, thus enabling the visualization of large-scale image data, improving the visualization effect of big data, and solving the problem of resource waste caused by the inability to view image data due to the large amount of scattered data loading.
[0109] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0110] like Figure 7 The diagram shown is a structural schematic of an image data display device provided in an embodiment of this application. An image display device 700 includes: an acquisition module 701, configured to acquire the density of scattered data in an area corresponding to a target location based on a trigger within a display area; a first determination module 702, configured to determine, at least based on the density of the scattered data, the amount of scattered data that can be displayed in the display area corresponding to the target location; wherein the display area is a portion of the display area; and an adjustment module 703, configured to enlarge and display the displayable scattered data in the display area in the form of an image by adjusting the relative size of the background image on the display area and the display area itself.
[0111] In an optional embodiment, the first determining module includes: a first determining unit, configured to determine the display area based on the target location and the display radius; a second determining unit, configured to determine the number of data to be displayed within the display area based on the specified image display size and display distortion corresponding to the scatter data; and a third determining unit, configured to determine the amount of scatter data that can be displayed within the display area based on the density of the scatter data and the number of data to be displayed.
[0112] In an optional embodiment, the adjustment module includes an adjustment unit for adjusting the scaling factor of the background image on the display area, so as to enlarge and display the scatter data that can be displayed in the display area in the form of an image.
[0113] In an optional embodiment, the third determining unit includes: a first determining subunit, configured to determine the distance between the scattered data and the target location for any scattered data within the area corresponding to the target location; a sorting unit, configured to sort the scattered data according to the order of the distances; and a second determining subunit, configured to determine the scattered data with smaller distances in the sorting result as scattered data to be displayed in the form of images within the display area.
[0114] In an optional embodiment, the device further includes: a second determining module, configured to determine the scattered data in the sorting result, excluding the scattered data with small distances in the data display quantity, as scattered data to be displayed in scattered form.
[0115] In an optional embodiment, the device further includes: a third determining module, configured to, for any scatter data within the display area,: determine a first display position of the scatter data based on the scaling factor of the background image on the display area; calculate the distance between the first display position and the target position, and determine the magnification factor of the scatter data based on the distance and the display distortion; and determine a second display position of the scatter data based on the magnification factor and the first display position; and a calculation module, configured to, based on the scaling factor of the background image on the display area, calculate the scatter display position of each scatter data in the scatter data displayed in scatter form outside the display area.
[0116] In an optional embodiment, the first determining module includes: a fourth determining unit, configured to determine the display radius based on the display distortion, the specified image display size corresponding to the scatter data, and the density of the scatter data; and a fifth determining unit, configured to determine the display area based on the target location and the display radius, so as to determine the scatter data that the display area can display.
[0117] In an optional embodiment, the adjustment module includes: a determining unit, configured to determine the display radius of the display area, so as to enlarge and display the scatter data that can be displayed in the display area in the form of an image.
[0118] In an optional embodiment, the fifth determining unit includes: an acquisition subunit, configured to acquire the location information of any scattered data within the area corresponding to the target location; a first determining subunit, configured to determine whether the location information of the scattered data is located within the display area; and a second determining subunit, configured to determine, if the scattered data is located within the display area, that it is scattered data displayed in the form of an image within the display area.
[0119] In an optional embodiment, the device further includes a sixth determining module, configured to determine, if the scatter data is located outside the display area, as scatter data displayed in scatter form outside the display area.
[0120] In an optional embodiment, the device further includes: a seventh determining module, configured to: determine the distance between the scattered data and the target location for any scattered data within the display area; determine the magnification factor corresponding to the scattered data based on the distance and the display distortion; and determine the display position of the scattered data based on the magnification factor and the location information of the scattered data.
[0121] The above-described apparatus can execute the image display method provided in an embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the image display method. Technical details not described in detail in this embodiment can be found in the image display method provided in the embodiments of this application.
[0122] This application also provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the image display method described in this application.
[0123] In addition to the methods and apparatus described above, embodiments of this application may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of this application described in the "Exemplary Methods" section above.
[0124] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0125] Furthermore, embodiments of this application may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of this application described in the "Exemplary Methods" section above.
[0126] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0127] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.
[0128] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0129] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.
[0130] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0131] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this application to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
[0132] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0133] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0134] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of presenting picture data, wherein, The method comprises: based on the trigger of the target position in the display area, obtaining the density of the scatter data in the area corresponding to the target position; determining the scatter data that can be displayed in the display area corresponding to the target position according to at least the density of the scatter data; wherein the display area belongs to a part of the display area, and the density is negatively correlated with the maximum distance of the scatter data that can be displayed in the display area corresponding to the target position from the target position; adjusting the relative size of the base map on the display area and the display area, and displaying the scatter data that can be displayed in the form of a picture in the display area.
2. The method of claim 1, wherein, The method comprises: determining the display area according to the target position and the display radius; determining the number of data displays in the display area based on the specified picture display size and the display distortion degree of the scatter data; determining the scatter data that can be displayed in the display area according to the density of the scatter data and the number of data displays.
3. The method of claim 2, wherein, The method comprises: adjusting the zoom factor of the base map on the display area to display the scatter data that can be displayed in the form of a picture in the display area.
4. The method of claim 2, wherein, The method comprises: determining the distance between any scatter data in the area corresponding to the target position and the target position; sorting the scatter data according to the size of the distance; determining the scatter data with small distance in the number of data displays in the sorting result as the scatter data displayed in the form of a picture in the display area. The method further comprises: determining the scatter data other than the scatter data with small distance in the number of data displays in the sorting result as the scatter data displayed in the form of a scatter.
5. The method of claim 4, further comprising: for any scatter data in the display area, determining a first display position of the scatter data based on the zoom factor of the base map on the display area; calculating the distance between the first display position and the target position, and determining the magnification of the scatter data based on the distance and the display distortion degree; determining a second display position of the scatter data based on the magnification and the first display position. The method further comprises: calculating the scatter display position of each scatter data displayed in the form of a scatter outside the display area based on the zoom factor of the base map on the display area.
6. The method of claim 1, wherein, The method comprises: determining the display radius according to the display distortion degree, the specified picture display size corresponding to the scatter data, and the density of the scatter data; The display area is determined according to the target position and the display radius, so as to determine the scatter data that can be displayed in the display area.
7. The method according to claim 1 or 6, characterized in that, The display area is adjusted by adjusting the relative size of the base map on the display area and the display area, and the scatter data that can be displayed is displayed in the display area in the form of a picture. The display radius of the display area is determined, so as to display the scatter data that can be displayed in the display area in the form of a picture.
8. The method of claim 6, wherein, The display area is determined according to the target position and the display radius, so as to determine the scatter data that can be displayed in the display area. The position information of any scatter data in the area corresponding to the target position is obtained. It is determined whether the position information of the scatter data is located in the display area. If the scatter data is located in the display area, the scatter data is determined to be displayed in the display area in the form of a picture. The method further comprises: If the scatter data is located outside the display area, the scatter data is determined to be displayed outside the display area in the form of a scatter.
9. The method of claim 8, wherein, Further comprising: For any scatter data in the display area, the distance between the scatter data and the target position is determined. Based on the distance and the display distortion, the magnification corresponding to the scatter data is determined; and based on the magnification and the position information of the scatter data, the display position of the scatter data is determined.
10. An apparatus for presenting picture data, wherein, The device comprises: An acquisition module is configured to acquire the density of scatter data at an area corresponding to a target position based on a trigger of the target position in a display area; A determination module is configured to determine scatter data that can be displayed in a display area corresponding to the target position according to at least the density of the scatter data; wherein the display area belongs to a partial area of the display area, and the density is negatively correlated with the maximum distance of the scatter data that can be displayed in the display area corresponding to the target position from the target position; An adjustment module is configured to display the scatter data that can be displayed in the display area in the form of a picture by adjusting the relative size of the base map on the display area and the display area.
Citation Information
Patent Citations
Picture displaying method, picture displaying device and mobile terminal
CN104850660A
Data display method and electronic equipment
CN113920006A