CN106599119B - Image data storage method and device - Google Patents

Image data storage method and device Download PDF

Info

Publication number
CN106599119B
CN106599119B CN201611089352.4A CN201611089352A CN106599119B CN 106599119 B CN106599119 B CN 106599119B CN 201611089352 A CN201611089352 A CN 201611089352A CN 106599119 B CN106599119 B CN 106599119B
Authority
CN
China
Prior art keywords
target
image data
image
tile
images
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
CN201611089352.4A
Other languages
Chinese (zh)
Other versions
CN106599119A (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.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft 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 Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN201611089352.4A priority Critical patent/CN106599119B/en
Publication of CN106599119A publication Critical patent/CN106599119A/en
Application granted granted Critical
Publication of CN106599119B publication Critical patent/CN106599119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Abstract

The embodiment of the application provides a method and a device for storing image data, wherein the method comprises the following steps: collecting a plurality of images; generating image data according to the plurality of images; extracting target image data with specified resolution from the image data; generating a tile image for the target image data, the tile image having corresponding image information; the tile images and the corresponding image information are stored, so that the tile images with corresponding resolution ratios can be stored according to actual requirements, the tile images with the corresponding resolution ratios can be found out according to different using requirements when the image data are used, and the using requirements of different fields on the image data with different resolution ratios are met.

Description

Image data storage method and device
Technical Field
The present disclosure relates to the field of data storage technologies, and in particular, to a method and an apparatus for storing image data.
Background
Currently, map services have been widely used in people's work and life, for example, road navigation, location search, and the like. The map service provider distributes the acquired data to the network, and the user can access the map server through a browser or special application software to acquire the map data, and then the map data is displayed on a Personal Computer (PC) or a handheld device.
Generally, the accuracy of map data provided by a map service provider can reach the meter level to the maximum, and through map service, a user can inquire the geographic positions of streets, shopping malls and buildings, can also find all nearby restaurants, schools, banks, parks and the like, and can basically meet daily requirements of people. However, in some special fields, for example, in the field of plant protection of unmanned aerial vehicles, due to the limitation of working fields and in order to ensure the working safety of plant protection unmanned aerial vehicles, the data accuracy of meter level is far from enough, and therefore, map data with higher accuracy and higher resolution needs to be acquired.
However, higher precision, higher resolution map data often means larger data size, for example, for high resolution images, the size of a single image data can even reach several G (gigabytes), which is almost close to the memory of a common personal computer and cannot be directly stored and displayed at all.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a storage method of image data and a storage apparatus of image data that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses a method for storing image data, including:
collecting a plurality of images;
generating image data according to the plurality of images;
extracting target image data with specified resolution from the image data;
generating a tile image for the target image data, the tile image having corresponding image information;
and storing the tile image and the corresponding image information.
Optionally, the step of extracting target video data with a specified resolution from the video data includes:
and resampling the image data to obtain target image data with specified resolution.
Optionally, the step of generating a tile image for the target video data includes:
determining the origin of coordinates of the target image data;
and segmenting the target image data into a plurality of tile images from the origin of coordinates.
Optionally, the tile image has a preset pixel size, and the step of segmenting the target image data into a plurality of tile images from the origin of coordinates includes:
and from the origin of coordinates, cutting the target image data into a plurality of tile images with the same pixel size according to a preset rule.
Optionally, the image information corresponding to the tile image includes: pixel coordinates, row numbers, column numbers, picture levels, picture formats, and pixel resolutions corresponding to the tile images.
Optionally, the method further comprises:
and displaying the target tile image corresponding to the current display area.
Optionally, the step of presenting the target tile image corresponding to the current display area includes:
extracting a target tile image corresponding to the current display area from the tile images;
presenting the target tile image in a designated display system.
Optionally, the step of extracting the target tile image corresponding to the current display area from the tile image includes:
determining a target picture level according to a current display scale coefficient of a specified display system;
calculating a corresponding target row number and a corresponding column number of a current display area in the target picture hierarchy;
and extracting the target tile image corresponding to the target row number and the target column number.
Optionally, the step of calculating a target row number and a column number corresponding to the current display area in the target picture hierarchy includes:
determining coordinate values of a plurality of vertexes of a current display area and a coordinate origin of image data corresponding to the tile image;
calculating the difference between the coordinate values of the plurality of vertexes and the coordinate origin respectively;
calculating the pixel coordinate of the current display area by adopting the difference value;
and determining the target row number and the target column number according to the pixel coordinates.
Optionally, the image data has corresponding coordinate information, and after the step of generating the image data according to the plurality of images, the method further includes:
and transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
In order to solve the above problem, an embodiment of the present application discloses a storage device for image data, including:
the image acquisition module is used for acquiring a plurality of images;
the image data generation module is used for generating image data according to the plurality of images;
the target image data extraction module is used for extracting target image data with specified resolution from the image data;
a tile image generation module, configured to generate a tile image for the target image data, where the tile image has corresponding image information;
and the storage module is used for storing the tile image and the image information corresponding to the tile image.
Optionally, the target image data extraction module includes:
and the target image data extraction submodule is used for resampling the image data to obtain target image data with specified resolution.
Optionally, the tile image generation module comprises:
the determining submodule is used for determining a coordinate origin of the target image data;
and the segmentation submodule is used for segmenting the target image data into a plurality of tile images from the origin of coordinates.
Optionally, the tile image has a preset pixel size, and the slicing sub-module includes:
and the segmentation unit is used for segmenting the target image data into a plurality of tile images with the same pixel size according to a preset rule from the origin of coordinates.
Optionally, the image information corresponding to the tile image includes: pixel coordinates, row numbers, column numbers, picture levels, picture formats, and pixel resolutions corresponding to the tile images.
Optionally, the method further comprises:
and the target tile image display module is used for displaying the target tile image corresponding to the current display area.
Optionally, the target tile image presentation module comprises:
the target tile image extraction submodule is used for extracting a target tile image corresponding to the current display area from the tile image;
and the target tile image display sub-module is used for displaying the target tile image in a specified display system.
Optionally, the target tile image extraction sub-module includes:
the target picture level determining unit is used for determining a target picture level according to the current display scale coefficient of the specified display system;
the target row number and column number calculating unit is used for calculating a target row number and a target column number corresponding to the current display area in the target picture hierarchy;
and the target tile image extraction unit is used for extracting the target tile images corresponding to the target row numbers and the target column numbers.
Optionally, the target row number and column number calculating unit includes:
a determining subunit, configured to determine coordinate values of multiple vertices of the current display area and a coordinate origin of the image data corresponding to the tile image;
a difference value calculating subunit, configured to calculate difference values between the coordinate values of the multiple vertices and the origin of coordinates, respectively;
a pixel coordinate calculating subunit, configured to calculate a pixel coordinate of the current display area by using the difference value;
and the target row number and column number determining subunit is used for determining the target row number and column number according to the pixel coordinates.
Optionally, the image data has corresponding coordinate information, and the apparatus further includes:
and the transformation module is used for transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
Compared with the background art, the embodiment of the application has the following advantages:
according to the image data processing method and device, the image data are generated by collecting the images and according to the images, then the image data are extracted to obtain the target image data with the designated resolution, so that the target image data can be aimed at, tile images are generated, the tile images have corresponding image information, and then the tile images and the corresponding image information are stored, so that the tile images with the corresponding resolution can be stored according to actual requirements, the tile images with the corresponding resolution can be found according to different using requirements when the image data are used, and using requirements of different fields on the image data with different resolutions are met.
Drawings
Fig. 1 is a flowchart illustrating a first step of an image data storage method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of a second embodiment of a method for storing image data according to the present application;
fig. 3 is a block diagram of an embodiment of a video data storage device according to the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, a flowchart illustrating a first step of an embodiment of a method for storing image data according to the present application is shown, which may specifically include the following steps:
step 101, collecting a plurality of images;
in the embodiment of the application, the plurality of images can be acquired by satellite shooting, for example, the satellite is used for detecting the reflection of electromagnetic waves by earth surface objects and the electromagnetic waves emitted by the objects in space, so that the information of the objects is extracted, and the object is identified at a long distance; the images may also be acquired by aerial photography, for example, by shooting with an aerial vehicle to obtain multiple images. The embodiment of the present application does not limit the specific manner of acquiring the image.
In this application, the acquired multiple images may include shooting coordinates, camera postures, and other information, where the shooting coordinates may refer to coordinates of the camera during shooting, that is, information of a shooting position corresponding to the acquired images, and the camera postures may refer to information of parameters of the camera, such as an aperture value, exposure time, and a focal length, and this is not limited in this application.
102, generating image data according to the plurality of images;
in the embodiment of the present application, the image data may refer to a single image obtained by synthesizing a plurality of images. For example, after the images acquired in step 101 are processed by the aerial triangulation technique, the images may be combined into one digital ortho-image. Generally, the data size of video data obtained by synthesizing 150 or so images is about 1G.
The aerial triangulation technology is a measuring method for encrypting control points indoors according to a small number of field control points in stereo photogrammetry to obtain the elevation and the plane position of the encrypted points. The digital ortho image (digital ortho photo Map) is an image data generated by utilizing a digital elevation model to carry out projection difference correction on a scanned and processed digital aerial photo one by one, embedding according to an image and cutting according to an image range.
Generally, the image data includes corresponding coordinate information, which is information of coordinates under a certain specified coordinate System, such as wgs-84 coordinate System (World geographic System-1984coordinate System). The wgs-84 coordinate system is a geocentric coordinate system widely adopted internationally, the origin of coordinates of the coordinate system is the earth centroid, the Z axis of the geocentric space rectangular coordinate system points to the protocol earth polar (CTP) direction defined by BIH (Bureau International de I' Heure, International time service organization) 1984.0, the X axis points to the intersection point of the zero-son noon surface of BIH 1984.0 and the equator of the CTP, the Y axis is perpendicular to the Z axis and the X axis to form a right-hand coordinate system, and the wgs-84 coordinate system is called a world geodetic coordinate system in 1984.
However, in practical applications, the image data may need to be displayed in an overlay manner with other data, such as vector data, and the other data may be data using another coordinate system, such as a UTM system (Universal transreceiver grid system). The UTM system is a planar rectangular coordinate system, and the grid system and its projection based thereon have been widely used in topographic maps, as a reference grid for satellite imagery and natural resource databases, and in other applications where precise positioning is required.
Therefore, the embodiment of the present application may further include, after the step of generating the image data according to the plurality of images, the steps of:
and transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
In the embodiment of the present application, in order to achieve a better display effect when the image data and other data are displayed in a superimposed manner, data in different coordinate systems may be processed to be in the same coordinate system. For example, the image data in the wgs-84 coordinate system is processed and output to obtain the image data of the UTM system. Of course, those skilled in the art can determine a specific coordinate system that needs to be changed according to actual needs, for example, the image data of the UTM system is transformed into the image data in the wgs-84 coordinate system or the data in other coordinate systems, which is not limited in the embodiment of the present application.
Step 103, extracting target image data with a specified resolution from the image data;
generally, the data volume of image data is relatively large, especially for high-resolution images, the size of a single piece of data can reach several G, and the data volume is close to the memory of a common personal computer and cannot be directly displayed. Therefore, in the embodiment of the present application, after obtaining the image data, the target image data with the specified resolution can be extracted from the image data according to the actual application requirement.
In a particular implementation, the image data may be resampled to obtain target image data having a specified resolution.
The resampling is a process of interpolating information of one type of pixel from information of another type of pixel, and specifically, the resampling is a process of extracting a low resolution image from a high resolution image.
For example, for original image data having a resolution of 10000 × 10000, resampling is performed on the original data to obtain data having a resolution of 5000 × 5000, and the latter is considered as a thumbnail of the former, and partial image details are lost, but the data amount is reduced to 1/4, and similarly, if data having a resolution of 100 × 100 is generated by resampling, the data amount is reduced to 1/10000 of the original image data, and the data amount is reduced to about 100kb (kilobyte) for image data having a size of 1G.
Therefore, in practical applications, when resampling the original image data, a plurality of target image data with different resolutions may be generated, for example, target image data with resolutions of 5000 × 5000, 2000 × 2000, 1000 × 1000, 500 × 500, 200 × 200, or 100 × 100 may be generated for different display scales based on the original image data with a resolution of 10000 × 10000.
Step 104, generating a tile image aiming at the target image data, wherein the tile image has corresponding image information;
tile (Tile) is a square grid picture which is cut into a plurality of rows and columns according to a certain size and format and a scaling level or a scale, and the square grid picture after being cut is a Tile.
In a specific implementation, after target image data with a specified resolution is generated, a coordinate origin of the target image data may be determined first, and then the target image data is segmented into a plurality of tile images from the coordinate origin.
For example, the lower left corner (B0, L0) of the target image data may be selected as the origin of coordinates, and then the target image data may be sliced according to a certain pixel size, so as to obtain a plurality of tile images. Of course, a person skilled in the art may also select other positions as the coordinate origin of the target image data according to the actual situation, for example, select the upper left corner, the upper right corner, the lower right corner, or the center point of the target image data as the coordinate origin, which is not limited in the embodiment of the present application.
After the target image data is divided into a plurality of tile images, image information corresponding to each tile image, such as pixel coordinates, row numbers, column numbers, picture levels, picture formats, pixel resolutions, and the like corresponding to the tile images, may be determined.
When a plurality of sets of target image data are generated when original image data are resampled, the picture level is a level corresponding to the target image data, and the pixel resolution is a resolution corresponding to the target image data. For example, after six target image data sets with resolutions of 5000 × 5000, 2000 × 2000, 1000 × 1000, 500 × 500, 200 × 200, and 100 × 100 are generated by resampling the original image data with a resolution of 10000 × 10000, the picture level corresponding to the target image data with a resolution of 100 × 100 is 6.
Furthermore, after the target image data is segmented according to a certain pixel size to obtain a plurality of tile images, numbering can be performed on each tile image according to a certain sequence, so that each tile image has a row number and a column number, and simultaneously, the pixel coordinate corresponding to each tile image can be respectively calculated according to the pixel size of the target image data and the pixel size adopted in segmentation.
Step 105, storing the tile image and the image information corresponding to the tile image.
In a specific implementation, the tile image obtained by segmentation and the image information corresponding to the tile image can be written into a file for storage.
For example, the stored image information may specifically include the following:
grade: 5 (representing the level at which the current tile image is located);
the number of picture lines: 100 (representing 100 rows of tiles at the current level);
number of picture columns: 200 (representing a current hierarchy with 200 columns of tiles);
the picture format is as follows: png (tile image storage format);
pixel resolution: 0.01 (representing a solid dimension represented by one pixel width, which in the present example is in degrees, and thus one pixel width represents a length of 0.01 degrees of the solid);
scale bar: 0.01 (i.e., 1:0.01, i.e., the ratio of the on-map size to the solid-size is 1: 0.01.
Further, when the tile image is stored, the data information of the whole corresponding to the current influence data may also be included, for example:
number of image data levels: 20 (representing 20 layers of tiles);
data range: (23 ° 58 '3 ", 113 ° 30' 50") (24 ° 58 '3 ", 114 ° 30' 50");
origin: 23 ° 58 '3 ", 113 ° 30' 50";
the tile height: 256 (representing the pixel height of the tile image);
the width of the tile: 256 (representing the pixel width of the tile image);
spatial reference frame (using OGC standard representation):
GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]。
of course, those skilled in the art may select to store the image data and other information of the tile image according to actual needs, which is not limited in the embodiments of the present application.
In an embodiment of the present application, the method may further include the steps of:
and displaying the target tile image corresponding to the current display area.
In the embodiment of the application, when a user needs to view an image of a certain display area, a corresponding target tile image of the display area can be found from the stored tile images, so that the target tile image is displayed to the user.
In a specific implementation, according to a display scale factor currently selected by a user, for example, on a map, a display scale factor determined by the user through zoom control may first determine a target picture hierarchy corresponding to the display scale factor, and then find a target tile image corresponding to a current display area from the target picture hierarchy.
In the embodiment of the application, through gathering many images, and according to many images, generate image data, then follow extract the target image data that has the specified resolution ratio in the image data, thereby can be directed against target image data generates the tile image, the tile image has corresponding image information, and then stores tile image and its corresponding image information for can be according to the tile image of the corresponding resolution ratio of actual demand storage, and when using image data, can be according to the user demand of difference, find out the tile image of corresponding resolution ratio, satisfied the user demand of different fields to the image data of different resolution ratios.
Referring to fig. 2, a flowchart illustrating steps of a second embodiment of the image data storage method according to the present application is shown, and specifically, the method may include the following steps:
step 201, collecting a plurality of images;
in this embodiment of the present application, the multiple images may be acquired by satellite shooting, or acquired by aerial photography or other methods, which is not limited in this embodiment of the present application.
In the implementation of the present application, the acquired multiple images may include information such as shooting coordinates and camera postures, for example, information of a shooting position corresponding to the acquired image, and information such as an aperture value, an exposure time, and a focal length used for shooting.
Step 202, generating image data according to the plurality of images;
in the embodiment of the present application, after acquiring a plurality of images, for example, about 150 images, all of the about 150 images may be combined into one digital ortho-image. The amount of data of the obtained video data varies depending on the size and number of images, and for example, the data size of the video data obtained by synthesizing 150 or so common images is about 1G.
Meanwhile, after the image data is generated, according to actual use requirements of different application fields, the image data in the current coordinate system may be converted into image data in other coordinate systems, for example, the image data in the wgs-84 coordinate system may be converted into image data in the UTM system or image data in other coordinate systems.
Further, after the image data is generated, other types of data, for example, vector data, may be added to the existing image data as needed, which is not limited in the embodiment of the present application.
Step 203, resampling the image data to obtain target image data with a specified resolution;
generally, the image data generated according to a plurality of images has a large data volume, and for different application requirements, a plurality of target image data with different resolutions can be generated for different display scales on the basis of the original image data in a resampling mode.
The target image data may be regarded as a thumbnail of the original image data, and although the details of a part of the image are lost, the data amount of the target image data is reduced accordingly, for example, the data amount of the target image data is reduced to 1/4 of the data amount of the original image data for the original image data with a resolution of 10000 × 10000 and the target image data with a resolution of 5000 × 5000.
Step 204, determining a coordinate origin of the target image data;
in a specific implementation, the lower left corner (B0, L0) of the target image data may be selected as the origin of coordinates, and of course, a person skilled in the art may also select other positions as the origin of coordinates of the target image data according to the actual situation, for example, the upper left corner, the upper right corner, the lower right corner, or the center point of the target image data is selected as the origin of coordinates, which is not limited in the embodiment of the present application.
Step 205, starting from the origin of coordinates, segmenting the target image data into a plurality of tile images, wherein the tile images have corresponding image information;
in general, the pixel size of the tile image after segmentation may be set, for example, 256 × 256, and then the target image data is segmented into a plurality of tile images having the same pixel size according to a preset rule starting from the origin of coordinates.
In a specific implementation, the target image data may be sliced according to a pixel size of 256 × 256 from a lower left corner origin (B0, L0), the sliced tiles may be numbered in order from left to right and from bottom to top, and the pixel row and column coordinates of the tile image may be marked in an (x, y) form. For example, for original image layer I1, tile number (0, 0) has pixel coordinates of (0, 0), (255 ) in the original image, tile number (1, 0) has pixel coordinates of (256, 0), (511, 255) in the original image, tile number (2, 1) has pixel coordinates of (512, 256), (767, 511) in the original image, and tile number (m, n) has pixel coordinates of (256 (m-1), 256 (n-1)), (256 m-1,256 n-1) in the original image, where m, n > 0. Therefore, 10000 × 10000 original image data can be cut into 10000 small data (tile images) of 100 × 100, and under a specified coordinate system, the coordinates of each pixel can be accurately calculated, and further, each cut tile image can be accurately positioned.
Step 206, storing the tile image and the image information corresponding to the tile image;
in a specific implementation, the tile image obtained by segmentation and the image information corresponding to the tile image can be written into a file for storage.
It should be noted that, in the embodiment of the present application, the image data may be directly processed and cached at a low cost, and sent to the electronic device such as the mobile terminal for use in a file copy manner, so as to avoid huge traffic consumption caused by an online mode.
Step 207, extracting a target tile image corresponding to the current display area from the tile images;
in a preferred embodiment of the present application, the step of extracting the target tile image corresponding to the current display area from the tile images may specifically include the following sub-steps:
substep 2071, determining a target picture level according to the current display scale factor of the specified display system;
in the embodiment of the present application, the display scale factor may be selected by a user, for example, the display scale factor determined by the user through a zoom control in a computer, or may be a display scale factor adapted to a current display system, which is not limited in the embodiment of the present application.
After the display scale factor is determined, a target image level corresponding to the display scale factor may be further determined.
For example, after six target image data sets with resolutions of 5000 × 5000, 2000 × 2000, 1000 × 1000, 500 × 500, 200 × 200, and 100 × 100 are generated by resampling original image data with a resolution of 10000 × 10000, if the current display scale factor is 1/2, the corresponding target image hierarchy may be considered as the corresponding image hierarchy of the target image with a resolution of 5000 × 5000.
Substep 2072, calculating a target row number and a column number corresponding to the target picture level of the current display area;
in a specific implementation, coordinate values of a plurality of vertices of the current display area and a coordinate origin of the image data corresponding to the tile image may be first determined, for example, the vertex coordinate values of the current display area are (b0, l0), and the coordinate origin is (ox, oy).
Then, the difference between the coordinate values of the plurality of vertices and the origin of coordinates may be calculated, that is: b0 ═ b 0-ox; l0 ═ l 0-oy;
the difference value may be further used to calculate the pixel coordinates of the current display area, that is, to calculate: rx0 ═ b 0'/r; ry0 ═ l 0'/r;
when the above pixel coordinates (Rx0, Ry0) are obtained, the target row number and column number may be determined based on the pixel coordinates.
Specifically, when the tile length and width are 256 pixels, the row and column numbers are: row0 ═ Rx 0/256; col0 ═ Ry 0/256;
therefore, the target tile image is the corresponding tile image (Row0, Col 0).
It should be noted that, often, the target tile image corresponding to the current display area is not only one tile image, but multiple tile images in one area, and therefore, multiple target tile images in a corresponding range may be determined according to the actual size of the current display area, which is not limited in the embodiment of the present application.
And a substep 2073, extracting the target tile image corresponding to the target row number and the target column number.
Step 208, presenting the target tile image in a designated display system.
And when the target tile image corresponding to the current display area is extracted, displaying the target tile image to a user.
In the embodiment of the application, the image data can be processed and then sent to the mobile device for use in a file copy mode and the like, so that huge flow consumption caused by an online mode is avoided, meanwhile, when the required tile image is extracted, the corresponding target image hierarchy is determined firstly according to the display scale coefficient of the display system, and then the row number and the column number of the target tile data are calculated according to the coordinate value of the current display area, so that the target tile image at the corresponding position is extracted and displayed by searching the row number and the column number, a user can determine the tile image with the corresponding resolution according to the actual display requirement, and the efficiency of searching the target tile image is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 3, a block diagram of an embodiment of a storage device for image data according to the present application is shown, and the storage device may specifically include the following modules:
the image acquisition module 301 is used for acquiring a plurality of images;
an image data generating module 302, configured to generate image data according to the multiple images;
a target image data extraction module 303, configured to extract target image data with a specified resolution from the image data;
a tile image generating module 304, configured to generate a tile image for the target image data, where the tile image has corresponding image information;
a storage module 305, configured to store the tile image and image information corresponding to the tile image.
In this embodiment, the target image data extracting module 303 may specifically include the following sub-modules:
and the target image data extraction submodule is used for resampling the image data to obtain target image data with specified resolution.
In this embodiment of the present application, the tile image generation module 304 may specifically include the following sub-modules:
the determining submodule is used for determining a coordinate origin of the target image data;
and the segmentation submodule is used for segmenting the target image data into a plurality of tile images from the origin of coordinates.
In this embodiment of the present application, the tile image may have a preset pixel size, and the slicing sub-module specifically includes the following units:
and the segmentation unit is used for segmenting the target image data into a plurality of tile images with the same pixel size according to a preset rule from the origin of coordinates.
In an embodiment of the present application, the image information corresponding to the tile image may include: pixel coordinates, row numbers, column numbers, picture levels, picture formats, and pixel resolutions corresponding to the tile images.
In this embodiment, the apparatus may further include the following modules:
and the target tile image display module is used for displaying the target tile image corresponding to the current display area.
In this embodiment of the present application, the target tile image display module may specifically include the following sub-modules:
the target tile image extraction submodule is used for extracting a target tile image corresponding to the current display area from the tile image;
and the target tile image display sub-module is used for displaying the target tile image in a specified display system.
In this embodiment of the present application, the target tile image extraction sub-module may specifically include the following units:
the target picture level determining unit is used for determining a target picture level according to the current display scale coefficient of the specified display system;
the target row number and column number calculating unit is used for calculating a target row number and a target column number corresponding to the current display area in the target picture hierarchy;
and the target tile image extraction unit is used for extracting the target tile images corresponding to the target row numbers and the target column numbers.
In this embodiment of the present application, the target row number and column number calculating unit may specifically include the following sub-units:
a determining subunit, configured to determine coordinate values of multiple vertices of the current display area and a coordinate origin of the image data corresponding to the tile image;
a difference value calculating subunit, configured to calculate difference values between the coordinate values of the multiple vertices and the origin of coordinates, respectively;
a pixel coordinate calculating subunit, configured to calculate a pixel coordinate of the current display area by using the difference value;
and the target row number and column number determining subunit is used for determining the target row number and column number according to the pixel coordinates.
In this embodiment, the image data may have corresponding coordinate information, and the apparatus may further include:
and the transformation module is used for transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing describes in detail a method and a device for storing image data provided by the present application, and specific examples are applied herein to explain the principles and embodiments of the present application, and the description of the foregoing examples is only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (18)

1. A method for storing image data, comprising:
collecting a plurality of images;
generating image data according to the plurality of images;
extracting target image data with specified resolution from the image data;
generating a tile image for the target image data, the tile image having corresponding image information;
storing the tile image and the corresponding image information;
wherein the generating a tile image for the target video data, the tile image having corresponding image information comprises:
determining the origin of coordinates of the target image data;
segmenting the target image data into a plurality of tile images from the origin of coordinates, and marking pixel row coordinates and column coordinates of the tile images;
the step of generating image data according to the plurality of images includes:
and processing the plurality of images by an aerial triangulation technology, and synthesizing into a digital ortho-image.
2. The method of claim 1, wherein the step of extracting target video data having a specified resolution from the video data comprises:
and resampling the image data to obtain target image data with specified resolution.
3. The method of claim 2, wherein the tile image has a predetermined pixel size, and the step of segmenting the target image data into a plurality of tile images from the origin of coordinates comprises:
and from the origin of coordinates, cutting the target image data into a plurality of tile images with the same pixel size according to a preset rule.
4. The method of claim 1, wherein the image information corresponding to the tile image comprises: pixel coordinates, row numbers, column numbers, picture levels, picture formats, and pixel resolutions corresponding to the tile images.
5. The method of claim 4, further comprising:
and displaying the target tile image corresponding to the current display area.
6. The method of claim 5, wherein the step of presenting the target tile image corresponding to the current display area comprises:
extracting a target tile image corresponding to the current display area from the tile images;
presenting the target tile image in a designated display system.
7. The method according to claim 6, wherein the step of extracting the target tile image corresponding to the current display area from the tile image comprises:
determining a target picture level according to a current display scale coefficient of a specified display system;
calculating a corresponding target row number and a corresponding column number of a current display area in the target picture hierarchy;
and extracting the target tile image corresponding to the target row number and the target column number.
8. The method according to claim 7, wherein the step of calculating the corresponding target row number and column number of the current display area in the target picture level comprises:
determining coordinate values of a plurality of vertexes of a current display area and a coordinate origin of image data corresponding to the tile image;
calculating the difference between the coordinate values of the plurality of vertexes and the coordinate origin respectively;
calculating the pixel coordinate of the current display area by adopting the difference value;
and determining the target row number and the target column number according to the pixel coordinates.
9. The method of claim 1, wherein the image data has corresponding coordinate information, and further comprising, after the step of generating image data from the plurality of images:
and transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
10. An apparatus for storing image data, comprising:
the image acquisition module is used for acquiring a plurality of images;
the image data generation module is used for generating image data according to the plurality of images;
the target image data extraction module is used for extracting target image data with specified resolution from the image data;
a tile image generation module, configured to generate a tile image for the target image data, where the tile image has corresponding image information;
the storage module is used for storing the tile image and the image information corresponding to the tile image;
the tile image generation module includes:
the determining submodule is used for determining a coordinate origin of the target image data;
the segmentation submodule is used for segmenting the target image data into a plurality of tile images from the origin of coordinates, and marking pixel row coordinates and column coordinates of the tile images;
the generating image data according to the plurality of images includes:
and processing the plurality of images by an aerial triangulation technology, and synthesizing into a digital ortho-image.
11. The apparatus of claim 10, wherein the target image data extraction module comprises:
and the target image data extraction submodule is used for resampling the image data to obtain target image data with specified resolution.
12. The apparatus of claim 10, wherein the tile image has a preset pixel size, and wherein the slicing sub-module comprises:
and the segmentation unit is used for segmenting the target image data into a plurality of tile images with the same pixel size according to a preset rule from the origin of coordinates.
13. The apparatus of claim 10, wherein the image information corresponding to the tile image comprises: pixel coordinates, row numbers, column numbers, picture levels, picture formats, and pixel resolutions corresponding to the tile images.
14. The apparatus of claim 13, further comprising:
and the target tile image display module is used for displaying the target tile image corresponding to the current display area.
15. The apparatus of claim 14, wherein the target tile image rendering module comprises:
the target tile image extraction submodule is used for extracting a target tile image corresponding to the current display area from the tile image;
and the target tile image display sub-module is used for displaying the target tile image in a specified display system.
16. The apparatus of claim 15, wherein the target tile image extraction sub-module comprises:
the target picture level determining unit is used for determining a target picture level according to the current display scale coefficient of the specified display system;
the target row number and column number calculating unit is used for calculating a target row number and a target column number corresponding to the current display area in the target picture hierarchy;
and the target tile image extraction unit is used for extracting the target tile images corresponding to the target row numbers and the target column numbers.
17. The apparatus of claim 16, wherein the target row number and column number calculation unit comprises:
a determining subunit, configured to determine coordinate values of multiple vertices of the current display area and a coordinate origin of the image data corresponding to the tile image;
a difference value calculating subunit, configured to calculate difference values between the coordinate values of the multiple vertices and the origin of coordinates, respectively;
a pixel coordinate calculating subunit, configured to calculate a pixel coordinate of the current display area by using the difference value;
and the target row number and column number determining subunit is used for determining the target row number and column number according to the pixel coordinates.
18. The apparatus of claim 10, wherein the image data has corresponding coordinate information, the apparatus further comprising:
and the transformation module is used for transforming the coordinate information of the image data to obtain the image data with the specified coordinate information.
CN201611089352.4A 2016-11-30 2016-11-30 Image data storage method and device Active CN106599119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611089352.4A CN106599119B (en) 2016-11-30 2016-11-30 Image data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611089352.4A CN106599119B (en) 2016-11-30 2016-11-30 Image data storage method and device

Publications (2)

Publication Number Publication Date
CN106599119A CN106599119A (en) 2017-04-26
CN106599119B true CN106599119B (en) 2020-06-09

Family

ID=58594658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611089352.4A Active CN106599119B (en) 2016-11-30 2016-11-30 Image data storage method and device

Country Status (1)

Country Link
CN (1) CN106599119B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109427063A (en) * 2017-08-30 2019-03-05 广州极飞科技有限公司 The storage method and device of image data
CN108021653B (en) * 2017-12-01 2021-08-03 湖州师范学院 Data screening method of security monitoring system
CN108447042B (en) * 2018-03-06 2021-04-06 北京建筑大学 Fusion method and system for urban landscape image data
CN108932292B (en) * 2018-05-29 2021-11-12 东南大学 Rapid multi-resolution scheduling display method for large-range remote sensing image
CN109271538A (en) * 2018-08-20 2019-01-25 深圳和而泰智能控制股份有限公司 A kind of picture storage method and relevant device
CN110427448A (en) * 2019-08-05 2019-11-08 山东省国土测绘院 Image method for caching and processing, calculates equipment and read/write memory medium at device
CN110851752B (en) * 2019-09-25 2023-12-08 视联动力信息技术股份有限公司 Image transmission method and device
CN110781325A (en) * 2019-10-21 2020-02-11 武汉大学 High-resolution remote sensing data grid refined management model and construction method thereof
CN113613036A (en) * 2021-06-25 2021-11-05 海南视联大健康智慧医疗科技有限公司 Image transmission method, device, equipment and medium
CN114136286A (en) * 2021-11-29 2022-03-04 苏州华创智城科技有限公司 High-definition image auxiliary positioning method for mobile equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0638875A3 (en) * 1993-08-06 1995-07-12 Matsushita Electric Ind Co Ltd A 3-dimensional animation generating apparatus and a method for generating a 3-dimensional animation.
EP1223558A2 (en) * 2000-12-28 2002-07-17 Matsushita Electric Industrial Co., Ltd. Rendering device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455624B (en) * 2013-09-16 2017-07-25 湖北文理学院 A kind of global multidimensional remote sensing image Map Service of Network implementation method of lightweight

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0638875A3 (en) * 1993-08-06 1995-07-12 Matsushita Electric Ind Co Ltd A 3-dimensional animation generating apparatus and a method for generating a 3-dimensional animation.
EP1223558A2 (en) * 2000-12-28 2002-07-17 Matsushita Electric Industrial Co., Ltd. Rendering device

Also Published As

Publication number Publication date
CN106599119A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106599119B (en) Image data storage method and device
US10929494B2 (en) Systems and methods for tagging objects for augmented reality
US7415356B1 (en) Techniques for accurately synchronizing portions of an aerial image with composited visual information
KR101504383B1 (en) Method and apparatus of taking aerial surveys
JP4685313B2 (en) Method for processing passive volumetric image of any aspect
US7944547B2 (en) Method and system of generating 3D images with airborne oblique/vertical imagery, GPS/IMU data, and LIDAR elevation data
US20130127852A1 (en) Methods for providing 3d building information
US10733777B2 (en) Annotation generation for an image network
JP6238101B2 (en) Numerical surface layer model creation method and numerical surface layer model creation device
US8675013B1 (en) Rendering spherical space primitives in a cartesian coordinate system
CN109472865B (en) Free measurable panoramic reproduction method based on image model drawing
US20030225513A1 (en) Method and apparatus for providing multi-level blended display of arbitrary shaped textures in a geo-spatial context
EP2076850A2 (en) Systems and methods for visualizing and measuring real world 3-d spatial data
CN108491401B (en) Coordinate deviation rectifying method for 2.5-dimensional map
US10878278B1 (en) Geo-localization based on remotely sensed visual features
KR101183519B1 (en) System and method of generating poi information
Ahn et al. Ortho-rectification software applicable for IKONOS high resolution images: GeoPixel-Ortho
AU2013260677B2 (en) Method and apparatus of taking aerial surveys
CN116805277B (en) Video monitoring target node pixel coordinate conversion method and system
JP2022163920A (en) Three-dimensional model generation device, three-dimensional model generation method, and program
Haala et al. Generation and application of virtual landscape models for location-based services
SCENES Surface Contents Author Index

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Jifei Technology Co.,Ltd.

Address before: No.3a01, No.1 Sicheng Road, Gaotang Software Park, Tianhe District, Guangzhou, Guangdong 510000

Patentee before: Guangzhou Xaircraft Technology Co.,Ltd.