Summary of the invention
In view of above content, be necessary to provide a kind of GPS photo synthesis system, can when the object image in the GPS photo is imperfect, the GPS photo be synthesized so that complete object image is presented in synthetic GPS photo.
In addition, also be necessary to provide a kind of GPS picture synthesis method, can when the object image in the GPS photo is imperfect, the GPS photo be synthesized so that complete object image is presented in synthetic GPS photo.
A kind of GPS photo synthesis system runs in the data processing equipment, and this system comprises: parameter is provided with module, and photo is selected module, photograph acquisition module, and photo synthesis module.This parameter is provided with the synthetic parameters that module is used to be provided with the GPS photo, and described GPS refers to GPS.This photo selects module to be used for receiving the GPS photo from a GPS photo storage equipment, reads the GPS positional information of each GPS photo correspondence of reception, and select a target photo to be synthesized from the GPS photo that receives.This photograph acquisition module is used for obtaining and the close GPS photo in this target photo GPS position from other GPS photo that receives according to the synthetic parameters that is provided with, from network, obtain and the close GPS photo in this target photo GPS position according to the synthetic parameters that is provided with, and from all GPS photos that obtain, find out and the akin GPS photo of this target photo according to the synthetic parameters that is provided with.This photo synthesis module was used for this target photo and synthesizing with the akin GPS photo of this target photo of finding out.
A kind of GPS picture synthesis method is applicable to data processing equipment.This method comprises the steps: that (a) is provided with the synthetic parameters of GPS photo, and described GPS refers to GPS; (b) from a GPS photo storage equipment, receive the GPS photo, and read the GPS positional information of each GPS photo correspondence of reception; (c) from the GPS photo that receives, select a target photo to be synthesized; (d) obtain and the close GPS photo in this target photo GPS position from other GPS photo that receives according to the synthetic parameters that is provided with; (e) from network, obtain and the close GPS photo in this target photo GPS position according to the synthetic parameters that is provided with; (f) from all GPS photos that obtain, find out and the akin GPS photo of this target photo according to the synthetic parameters that is provided with; And (g) with this target photo and synthesizing of finding out with the akin GPS photo of this target photo.
Compare prior art, the present invention is by filtering and screen the GPS photo of taking in same place to obtain to the GPS photo, the photo that obtains after filtering and screening is further carried out the comparison of image similarity to obtain to form the GPS photo of complete object image, and then the GPS photo that can form the complete object image synthesized, complete object image is presented in synthetic GPS photo.
Embodiment
GPS: refer to Global Position System, i.e. GPS.
As shown in Figure 1, be the running environment figure of GPS photo synthesis system of the present invention preferred embodiment.This GPS photo synthesis system 10 runs in the data processing equipment 1 with GPS photo compose operation ability.This data processing equipment 1 can be visited at least one GPS photo storeroom 3 (is example with three) by network 2.This network 2 can be internet, LAN (Local Area Network) or other any suitable information medias.This data processing equipment 1 can be mobile phone, computing machine or other any suitable electronic equipments.
This GPS photo synthesis system 10 comprises that parameter is provided with module 100, and photo is selected module 101, photograph acquisition module 102, judge module 103, and photo synthesis module 105.
Parameter is provided with module 100, is used to be provided with the synthetic parameters of GPS photo.The synthetic parameters that is provided with comprises the critical parameters of GPS position and the critical parameters of GPS photo similarity.In the present embodiment, described GPS position comprises longitude and latitude.Described GPS photo similarity refers to the similarity of GPS photo visual signature, and GPS photo visual signature comprises color characteristic and shape facility.
Photo is selected module 101, is used for receiving the GPS photo from a GPS photo storage equipment (not shown), reads the GPS positional information of each GPS photo correspondence of reception, and selects a target photo to be synthesized from the GPS photo that receives.This GPS photo storage equipment can be the memory device of this data processing equipment 1 internal configurations, for example, and hard disk; Also can be the External memory equipment that is connected on this data processing equipment 1, for example, have the camera or the mobile phone of GPS function.
Photograph acquisition module 102 is used for obtaining and the close GPS photo in this target photo GPS position from other GPS photo that receives according to the critical parameters of the GPS position that is provided with.In the present embodiment, two close definite methods in GPS photo GPS position are: the difference value of these two GPS photo GPS positions is less than the critical parameters of the GPS position that is provided with, and promptly the longitude difference value in these two GPS photograph taking places and latitude difference value are less than the critical parameters of the GPS position that is provided with.
Photograph acquisition module 102 also is used for the critical parameters according to the GPS position that is provided with, by network 2 at least one GPS photo storeroom 3 of visit, to obtain and the close GPS photo in this target photo GPS position.
Photograph acquisition module 102 also is used for the critical parameters according to the GPS photo similarity that is provided with, and finds out from all GPS photos that obtain and the akin GPS photo of this target photo.In the present embodiment, two akin definite methods of GPS photo are: the visual signature (color characteristic and/or shape facility) that extracts these two GPS photos, then, calculate the similarity of these two GPS photos according to the visual signature that extracts, at last, during greater than the critical parameters of the GPS photo similarity that is provided with, determine that these two GPS photos are close in these two GPS photo similarities of calculating.Wherein, the method for extracting the visual signature of GPS photo can be: at first photo is divided into some blocks, extracts the visual signature of each block then, with the visual signature of each block as the total visual signature of this photo.The method that described visual signature according to extraction calculates the similarity of these two GPS photos is unfixed, in the present embodiment, the similarity of these two GPS photos refers to one of them GPS photo and has with the block counts of the identical visual signature of another GPS photo and account for these two GPS photos by the number percent of the block counts of five equilibrium.
Judge module 103, be used to judge whether found out by photograph acquisition module 102 with the akin GPS photo of this target photo, and when photograph acquisition module 102 is not found out with the akin GPS photo of this target photo, judge whether to reset the synthetic parameters of GPS photo to carry out the synthetic of GPS photo again.
Photo synthesis module 105 is used for having when being found out with the akin GPS photo of this target photo this target photo and the akin GPS photo of finding out being synthesized.In the present embodiment, the method that two akin GPS photos are synthetic is: at first, calculate the coordinate position transition matrix (homography matrix) of these two akin GPS photos, then, according to the coordinate position transition matrix that calculates these two akin GPS photos are synthesized.
As shown in Figure 2, be the concrete implementing procedure figure of GPS picture synthesis method of the present invention preferred embodiment.
Step S10, parameter is provided with the synthetic parameters that module 100 is provided with the GPS photo, and the synthetic parameters of setting comprises the critical parameters of GPS position and the critical parameters of GPS photo similarity.In the present embodiment, described GPS position comprises longitude and latitude.Described GPS photo similarity refers to the similarity of GPS photo visual signature, and GPS photo visual signature comprises color characteristic and shape facility.
Step S11, photo select module 101 to receive the GPS photo from a GPS photo storage equipment (not shown), and read the GPS positional information of each GPS photo correspondence of reception.This GPS photo storage equipment can be the memory device of this data processing equipment 1 internal configurations, for example, and hard disk; Also can be the External memory equipment that is connected on this data processing equipment 1, for example, have the camera or the mobile phone of GPS function.
Step S12, photo select module 101 to select a target photo to be synthesized from the GPS photo that receives.
Step S13, photograph acquisition module 102 is obtained and the close GPS photo in this target photo GPS position from other GPS photo that receives according to the critical parameters of the GPS position that is provided with.In the present embodiment, two close definite methods in GPS photo GPS position are: the difference value of these two GPS photo GPS positions is less than the critical parameters of the GPS position that is provided with, and promptly the longitude difference value in these two GPS photograph taking places and latitude difference value are less than the critical parameters of the GPS position that is provided with.
Step S15, photograph acquisition module 102 is according to the critical parameters of the GPS position that is provided with, by network 2 at least one GPS photo storeroom 3 of visit, to obtain and the close GPS photo in this target photo GPS position.
Step S16, photograph acquisition module 102 is found out from all GPS photos that obtain and the akin GPS photo of this target photo according to the critical parameters of the GPS photo similarity that is provided with.In the present embodiment, two akin definite methods of GPS photo are: the visual signature (color characteristic and/or shape facility) that extracts these two GPS photos, then, calculate the similarity of these two GPS photos according to the visual signature that extracts, at last, during greater than the critical parameters of the GPS photo similarity that is provided with, determine that these two GPS photos are close in these two GPS photo similarities of calculating.
Step S17, judge module 103 have judged whether to be found out by photograph acquisition module 102 with the akin GPS photo of this target photo.
Having when being found out, change over to and carry out following step S18 with the akin GPS photo of this target photo; Perhaps, when not found out, change over to and carry out following step S19 with the akin GPS photo of this target photo.
Step S18, photo synthesis module 105 synthesizes this target photo and the akin GPS photo of finding out.In the present embodiment, the method that two akin GPS photos are synthetic is: at first, calculate the coordinate position transition matrix (homography matrix) of these two akin GPS photos, then, according to the coordinate position transition matrix that calculates these two akin GPS photos are synthesized.
Step S19, judge module 103 judge whether to reset the synthetic parameters of GPS photo to carry out the synthetic of GPS photo again.
When needs are reset the synthetic parameters of GPS photo, change over to and carry out above-mentioned steps S10; Perhaps, when not needing to reset the synthetic parameters of GPS photo, flow process finishes.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.