Summary of the invention
At above-mentioned problems of the prior art, the object of the present invention is to provide a kind of stereo scene establishment loaming method of three-dimensional optimized wire selection system, the stereo scene of three-dimensional optimized wire selection system to create roaming device and a kind of three-dimensional optimized wire selection system, it can support checking at any angle of three-dimensional scenic.
For achieving the above object, the present invention by the following technical solutions:
A kind of stereo scene of three-dimensional optimized wire selection system is created loaming method, comprises step:
Three-dimensional coordinate according to rule mesh lattice point on the digital elevation model file is created relief block;
Create the three-dimensional model of shaft tower according to the three-dimensional coordinate of the each point on the shaft tower in the shaft tower figure, calculate the coordinate of each point in the three-dimensional scenic of described relief block place of shaft tower and each coordinate points of in the three-dimensional scenic of described relief block place, drawing shaft tower according to the rotation angle of tower position;
According to artificial principle of stereoscopic vision,, carry out three-dimensional range by the space scenery stereoscopic vision in the stereogram reconstruction of three-dimensional scene of the left and right sides.
A kind of stereo scene of three-dimensional optimized wire selection system is created the roaming device, comprising:
The relief block creating unit is used for creating relief block according to the three-dimensional coordinate of rule mesh lattice point on the digital elevation model file;
The shaft tower drawing unit, be used for creating the three-dimensional model of shaft tower according to the three-dimensional coordinate of the each point on the shaft tower figure shaft tower, calculate the coordinate of each point in three-dimensional scenic of shaft tower and each coordinate points of in the three-dimensional scenic at described relief block place, drawing shaft tower according to the rotation angle of tower position;
3D vision shows the roaming unit, is used for according to artificial principle of stereoscopic vision, by the space scenery stereoscopic vision in the stereogram reconstruction of three-dimensional scene of the left and right sides, carries out three-dimensional range.
A kind of three-dimensional optimized wire selection system comprises that the stereo scene of aforesaid three-dimensional optimized wire selection system is created the roaming device.
Scheme according to the invention described above, it is after simulating relief block according to digital elevation model, in the three-dimensional scenic at relief block place, realize simulation to shaft tower, and according to artificial principle of stereoscopic vision, produce sight equation by left and right sides stereogram, rebuild space scenery stereoscopic vision, realize three-dimensional range, thereby, when in this three-dimensional scenic, roaming, can be according to artificial principle of stereoscopic vision, integrated environment is held, can multi-angle, many depth of field ground free-roaming is supported checking at any angle of three-dimensional scenic, provides good support for optimizing the electric power route selection.
Embodiment
Below just wherein preferred embodiment the present invention program is described in detail.
Referring to shown in Figure 1, be the schematic flow sheet of the stereo scene establishment loaming method embodiment of three-dimensional optimized wire selection system of the present invention, it comprises step:
Step S101: the three-dimensional coordinate according to rule mesh lattice point on the digital elevation model file is created relief block, enters step S102;
Step S102: the three-dimensional model of creating shaft tower according to the three-dimensional coordinate of the each point on the shaft tower in the shaft tower figure, calculate the coordinate of each point in the three-dimensional scenic of described relief block place of shaft tower according to the rotation angle of tower position, and each coordinate points of in the three-dimensional scenic of described relief block place, drawing shaft tower, enter step S103;
Step S103: according to artificial principle of stereoscopic vision, produce the physiology parallax by left and right sides stereogram, the space scenery stereoscopic vision in the reconstruction of three-dimensional scene is carried out three-dimensional range.
According to the scheme in the present embodiment, it is after simulating relief block according to digital elevation model, in the three-dimensional scenic at relief block place, realize model to shaft tower, and when carrying out the three-dimensional scenic roaming, be according to artificial principle of stereoscopic vision, produce sight equation by left and right sides stereogram, rebuild space scenery stereoscopic vision, thereby, when in this three-dimensional scenic, roaming, can hold integrated environment according to artificial principle of stereoscopic vision, can multi-angle, many depth of field ground free-roaming, support checking at any angle of three-dimensional scenic, for the optimization of electric power route selection provides support.
When creating relief block among the above-mentioned steps S101, be three-dimensional coordinate (x according to digital elevation model document convention grid points, y, z) create out the relief block that height rises and falls, can simulate terrain feature such as massif, the establishment mode of concrete relief block can be to adopt existing mode in the prior art, does not repeat them here.
When above-mentioned steps S102 simulates shaft tower, the implementation that one of them is concrete, it can be CAD figure in strict accordance with shaft tower, create the three-dimensional model of shaft tower according to the three-dimensional coordinate of each point on the shaft tower in the CAD figure, calculate the coordinate of each point in the three-dimensional scenic of relief block place of tower then according to the rotation angle of tower position, in this three-dimensional scenic, draw the each point of tower, thereby realize simulation tower.
Subsequently, can produce the physiology parallax by left and right sides stereogram, rebuild space scenery stereoscopic vision, realize true 3-D display, carry out three-dimensional range according to the principle of artificial stereoscopic vision.
The principle schematic of artificial stereoscopic vision has been shown among Fig. 2.When we during with eyes observation spaces far and near different scenery A, B, two produce the physiology parallaxes, obtain stereoscopic vision, thereby can judge the distance of scenery.If this moment, we respectively put a glass sheet before eyes, P as shown in Figure 2 and P ', then 2 of A, B obtain image a, b and a ', b ' respectively in glass sheet P and P '.If on glass have a photosensitive material, image will be recorded in respectively on P and the P ' sheet.After removing material object, watch the structure picture on the glass sheet separately respectively for two, still can see and the same space scenery A and B in kind the human-eye stereoscopic vision effect of Here it is space scenery produces physiology parallax on human eye nethike embrane nest.Its process is: space scenery is the structure picture on photosensitive material, produces the physiology parallax with the photo of eye-observation structure picture again, rebuilds space scenery stereoscopic vision.Such stereo perception is called artificial stereoscopic vision.
In the three-dimensional scenic that the present invention program creates, use artificial principle of stereoscopic vision, not only can support the circuit line walking, can also support free-roaming, promptly can realize the comprehensive demonstration of 360 degree of three-dimensional scenic by the position of adjusting 3 of picture points, camera point, human eye.Wherein, image point position is certain any ground three-dimensional coordinate (x, y, z) on the image, and camera point position is the three-dimensional coordinate (x, y, z) of camera focus, and position of human eye is the three-dimensional coordinate (x, y, z) of simulated person's eye.Below just to realizing that by the position of adjusting 3 of picture points, camera point, human eye the examples of the comprehensive demonstration of 360 degree of three-dimensional scenic describe:
In one of them example, can revise the horizontal parallax size of image, can realize the stereoeffect of three-dimensional scenic by regulating the relative position of left and right sides image with respect to human eye;
In another example, can keep the position coordinates of camera point, human eye in the three-dimensional scenic constant, control the visual range of human eye by the three-dimensional coordinate of revising picture point.When picture point was put away from camera, it is big that visual range becomes, and image dwindles, and can simulate human eye away from scene; Same visual range diminishes when picture point during near camera point, and the image amplification can be simulated the close scene of human eye, realizes the effect of image-zooming with this;
In another example, can be constant by the position coordinates that keeps picture point in the three-dimensional scenic, revise the three-dimensional coordinate of simulated person's eye and can realize rotating the effect of checking around a certain position;
In another example, can be constant by the position coordinates that keeps human eye in the three-dimensional scenic, regulate the three-dimensional coordinate of picture point, thereby can realize the effect of human eye around looking around.
Thereby, realized checking at any angle in the three-dimensional large scene by modification picpointed coordinate, the coordinate of position of human eye, camera point coordinate, really accomplished free-roaming.
In addition, create in the above in the process of three-dimensional scenic, terrain feature such as massif have only just been simulated by digital elevation model, atural object key element to the face of land, for example house, vegetation, river, road, scissors crossing line of electric force etc. do not embody, when in the three-dimensional scenic of being created, carrying out three-dimensional range, can't represent information such as atural object key element truly, also can't simulate real completion scene.Therefore, the stereo scene of three-dimensional optimized wire selection system of the present invention is created loaming method, after the establishment relief block of above-mentioned steps S101, before the three-dimensional model of the establishment shaft tower of step S102, also comprises step:
Step S1012: be added to corresponding point on the described relief block of the rgb value at respective coordinates place on the orthography.
When obtaining the ground image by aeroplane photography or by satellite sensor, owing to the abswolute level that can't guarantee video camera in the moment of photographing, what obtain is the image that the inclination of certain angle is arranged, and image each several part engineer's scale is inconsistent.In addition, video camera is central projection when imaging, and topographic relief can cause height displacement on photo.Being added among the present invention program on the relief block all is orthogonal projection, make image have the characteristic of the orthogonal projection of map, need carry out the correction of correcting inclination and height displacement to image, eliminates the image that obtains after the various distortion and is called orthography through correcting.
Because orthography is the orthogonal projection of overlooking, so when superposeing, corresponding coordinate gets final product on the landform that only colouring information of each pixel need be added to, the texture features of every bit (being colouring information) being superimposed upon on the landform just like this according to correct geographic position 1:1, because elevation, textural characteristics all are the information of true atural object, atural objects such as buildings, trees just have been presented on the relief block.
The present invention program is by the orthography that superposes on the relief block of creating, thereby can simulate and embody the important atural object key element of circuit peripheries such as house, vegetation, river, road, scissors crossing line of electric force truly.
When needs showed terrestrial object information, also having a kind of mode was to tie up display systems by setting up 2.5 of orthogonal projection mode, orthography was projected represent terrestrial object information on the landform.Just, when using this mode, the plane information characteristics of atural object can only be represented, the elevation information of atural object can not be reflected, and because the mode of orthogonal projection requires the visual angle must be to overlook, thereby restriction can be caused to the observation angle of three-dimensional scenic.
According to the invention described above scheme, roaming can be checked electric power transmission line design achievement more intuitively in its three-dimensional scenic of creating, guarantees to design the reliability of achievement.Environment around the circuit all is true texture, has not only represented the real scene after circuit builds up, and has comprised circuit through terrestrial object informations such as regional house, river, roads.If be applied to power circuit route selection and line optimization stage, can obtain terrestrial object information in the power circuit scope by three-dimensional scenic, thereby can judge whether circuit has effectively dodged atural objects such as house, road, can reflect the scissors crossing situation intuitively simultaneously.Truly calculate the coordinate of each point of two sag lines between the hanging wire point by standard sag formula,, and create the shaft tower model by the shaft tower type of practical application with the analog electrical line of force, actual response the anglec of rotation and the column foot position of shaft tower.
Use the invention described above scheme and carry out free-roaming, in conjunction with the geomorphological features situation that can distinguish in the three-dimensional scenic, can provide wide visual field more for line optimization, the information of various necessity is provided, realized real auxiliary route selection, but not single achievements exhibition platform.If check out lead when line data-logging the ground of subsides situation is arranged, can turn back to the route selection module immediately and readjust, the result after adjusting also can check in the three-dimensional range module immediately, has avoided the design error.
In addition, by using three-dimensional large scene that the invention described above scheme set up real simulation to the completion scene, environment around the circuit is come into plain view, construction scheme design that can the auxiliary construction road, the assessment of constructional difficulties degree etc. are in that just the stage of establishing just can reach the degree of depth that working drawing designs.In addition, by using the invention described above scheme, can also on-the-spot circuit corridor and shaft tower destruction situation take place to disaster and carry out data acquisition and data modeling, for providing rescue and relief for disasters and emergencies of transmission line of electricity provides aid decision making.
Stereo scene according to the three-dimensional optimized wire selection system of the invention described above is created loaming method, and the present invention also provides a kind of stereo scene of three-dimensional optimized wire selection system to create the roaming device.The stereo scene that three-dimensional optimized wire selection system of the present invention has been shown among Fig. 3 is created the structural representation of roaming device embodiment, and it includes:
Relief block creating unit 201 is used for creating relief block according to the three-dimensional coordinate of rule mesh lattice point on the digital elevation model file;
Shaft tower drawing unit 202, be used for creating the three-dimensional model of shaft tower according to the three-dimensional coordinate of the each point on the shaft tower figure shaft tower, calculate the coordinate of each point in three-dimensional scenic of shaft tower according to the rotation angle of tower position, and each coordinate points of in the three-dimensional scenic at above-mentioned relief block place, drawing shaft tower, this shaft tower drawing unit can be connected with relief block creating unit 201, so that realize the three-dimensional simulation to shaft tower after the relief block establishment is finished;
3D vision shows roaming unit 203, is used for according to artificial principle of stereoscopic vision, by the space scenery stereoscopic vision in the stereogram reconstruction of three-dimensional scene of the left and right sides, carries out three-dimensional range.3D vision shows that roaming unit 203 when carrying out three-dimensional range, is according to artificial principle of stereoscopic vision, produces physiology parallax, the space scenery stereoscopic vision in the reconstruction of three-dimensional scene by left and right sides stereogram.This 3D vision shows that roaming unit 203 can be connected with above-mentioned shaft tower drawing unit 202, to have realized carrying out three-dimensional stereoscopic vision demonstration and roaming again after the simulation to shaft tower in three-dimensional scenic.
Wherein, above-mentioned 3D vision shows that roaming unit 203 specifically can comprise:
The command reception unit is used for receiving position of human eye, the camera point position of set three-dimensional scenic;
Scenery image generation unit is used for based on artificial principle of stereoscopic vision, according to position of human eye, the camera point position that the command reception unit is received, determines and the visible image of regulating human eye in the three-dimensional scenic.
In addition, the stereo scene of the three-dimensional optimized wire selection system of the invention described above is created the roaming device, can also include atural object superpositing unit 2012, is used for be added to corresponding point on the relief block of rgb value with respective coordinates place on the orthography.Wherein, this atural object superpositing unit 2012 can be connected between above-mentioned relief block creating unit 201 and the shaft tower drawing unit 202, to be illustrated in shaft tower is simulated the orthography that superposes before, thereby when shaft tower is simulated, be in more real three-dimensional scenic, shaft tower to be simulated.
The stereo scene of three-dimensional optimized wire selection system of the present invention is created the roaming device, the specific implementation of the stereo display of the simulation of establishment relief block, shaft tower, the stack of orthography, 3D vision and roaming etc., create identical in the loaming method with the stereo scene of the three-dimensional optimized wire selection system of the invention described above, do not repeat them here.
As above, 3 D stereo scene creation loaming method of the invention described above and 3 D stereo scene creation roaming device, can be applicable to the three-dimensional optimized wire selection system, the optimization of thinking power circuit provides good support, for this reason, the present invention can also provide a kind of three-dimensional optimized wire selection system, and it comprises aforesaid 3 D stereo scene creation roaming device, does not repeat them here.
Above-described embodiment of the present invention only is the detailed description to preferred embodiment of the present invention, does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.