Summary of the invention
For 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 creates loaming method, comprises step:
Three-dimensional coordinate according to regular grid on the digital elevation model file creates 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 according to the rotation angle of tower position, and in the three-dimensional scenic of described relief block place, draw each coordinate points of shaft tower;
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, carry out three-dimensional range.
A kind of stereo scene of three-dimensional optimized wire selection system creates the roaming device, comprising:
The relief block creating unit is used for creating relief block according to the three-dimensional coordinate of regular grid on the digital elevation model file;
The shaft tower drawing unit, be used for creating according to the three-dimensional coordinate of the each point on the shaft tower figure shaft tower three-dimensional model of shaft tower, calculate the coordinate of each point in three-dimensional scenic of shaft tower according to the rotation angle of tower position, and in the three-dimensional scenic at described relief block place, draw each coordinate points of shaft tower;
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 creates 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 the 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 regular grid on the digital elevation model file creates relief block, enters step S102;
Step S102: the three-dimensional model that creates 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 the model to shaft tower, and when carrying out the three-dimensional scenic roaming, 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, the 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 the 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 the 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, then calculate the coordinate of each point in the three-dimensional scenic of relief block place of tower according to the rotation angle of tower position, in this three-dimensional scenic, draw the each point of tower, thereby realize the simulation to tower.
Subsequently, can produce the physiology parallax by left and right sides stereogram according to the principle of artificial stereoscopic vision, rebuild space scenery stereoscopic vision, realize true 3-D display, carry out three-dimensional range.
The principle schematic of artificial stereoscopic vision has been shown among Fig. 2.When we used eyes observation space far and near different scenery A, B, two produced 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 A, 2 of B obtain respectively image a, b and a ', b ' 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 respectively the conformation on the glass sheet separately for two, still can see space scenery A and the B the same with material object, the human-eye stereoscopic vision effect of Here it is space scenery produces at human eye nethike embrane nest physiology parallax.Its process is: space scenery conformation on photosensitive material, produce the physiology parallax with the photo of eye-observation conformation again, and rebuild 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, namely can realize by the position of adjusting 3 of picture points, camera point, human eye the comprehensive demonstration of 360 degree of three-dimensional scenic.Wherein, image point position is certain any Three Dimensional Ground 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 image with respect to the horizontal parallax size of human eye by regulating the relative position of left and right sides image, can realize the stereoeffect of three-dimensional scenic;
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 large that visual range becomes, and image dwindles, and can simulate human eye away from scene; When the close camera point of picture point, visual range diminishes equally, and image zoom can be simulated human eye near scene, 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, the terrain feature such as massif have only just been simulated by digital elevation model, atural object key element to the earth's surface, do not embody such as house, vegetation, river, road, scissors crossing line of electric force etc., when in the three-dimensional scenic that creates, carrying out three-dimensional range, can't represent truly the information such as atural object key element, also can't simulate real completion scene.Therefore, the stereo scene of three-dimensional optimized wire selection system of the present invention creates 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 can't guarantee the abswolute level of 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 to carry out to image the correction of correcting inclination and height displacement, 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 such texture features of every bit (being colouring information) being superimposed upon on the landform according to correct geographic position 1:1 just, because elevation, textural characteristics all are the information of true atural object, the atural objects such as buildings, trees just have been presented on the relief block.
The present invention program is by the orthography that superposes at the relief block that creates, thereby can simulate truly and embody the important atural object key element of the circuit peripheries such as house, vegetation, river, road, scissors crossing line of electric force.
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 check the electric power transmission line result of design more intuitively in the three-dimensional scenic that it creates, and guarantees the reliability of result of design.Environment around the circuit all is real-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 the atural objects such as house, road, can reflect intuitively the scissors crossing situation simultaneously.Truly calculate the coordinate of each point of two sag lines between the hanging wire point by the standard sag formula, with the analog electrical line of force, and the shaft tower type by practical application creates Tower Model, 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 more wide visual field for line optimization, the information of various necessity is provided, realized real auxiliary route selection, but not single achievements exhibition platform.If check out wire when line data-logging the ground of subsides situation is arranged, can turn back to immediately the route selection module 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 sets up to the real simulation of completion scene, very clear to the environment around the circuit, construction scheme design that can the auxiliary construction road, the assessment of constructional difficulties degree etc. are just the stage of establishing just can reach the degree of depth of construction drawing design.In addition, by using the invention described above scheme, can also on-the-spot circuit corridor and shaft tower destruction situation occur 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 creates 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 creates 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 regular grid on the digital elevation model file;
Shaft tower drawing unit 202, be used for creating according to the three-dimensional coordinate of the each point on the shaft tower figure shaft tower three-dimensional model of 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 again three-dimensional stereoscopic vision demonstration and roaming 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 for the position of human eye, the camera point position that receive set three-dimensional scenic;
Scenery video 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 receives, 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 creates 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 creates 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, the 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 consist of the restriction to protection domain of the present invention.Any modification of doing 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.