CN102663811A - Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition - Google Patents

Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition Download PDF

Info

Publication number
CN102663811A
CN102663811A CN201210079099XA CN201210079099A CN102663811A CN 102663811 A CN102663811 A CN 102663811A CN 201210079099X A CN201210079099X A CN 201210079099XA CN 201210079099 A CN201210079099 A CN 201210079099A CN 102663811 A CN102663811 A CN 102663811A
Authority
CN
China
Prior art keywords
node
building
polygon
new
triangle
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.)
Pending
Application number
CN201210079099XA
Other languages
Chinese (zh)
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.)
Beijing Normal University
Original Assignee
Beijing Normal University
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 Beijing Normal University filed Critical Beijing Normal University
Priority to CN201210079099XA priority Critical patent/CN102663811A/en
Publication of CN102663811A publication Critical patent/CN102663811A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a real-time three-dimensional visualization method of a large-scale scene city building based on spatial cognition. The method is based on a gestalt psychology and a city image theory. A single chain clustering method is used to cluster large-scale building models. Delaunay triangulation and broken line simplification methods are used to rapidly combine and simplify a classification result so as to establish a multiple-level of detail model of the city building and realize interactive three-dimensional visualization of the large-cene and high-density city building. The method provided in the invention accords with principles of approach, similarity, syntropy and the like in the gestalt theory and simultaneously essential factors, such as a city road, a boundary, a landmark city image and the like, can be maintained.

Description

A kind of large scene urban architecture real-time three-dimensional visualization method based on spatial cognition
One, technical field
The present invention relates to a kind of large scene urban architecture real-time three-dimensional visualization method, belong to the Spatial Information Technology field based on spatial cognition.
Two, background technology
In three-dimensional digital city, BUILDINGS MODELS is its most important component as the important embodiment of city speciality.Under the prerequisite that keeps the certain space geometric accuracy; The architectural entity of visual expression large scene; Make it to satisfy people's visual custom; Meeting the objective impression of people to the city, help people accurately and fast to obtain city space information, is the research content of geospatial information cognition and computer vision field.In order to accelerate the visual speed of large scene, high density urban architecture, realize real time interactive operation, need simplify and set up level of detail model (LOD) BUILDINGS MODELS.
Because the city is the system of height hommization, the simplification of building and visual expression not only will be considered the relation on geometry and the topology, more want cognition (cognition just the comprises visual cognition) rule of account of human.Tradition is applicable to the single geometric model that comprises a large amount of detailed information (like relief block etc.) based on the short-cut method of grid more, and comprises a large amount of BUILDINGS MODELSs in the three-dimensional digital city scene, and most BUILDINGS MODELS profile is simple, and reducible leeway is less.Use classic method and successively single BUILDINGS MODELS is simplified, can not effectively improve visual speed, so the merging that the research that BUILDINGS MODELS is simplified mainly concentrates on adjacent building is with comprehensive.There is a very important part to be the comprehensive of buildings in the comprehensive research of map; But two-dimensional map comprehensively can be introduced new summit usually; The introducing on new summit will cause the increase of data volume, for the system of progressive transmission Network Based, also will cause the reduction of transmission and display efficiency.Simultaneously, with respect to the expression of two dimension, the adding of elevation information provides abundant profound information, thereby can be by natural perception and the memory of observer to space and spatial relationship, more directly duplicates and shines upon real world.This requires the process of simplification and the cognitive law that the result should meet the observer, so comprehensive with respect to the building of two dimension, it is to be solved that the three-dimensional building simplified models of large scene has more problem to have.The present invention combines Gestalt theoretical, it is merged factor improve, and makes it more meet human cognitive law, and the building of the method that combines the Delaunay triangulation after to cluster comprehensively simplify, to raise the efficiency.
It is theoretical to the present invention is based on Gestalt psychology and city image; Adopt the strand clustering procedure that extensive BUILDINGS MODELS is carried out cluster; And the method that adopts Delaunay triangulation and polyline merges fast cluster result and simplifies, and sets up large scene with this and builds the detail model.The method that literary composition of the present invention provides well met in the Gestalt theory approaching, similar, wait principle in the same way, kept key elements such as urban road, border, significant city image simultaneously.
Three, summary of the invention
1, purpose: the object of the invention is based on Gestalt psychology and city image theoretical; Adopt the strand clustering procedure that extensive BUILDINGS MODELS is carried out cluster; And the method that adopts Delaunay triangulation and polyline merges fast classification results and simplifies; Set up urban architecture detail model with this, realize that the interactive three-dimensional of large scene, high density urban architecture is visual.
2, technical scheme: a kind of techniqueflow of the large scene urban architecture real-time three-dimensional visualization method based on spatial cognition is as shown in Figure 1, and concrete steps are following:
Step 1: utilize Gestalt psychology and city image theory to carry out the BUILDINGS MODELS cluster
Theoretical according to Gestalt psychology, figure is done as a whole by consciousness, and has certain correlativity between the each several part.People's vision is merged into an integral body according to certain organization rule with each several part, and these combination rules comprise proximity, similarity, good continuity and closure etc.
In building is comprehensive, in order to obtain to meet the result of cognitive law, also need analyzes distance relation, position relation and similarity and continuity etc. between building, and confirm Merge Scenarios according to analysis result.The key of building merge algorithm also is how to obtain its morphological feature and spatial relationship each other.On the other hand, when building merges, not only to consider the relation of adjacent building, also will consider the vision shape characteristic on the yardstick of city simultaneously.City image is meant the image of the high level overview of in people's brains outside urban environment being summarized, and it comprises five dvielements: road, border, zone, node and sign.Road is the subject element of city image perception; The border is meant except unexpected other boundary line of road, like the river etc.; The zone is meant the difference in functionality district in city, like central business district etc.; Node can be a tie point, like the road node, also can be the centrostigma of some characteristic, like square etc.; The characteristics of sign are to have uniqueness and significant in a certain respect.The simplification of urban architecture should keep this five dvielement as far as possible, makes that the building after simplifying meets the image of people to the city, helps people's effective identification spatial information, remains on the direction feeling when browsing.In this five dvielement, road be most important also be should be preferentially maintained.The present invention has combined city image theory and Gestalt psychology when building is comprehensively with simplification on a large scale, effectively kept road information, also takes into account zone and node information simultaneously to a certain extent.
Cluster has two effects, at first is the distribution pattern of identification building target, and the essential characteristic that building will keep and give prominence in simplifying is the characteristic of groups of building; Next is in order to raise the efficiency, and each type is considered to independently, merges and simplifies and will in class, carry out, and the data of other type need not to participate in calculating, and computing velocity is improved.Therefore cluster is one step of key of building shortcut calculation on a large scale.
The present invention adopts Monotone Chain hierarchical clustering method to guarantee that city image key elements such as road are able to preserve after cluster, with adjacency N as the cluster criterion, with the spatial relationship of better reflection buildings on two dimensional surface.
For the convenience of narrating, at first provide one group of definition.
Point arrives the distance on limit (line segment): for a v and straight-line segment s, cross a some v, do the vertical line of s.If intersection point v tDrop on the line segment s, then v and v tDistance be the distance (be referred to as vertical range) of a v to line segment s; Otherwise, get the minimum value of a v in the l two-end-point distance as the distance of a v to s.(being referred to as end-point distances).
Put polygonal distance: the bee-line of putting each limit of polygon.
Bee-line between the polygon: do not have polygon p crossing and relation of inclusion for two 1And p 2,
● calculate p 1All summits to p 2Minimum value in the distance is designated as d 1
● same, ask and calculate p 2All summits are to p 1Bee-line d 2
● get d 1, d 2In smaller value as polygon p 1And p 2Between bee-line d Min, i.e. d Min=min (d 1, d 1);
Two polygonal adjacent edge:
● ask the bee-line of calculating between two polygons, and in asking the calculation process, record d MinCorresponding summit and limit and classification (being vertical range or end-point distances);
● if d MinBe vertical range, suppose d MinPairing polygon vertex is v i, corresponding limit does Ask v respectively iThe limit at place
Figure BSA00000689333400032
With
Figure BSA00000689333400033
Angle (just ask the angle of calculating place, both sides straight line, span is between 0 to 90 degree).
Figure BSA00000689333400034
In, with
Figure BSA00000689333400035
The angle smaller is designated as s 1, the limit Be designated as s 2, s 1, s 2Be called as one group of adjacent edge.
● if d MinBe end-point distances, i.e. a polygonal vertex v iWith another polygonal vertex v iAt a distance of recently, then show adjacent edge will
Figure BSA00000689333400037
The middle generation.Ask
Figure BSA00000689333400038
and the angle of
Figure BSA00000689333400039
; And
Figure BSA000006893334000310
angle with
Figure BSA000006893334000311
, two minimum limit of angle is adjacent edge.
Adjacency between the polygon: calculate s 1, s 2Length be respectively l 1And l 2, with s 2Project to s 1On, trying to achieve its projected length is l 1'; In like manner, s 1At s 2On projected length be respectively l 1' and l 2', polygon P then 1And P 2Between adjacency d NearCan be expressed as:
d near=d min×(1-N×λ) (1)
N=(l 1′/l 1+l 2′/l 2)/2 (2)
Here, N is used for representing the position relation of adjacent edge, works as s 1And s 2When parallel and relative fully, l 1'=l 1, l 2'=l 2, N=1, λ are as weight factor, and value is between 0 to 1., d definite at λ MinUnder the identical situation, N is big more, d NearMore little, should preferentially be gathered is one type.Adopt adjacency, not only can reflect the distance relation between the buildings, also reflected the relative direction relation of relative orientation relation and adjacent edge to a certain extent, λ is used for confirming apart from N at d NearIn the ratio that accounts for, λ is big more, it is big more that N accounts for weight, just means that also the position relation of adjacent edge should be paid the utmost attention to; λ is more little, and it is more little that N accounts for weight, and promptly minor increment d plays a leading role between polygon.The λ value is comparatively desirable at 0.6 o'clock.
In order to calculate polygon p iAnd p jBetween adjacency, asking for of adjacent edge is crucial.In order to raise the efficiency, at first foundation comprises this two convex closures that polygon is new.Adopt the Graham-Scan algorithm when convex closure is set up, its time complexity is O (nlogn).Through convex closure, can reduce and to carry out the number of vertex that distance is asked calculation.
If the convex closure of finally trying to achieve is made up of two polygonal summits, the limit of convex closure can be divided into two types: one type of connection be same polygonal summit, two another kind of end points belong to two polygons, such limit is known as the border.Convex closure comprises two borders, and four summits on these two borders are with p iAnd p jThe summit be divided into two groups, one group of calculating of participating in adjacent edge, another group then can not participated in the calculating of adjacent edge.Shown in the figure on Fig. 2 left side,
Figure BSA00000689333400041
and
Figure BSA00000689333400042
is one group of border.v 1-1And v 1-6With p 1The summit be divided into two groups.First group comprises vertex v 1-1, v 1-2..., v 1-5And v 1-6, these summits are apart from p 2Nearer, should participate in calculating; And another group vertex v 1-7And v 1-8Then away from p 2, when calculating, can not consider.Same p 2Vertex v 2-2And v 2-3Also can not participate in calculating.So there is p on the summit of participating at last calculating 1V 1-1, v 1-2..., v 1-5And v 1-6, and p 2V 2-4, v 2-5..., v 2-8, v 2-1, final calculating is p 1The limit
Figure BSA00000689333400043
And p 2The limit
Figure BSA00000689333400044
It is one group of adjacent edge
If the convex closure of finally trying to achieve is made up of a polygonal summit fully, show that this polygonal convex closure has comprised another polygon.Shown in the figure on Fig. 2 the right, p 2Be positioned at polygon p fully 1Convex closure in, so big that polygonal convex closure will surround one or more slits with this polygon, and little polygon must be positioned at a slit.The calculating of adjacent edge is participated on the point and the little polygonal summit that form this slit.In the figure of Fig. 2 the right, vertex v is arranged 1-7, v 1-8, v 1-9, v 1-10Slit that surrounds and vertex v 1-5, v 1-1, v 1-6The another one slit that surrounds.Through judging p 2Be positioned at { v 1-7, v 1-8, v 1-9, v 1-10In, so find the solution adjacent edge, only need use p 2Summit and p 1Vertex v 1-7, v 1-8, v 1-9, v 1-10
Step 2: the merging of BUILDINGS MODELS is with comprehensive between cluster
(1) merging of building on the two-dimensional projection plane between the class
After cluster, the polygon in every type is merged into a polygon, the polygon after being combined carries out comprehensively.When two polygons were merged into a new polygon, inevitable white space was included in the newly-generated polygon.At merging phase, utilize the summit of participating in adjacent edge again, generate the Delaunay triangulation network of belt restraining condition, then, definition connects triangle to (T 1, T 2), a diabolo (T 1, T 2) being known as that to connect triangle right, and if only if this triangle is to satisfying following three conditions:
● T1 and T2 share a limit, and this limit connects p 1And p 2
● another of T1 limit s 1Connect p 1Two summits;
● another of T2 limit s 2Connect p 2Two summits.
For one right in abutting connection with triangle, its limit s 1And s 2Adjacency be d by note PairrEach triangle of adjacent triangle centering all has a limit connecting to belong to same leg-of-mutton two summits.For this limit, two situation are arranged: a kind of situation is that these two summits are adjacent, and promptly this edge overlaps with former polygonal limit, otherwise then is second kind of situation.If two triangles all satisfy first kind of situation, it is right then to be referred to as strict adjacent triangle, otherwise it is right to be referred to as non-strict adjacent triangle.If have one or more strictnesses right between two polygons to be combined, then calculate the right d of these triangles in abutting connection with triangle Pairr, with having minimum d PairrStrictness connect two polygons to be combined to produce new polygon in abutting connection with triangle to being used for.If do not have strict adjacent triangle right between two polygons, then choose and have minimum d PairNon-strict contiguous triangle to connecting polygon.
(2) two-dimensional projection plane amalgamation result is comprehensive
The polygon that is formed by connecting through above-mentioned way has comprised too much detailed information, and it is further comprehensive to be combined the result.Adopt the Visvalingam-Whyatt polyline reduction algorithm, remove tiny sunk part.For narrating conveniently, define one type of triangle and be the depression triangle: according to counterclockwise direction, vertex v on the polygon iWith its former and later two vertex v I-1, v I+1, form triangle { v I-1, v i, v I+1, if along from v I-1Through v iAnd v I+1Come back to v I-1Direction be CW, then this triangle is defined as the depression triangle.Summit to two polygon portion other than connected portion travels through judgement successively, and the set of vertices triangularity that each point is adjacent with its front and back judges whether this triangle is the depression triangle.If, then write down its area, after traversal finishes, the corresponding summit of depression triangle that the deletion area is minimum.The process on reference area and deletion summit occurs up to the triangle that do not cave in above repeating, and perhaps all leg-of-mutton areas that cave in are all greater than till the given threshold value.Area threshold δ a tries to achieve through formula (3):
δa=a avg/λ (3)
Suppose that two polygons of tape merge are positioned at the l layer of tree, a AvgBe the mean value of all area of a polygon of this layer.λ is the weight of user's appointment, and λ is set to 50.After having removed tiny concave polygon, the result after simplifying is further traveled through, this time the purpose of traversal is to be reduced to a limit to essentially identical two adjacent edges of direction.Calculate each to adjacent edge, if its angle is greater than certain angle threshold (this threshold value is set to 175 °), then these two limits can be reduced to a limit.
The present invention also meets visual law simultaneously reducing detailed information and keeping between the profile information of original building and obtained balance preferably, and promptly contiguous object is done as a whole by cognitive.Simultaneously, also avoided too much blank ground to be comprised in the newly-generated building, so city image information such as square can be able to preserve.
3) by 2.5 new dimension BUILDINGS MODELSs of comprehensive generation
For newly-generated polygon, the roof height of the BUILDINGS MODELS that it is corresponding equals to add the original two BUILDINGS MODELSs average height separately behind the weight coefficient, shown in formula (4):
h = Σ i = 1 n ( h i · a i ) / Σ i = 1 n a i - - - ( 4 )
In formula (4), h is the height after merging, h iBe the height of child node, a iBe the projected area of child node building on two dimensional surface xoy.
For the crossing situation in the class, then, two polygons are merged through asking the calculation intersection point, remove initiate intersection point then, adopt the Visvalingam-Whyatt algorithm synthesis again, high computational is the same.For the situation that comprises in the class, directly to get the bigger polygon of area and go up final amalgamation result as two dimensional surface xoy, height recomputates according to formula (4) and gets final product.
Step 3: make up the multiresolution urban architecture model
After pretreatment stage is accomplished, adopt the model after the tree structure storage is simplified.Because there is not the introducing on new summit, apex coordinate stores separately, each node of tree structure, and the numbering of only storing its corresponding vertex, rather than the storage node coordinate is as shown in Figure 3.Can avoid same summit to be repeated storage like this, can reduce storage space.In addition, each node also needs information such as storing highly, area.
The strand clustering procedure can be so that road be able to preserve after cluster with other boundary informations.But the strand clustering procedure only merges two buildings at every turn.The clustering tree level of so final generation is dark excessively, if will contain n the final cluster of data set of building for having only a node, the clustering tree that then generates will have the n layer.To take more storage space like this.For n initial node, be lg (n) by its degree of depth that generates the binary tree of complete equipilibrium.If with the degree of depth of tree be reduced to n ' (n ' can be provided as lg (n) or lg (n)/λ), can pass through n '-1 threshold value, the degree of depth of setting is compressed to n '.
In the process of cluster, when running to certain step,, then produce a threshold value herein if the used adjacency d of this step cluster is far longer than the adjacency in several steps.Based on such thought, when cluster, note used adjacency of each step; And be stored in the array; This array is referred to as distance sequence, according to the character of strand clustering procedure, in distance sequence; D is tactic by from small to large, the rate of growth r of adjacency iFor
r i=(d i+1-d i)/d i (5)
D wherein iAnd d I+12 adjacent adjacencies among the expression distance sequence.
Because hope the number of plies of tree is reduced to n ', so need n '-1 threshold value.So choose maximum n '-1 r,, generate a threshold value D for each r.By r iWhen generating D, be worth desirable (d I+1+ d i)/2, perhaps any one greater than d iAnd d I+1Value.Then with this n '-1 threshold value according to from small to large sequential storage in array threshold sequence, as shown in Figure 4, to be used for that the number of plies of tree is reduced to n '.
But the tree that generates like this is not a balance, promptly some node have a too much child node, promptly a lot of buildings can be in viewpoint when far away, unexpected quilt is merged into building.In order to avoid the generation of this situation as far as possible, the maximum child node that each node can have is set counts δ p.For the bearing-age tree of n ' the layer complete equipilibrium that has n building to generate, for each non-leaf node, the child node number that it has is p:
p = int ( n n ′ - 1 ) - - - ( 6 )
Therefore, δ p can be arranged to a value greater than p, like 2p.For certain one deck of tree, if this layer has m node, the always total m of these nodes ChIndividual child node, m so ChShould be less than or equal to m * δ p.According to this condition, inspection is by the node of each layer of the tree of threshold sequence compression generation and the number of its child node.When by D lWhen the compression several layers becomes one new layer, the m if this layer does not satisfy condition Ch≤m * δ p then means D lAnd D L-1Span too big, to such an extent as to a lot of building is merged into a building suddenly.So in threshold value, D L-1And D lBetween insert a new threshold value D NewD NewGenerative process following: at first, in distance sequence, extract and be positioned at interval [D L-1, D l] an interior cross-talk array, maximum r place produces new threshold value D in this subnumber group then NewUse D NewProduce new layer, check this new layer of m that whether satisfies condition Ch≤m * δ p.If do not satisfy, then use interval [D L-1, D New] in distance sequence, extract new subnumber group, upgrade D with producing new threshold value NewOld value.Repeat said process, up to by D NewThe new layer of m that satisfies condition that produces Ch≤m * δ p is then with D NewBe inserted into D L-1And D lBetween.
Step 4: Interactive Visualization
Set up the BUILDINGS MODELS of detail, higher along with moving of viewpoint from the level of detail of the near BUILDINGS MODELS of viewpoint distance, and the model rendering of the available lower level of building at a distance.Be that standard is different with the distance in the classic method, the present invention is the standard that level of detail is divided to merge the projected size of error on screen that produces.The distance of model apart from viewpoint not only considered in the division of this standard, also considered the size of the error of model own.
In visualization process, the error that human eye can obviously be experienced mainly can be divided into two types, and one type relevant with highly, though the child node height is different, after merging, its father node has only an elevation information; Another kind of relevant with area, in the BUILDINGS MODELS merging process, originally blank zone can be included in the polygon after the merging between the building, causes on the two-dimensional level face, and the area of father node is greater than the area of its child node.After generating three-dimensional model, the building roof area also can correspondingly increase.
These two types of errors all need be considered.But the roaming mode is not simultaneously, and the influence to visual effect of these two types of errors is different.When the building internetwork roaming; The basic along continuous straight runs of sight line, this moment, building was at a distance often blocked by building nearby, so the long-pending variation of building surface at a distance is difficult for coming to light; And person walks is between building; Perception to the building roof is positioned at backseat, but the height change of building can indicate the height of buildings especially at a distance by strong by perception.So should stress to consider height error this moment.When the roaming mode changed top-down looking down into, the profile on building roof was the information of primary significance that human eye gets access to, and elevation information is positioned at backseat.So should mainly consider the distortion of roof contour this moment.
To with non-leaf node, circulation is asked for it and is comprised the high building height H in the child node Max, and the height H of minimum building MinStep is following:
If leaf node is positioned at the n layer, then ask in the n-1 layer H of each node earlier MaxAnd H Min, and then ask and calculate the n-2 layer, in all child nodes of each node, maximum H MaxH as this node Max, minimum H MinH as this node MinRepeat this process, up to having calculated till the 0th layer.Definition discrepancy in elevation Δ H=H Max-H Min, represent the discrepancy in elevation between the high building and minimum building in the pairing primitive architecture of each node.Obviously, for leaf node, Δ H=0.The roof area of definition father node deducts its pairing primitive architecture crowd's roof area sum, as newly-increased roof area Δ A.The process of resolving also is to adopt bottom-up circulation, confirms two threshold value δ thus H, δ A, its meaning does, and the corresponding original groups of building of child node project on the screen, and its high building and minimum building height difference should be less than δ HIndividual pixels tall, newly-increased roof area project to should be less than δ on the screen AIndividual pixel.
Adopt the difference in height of high building and minimum building height under the following method approximate expression screen coordinate system.If the vertical field of view angle FOV of video camera, and nearly cutting identity distance is from being D Near, then can try to achieve nearly cutting face height H Near
H near=D near×tan(FOV)×2 (7)
The viewport height is H ViewIndividual pixel, n on the corresponding screen of unit length on the then near cutting face ScaleIndividual pixel, n Scale=H View/ H NearProject on the nearly cutting face discrepancy in elevation Δ H is approximate, for each node, the distance of establishing this node center and video camera is D Node, considering has the angle theta of sight line and surface level,
ΔH′=ΔH×(D near/D node)×cos(θ)
ΔH view=ΔH′×n scale (8)
Δ H ViewBe the pixel count of discrepancy in elevation Δ H correspondence on screen.Same, for Δ A, be similar to earlier and try to achieve its projection on nearly cutting face, try to achieve its projected size Δ A on screen again View
ΔA′=ΔA×(D near/D node) 2×sin(θ)
ΔA view=ΔA′×n scale (9)
In the process of scene walkthrough, the angle of direction of visual lines and video camera are apart from the position real-time change of node.Calculate Δ Hview and Δ Aview in real time, if Δ Hview<δ H, and Δ Aview<δ A, then play up this node; Otherwise this node is not played up, and recurrence is judged its child node.
3, advantage and effect: (1) the present invention combines city image and Gestalt psychology theory; Standard when a kind of new distance metric mode is provided as the building cluster; BUILDINGS MODELS is merged the factor to be improved; Make it more meet human cognitive law; And the extensive building of the method that combines the Delaunay triangulation after to cluster comprehensively simplify, and makes amalgamation result reducing detailed information and approaching and obtain balance preferably between these two targets of original building profile, improved large-scale city architectural rendering and visual efficient.(2) method provided by the invention met in the Gestalt psychology theory approaching, similar, wait principle in the same way, kept key elements such as urban road, border, significant city image simultaneously.
Four, description of drawings
Fig. 1 techniqueflow synoptic diagram of the present invention
Fig. 2 polygonal convex closure to be combined (shown in the dotted line)
Fig. 3 simplifies result's tree-like storage mode.The summit numbering of corresponding this node of storage of array of each node
The generation flow process of used threshold value during the compression of Fig. 4 hierarchical tree
Fig. 5 (a) primitive architecture model equatorial projection figure
Fig. 5 (b) adopts the merging synoptic diagram of the building equatorial projection figure of contiguous cluster
Fig. 5 (c) adopts the merging synoptic diagram (the merging degree increases gradually) of the building equatorial projection figure of contiguous cluster
Fig. 5 (d) adopts the merging synoptic diagram (the merging degree increases once more) of the building equatorial projection figure of contiguous cluster
Fig. 5 (e) corresponding with (b) adopted the amalgamation result of Euclidean distance
Fig. 5 (f) adopts the amalgamation result of Euclidean distance with (c) corresponding
Fig. 5 (g) adopts the amalgamation result of Euclidean distance with (d) corresponding
Fig. 6 (a) simplifies consuming time and asd number graph of a relation
Fig. 6 (b) simplifies consuming time and number of vertex magnitude relation figure
The visual city of Fig. 7 the present invention three-dimensional scene
Five, embodiment
The present invention relates to a kind of large scene urban architecture real-time three-dimensional visualization method based on spatial cognition, the concrete steps of this method are following:
Step 1: utilize Gestalt psychology and city image theory to carry out the BUILDINGS MODELS cluster
Theoretical according to Gestalt psychology, figure is done as a whole by consciousness, and has certain correlativity between the each several part.People's vision is merged into an integral body according to certain organization rule with each several part, and these combination rules comprise proximity, similarity, good continuity and closure etc.
In building is comprehensive, in order to obtain to meet the result of cognitive law, also need analyzes distance relation, position relation and similarity and continuity etc. between building, and confirm Merge Scenarios according to analysis result.The key of building merge algorithm also is how to obtain its morphological feature and spatial relationship each other.On the other hand, when building merges, not only to consider the relation of adjacent building, also will consider the vision shape characteristic on the yardstick of city simultaneously.City image is meant the image of the high level overview of in people's brains outside urban environment being summarized, and it comprises five dvielements: road, border, zone, node and sign.Road is the subject element of city image perception; The border is meant except unexpected other boundary line of road, like the river etc.; The zone is meant the difference in functionality district in city, like central business district etc.; Node can be a tie point, like the road node, also can be the centrostigma of some characteristic, like square etc.; The characteristics of sign are to have uniqueness and significant in a certain respect.The simplification of urban architecture should keep this five dvielement as far as possible, makes that the building after simplifying meets the image of people to the city, helps people's effective identification spatial information, remains on the direction feeling when browsing.In this five dvielement, road be most important also be should be preferentially maintained.The present invention has combined city image theory and Gestalt psychology when building is comprehensively with simplification on a large scale, effectively kept road information, also takes into account zone and node information simultaneously to a certain extent.
Cluster has two effects, at first is the distribution pattern of identification building target, and the essential characteristic that building will keep and give prominence in simplifying is the characteristic of groups of building; Next is in order to raise the efficiency, and each type is considered to independently, merges and simplifies and will in class, carry out, and the data of other type need not to participate in calculating, and computing velocity is improved.Therefore cluster is one step of key of building shortcut calculation on a large scale.
The present invention adopts Monotone Chain hierarchical clustering method to guarantee that city image key elements such as road are able to preserve after cluster, with adjacency N as the cluster criterion, with the spatial relationship of better reflection buildings on two dimensional surface.
For the convenience of narrating, at first provide one group of definition.
Point arrives the distance on limit (line segment): for a v and straight-line segment s, cross a some v, do the vertical line of s.If intersection point v tDrop on the line segment s, then v and v tDistance be the distance (be referred to as vertical range) of a v to line segment s; Otherwise, get the minimum value of a v in the l two-end-point distance as the distance of a v to s.(being referred to as end-point distances).
Put polygonal distance: the bee-line of putting each limit of polygon.
Bee-line between the polygon: do not have polygon p crossing and relation of inclusion for two 1And p 2,
● calculate p 1All summits to p 2Minimum value in the distance is designated as d 1
● same, ask and calculate p 2All summits are to p 1Bee-line d 2
● get d 1, d 2In smaller value as polygon p 1And p 2Between bee-line d Min, i.e. d Min=min (d 1, d 1);
Two polygonal adjacent edge:
● ask the bee-line of calculating between two polygons, and in asking the calculation process, record d MinCorresponding summit and limit and classification (being vertical range or end-point distances);
● if d MinBe vertical range, suppose d MinPairing polygon vertex is v i, corresponding limit does
Figure BSA00000689333400101
Ask v respectively iThe limit at place
Figure BSA00000689333400102
With
Figure BSA00000689333400103
Angle (just ask the angle of calculating place, both sides straight line, span is between 0 to 90 degree).
Figure BSA00000689333400104
In, with
Figure BSA00000689333400105
The angle smaller is designated as s 1, the limit
Figure BSA00000689333400106
Be designated as s 2, s 1, s 2Be called as one group of adjacent edge.
● if d MinBe end-point distances, i.e. a polygonal vertex v iWith another polygonal vertex v iAt a distance of recently, then show adjacent edge will
Figure BSA00000689333400107
The middle generation.Ask
Figure BSA00000689333400108
and the angle of
Figure BSA00000689333400109
; And
Figure BSA000006893334001010
angle with
Figure BSA000006893334001011
, two minimum limit of angle is adjacent edge.
Adjacency between the polygon: calculate s 1, s 2Length be respectively l 1And l 2, with s 2Project to s 1On, trying to achieve its projected length is l 1'; In like manner, s 1At s 2On projected length be respectively l 1' and l 2', polygon P then 1And P 2Between adjacency d NearCan be expressed as:
d near=d min×(1-N×λ) (1)
N=(l 1′/l 1+l 2′/l 2)/2 (2)
Here, N is used for representing the position relation of adjacent edge, works as s 1And s 2When parallel and relative fully, l 1'=l 1, l 2'=l 2, N=1, λ are as weight factor, and value is between 0 to 1., d definite at λ MinUnder the identical situation, N is big more, d NearMore little, should preferentially be gathered is one type.Adopt adjacency, not only can reflect the distance relation between the buildings, also reflected the relative direction relation of relative orientation relation and adjacent edge to a certain extent, λ is used for confirming apart from N at d NearIn the ratio that accounts for, λ is big more, it is big more that N accounts for weight, just means that also the position relation of adjacent edge should be paid the utmost attention to; λ is more little, and it is more little that N accounts for weight, and promptly minor increment d plays a leading role between polygon.The λ value is comparatively desirable at 0.6 o'clock.
In order to calculate polygon p iAnd p jBetween adjacency, asking for of adjacent edge is crucial.In order to raise the efficiency, at first foundation comprises this two convex closures that polygon is new.Adopt the Graham-Scan algorithm when convex closure is set up, its time complexity is O (nlog n).Through convex closure, can reduce and to carry out the number of vertex that distance is asked calculation.
If the convex closure of finally trying to achieve is made up of two polygonal summits, the limit of convex closure can be divided into two types: one type of connection be same polygonal summit, two another kind of end points belong to two polygons, such limit is known as the border.Convex closure comprises two borders, and four summits on these two borders are with p iAnd p jThe summit be divided into two groups, one group of calculating of participating in adjacent edge, another group then can not participated in the calculating of adjacent edge.Shown in the figure on Fig. 2 left side, and
Figure BSA00000689333400112
is one group of border.v 1-1And v 1-6With p 1The summit be divided into two groups.First group comprises vertex v 1-1, v 1-2..., v 1-5And v 1-6, these summits are apart from p 2Nearer, should participate in calculating; And another group vertex v 1-7And v 1-8Then away from p 2, when calculating, can not consider.Same p 2Vertex v 2-2And v 2-3Also can not participate in calculating.So there is p on the summit of participating at last calculating 1V 1-1, v 1-2..., v 1-5And v 1-6, and p 2V 2-4, v 2-5..., v 2-8, v 2-1, final calculating is p 1The limit
Figure BSA00000689333400113
And p 2The limit It is one group of adjacent edge
If the convex closure of finally trying to achieve is made up of a polygonal summit fully, show that this polygonal convex closure has comprised another polygon.Shown in the figure on Fig. 2 the right, p 2Be positioned at polygon p fully 1Convex closure in, so big that polygonal convex closure will surround one or more slits with this polygon, and little polygon must be positioned at a slit.The calculating of adjacent edge is participated on the point and the little polygonal summit that form this slit.In the figure of Fig. 2 the right, vertex v is arranged 1-7, v 1-8, v 1-9, v 1-10Slit that surrounds and vertex v 1-5, v 1-1, v 1-6The another one slit that surrounds.Through judging p 2Be positioned at { v 1-7, v 1-8, v 1-9, v 1-10In, so find the solution adjacent edge, only need use p 2Summit and p 1Vertex v 1-7, v 1-8, v 1-9, v 1-10
Step 2: the merging of BUILDINGS MODELS is with comprehensive between cluster
(1) merging of building on the two-dimensional projection plane between the class
After cluster, the polygon in every type is merged into a polygon, the polygon after being combined carries out comprehensively.When two polygons were merged into a new polygon, inevitable white space was included in the newly-generated polygon.At merging phase, utilize the summit of participating in adjacent edge again, generate the Delaunay triangulation network of belt restraining condition, then, definition connects triangle to (T 1, T 2), a diabolo (T 1, T 2) being known as that to connect triangle right, and if only if this triangle is to satisfying following three conditions:
● T1 and T2 share a limit, and this limit connects p 1And p 2
● another of T1 limit s 1Connect p 1Two summits;
● another of T2 limit s 2Connect p 2Two summits.
For one right in abutting connection with triangle, its limit s 1And s 2Adjacency be d by note PairrEach triangle of adjacent triangle centering all has a limit connecting to belong to same leg-of-mutton two summits.For this limit, two situation are arranged: a kind of situation is that these two summits are adjacent, and promptly this edge overlaps with former polygonal limit, otherwise then is second kind of situation.If two triangles all satisfy first kind of situation, it is right then to be referred to as strict adjacent triangle, otherwise it is right to be referred to as non-strict adjacent triangle.If have one or more strictnesses right between two polygons to be combined, then calculate the right d of these triangles in abutting connection with triangle Pairr, with having minimum d PairrStrictness connect two polygons to be combined to produce new polygon in abutting connection with triangle to being used for.If do not have strict adjacent triangle right between two polygons, then choose and have minimum d PairNon-strict contiguous triangle to connecting polygon.
(2) two-dimensional projection plane amalgamation result is comprehensive
The polygon that is formed by connecting through above-mentioned way has comprised too much detailed information, and it is further comprehensive to be combined the result.Adopt the Visvalingam-Whyatt polyline reduction algorithm, remove tiny sunk part.For narrating conveniently, define one type of triangle and be the depression triangle: according to counterclockwise direction, vertex v on the polygon iWith its former and later two vertex v I-1, v I+1, form triangle { v I-1, v i, v I+1, if along from v I-1Through v iAnd v I+1Come back to v I-1Direction be CW, then this triangle is defined as the depression triangle.Summit to two polygon portion other than connected portion travels through judgement successively, and the set of vertices triangularity that each point is adjacent with its front and back judges whether this triangle is the depression triangle.If, then write down its area, after traversal finishes, the corresponding summit of depression triangle that the deletion area is minimum.The process on reference area and deletion summit occurs up to the triangle that do not cave in above repeating, and perhaps all leg-of-mutton areas that cave in are all greater than till the given threshold value.Area threshold δ a tries to achieve through formula (3):
δa=a avg/λ (3)
Suppose that two polygons of tape merge are positioned at the l layer of tree, a AvgBe the mean value of all area of a polygon of this layer.λ is the weight of user's appointment, and λ is set to 50.After having removed tiny concave polygon, the result after simplifying is further traveled through, this time the purpose of traversal is to be reduced to a limit to essentially identical two adjacent edges of direction.Calculate each to adjacent edge, if its angle is greater than certain angle threshold (this threshold value is set to 175 °), then these two limits can be reduced to a limit.
The present invention also meets visual law simultaneously reducing detailed information and keeping between the profile information of original building and obtained balance preferably, and promptly contiguous object is done as a whole by cognitive.Simultaneously, also avoided too much blank ground to be comprised in the newly-generated building, so city image information such as square can be able to preserve.
3) by 2.5 new dimension BUILDINGS MODELSs of comprehensive generation
For newly-generated polygon, the roof height of the BUILDINGS MODELS that it is corresponding equals to add the original two BUILDINGS MODELSs average height separately behind the weight coefficient, shown in formula (4):
h = Σ i = 1 n ( h i · a i ) / Σ i = 1 n a i - - - ( 4 )
In formula (4), h is the height after merging, h iBe the height of child node, a iBe the projected area of child node building on two dimensional surface xoy.
For the crossing situation in the class, then, two polygons are merged through asking the calculation intersection point, remove initiate intersection point then, adopt the Visvalingam-Whyatt algorithm synthesis again, high computational is the same.For the situation that comprises in the class, directly to get the bigger polygon of area and go up final amalgamation result as two dimensional surface xoy, height recomputates according to formula (4) and gets final product.
Step 3: make up the multiresolution urban architecture model
After pretreatment stage is accomplished, adopt the model after the tree structure storage is simplified.Because there is not the introducing on new summit, apex coordinate stores separately, each node of tree structure, and the numbering of only storing its corresponding vertex, and the storage node coordinate is not as shown in Figure 3.Can avoid same summit to be repeated storage like this, can reduce storage space.In addition, each node also needs information such as storing highly, area.
The strand clustering procedure can be so that road be able to preserve after cluster with other boundary informations.But the strand clustering procedure only merges two buildings at every turn.The clustering tree level of so final generation is dark excessively, if will contain n the final cluster of data set of building for having only a node, the clustering tree that then generates will have the n layer.To take more storage space like this.For n initial node, be lg (n) by its degree of depth that generates the binary tree of complete equipilibrium.If with the degree of depth of tree be reduced to n ' (n ' can be provided as lg (n) or lg (n)/λ), can pass through n '-1 threshold value, the degree of depth of setting is compressed to n '.
In the process of cluster, when running to certain step,, then produce a threshold value herein if the used adjacency d of this step cluster is far longer than the adjacency in several steps.Based on such thought, when cluster, note used adjacency of each step; And be stored in the array; This array is referred to as distance sequence, according to the character of strand clustering procedure, in distance sequence; D is tactic by from small to large, the rate of growth r of adjacency iFor
r i=(d i1-d i)/d i (5)
D wherein iAnd d I+12 adjacent adjacencies among the expression distance sequence.
Because hope the number of plies of tree is reduced to n ', so need n '-1 threshold value.So choose maximum n '-1 r,, generate a threshold value D for each r.By r iWhen generating D, be worth desirable (d I+1+ d i)/2, perhaps any one greater than d iAnd d I+1Value.Then with this n '-1 threshold value according to from small to large sequential storage in array threshold sequence, as shown in Figure 4, to be used for that the number of plies of tree is reduced to n '.
But the tree that generates like this is not a balance, promptly some node have a too much child node, promptly a lot of buildings can be in viewpoint when far away, unexpected quilt is merged into building.In order to avoid the generation of this situation as far as possible, the maximum child node that each node can have is set counts δ p.For the bearing-age tree of n ' the layer complete equipilibrium that has n building to generate, for each non-leaf node, the child node number that it has is p:
p = int ( n n ′ - 1 ) - - - ( 6 )
Therefore, δ p can be arranged to a value greater than p, like 2p.For certain one deck of tree, if this layer has m node, the always total m of these nodes ChIndividual child node, m so ChShould be less than or equal to m * δ p.According to this condition, inspection is by the node of each layer of the tree of threshold sequence compression generation and the number of its child node.When by D lWhen the compression several layers becomes one new layer, the m if this layer does not satisfy condition Ch≤m * δ p then means D lAnd D L-1Span too big, to such an extent as to a lot of building is merged into a building suddenly.So in threshold value, D L-1And D lBetween insert a new threshold value D NewD NewGenerative process following: at first, in distance sequence, extract and be positioned at interval [D L-1, D l] an interior cross-talk array, maximum r place produces new threshold value D in this subnumber group then NewUse D NewProduce new layer, check this new layer of m that whether satisfies condition Ch≤m * δ p.If do not satisfy, then use interval [D L-1, D New] in distance sequence, extract new subnumber group, upgrade D with producing new threshold value NewOld value.Repeat said process, up to by D NewThe new layer of m that satisfies condition that produces Ch≤m * δ p is then with D NewBe inserted into D L-1And D lBetween.
Step 4: Interactive Visualization
Set up the BUILDINGS MODELS of detail, higher along with moving of viewpoint from the level of detail of the near BUILDINGS MODELS of viewpoint distance, and the model rendering of the available lower level of building at a distance.Be that standard is different with the distance in the classic method, the present invention is the standard that level of detail is divided to merge the projected size of error on screen that produces.The distance of model apart from viewpoint not only considered in the division of this standard, also considered the size of the error of model own.
In visualization process, the error that human eye can obviously be experienced mainly can be divided into two types, and one type relevant with highly, though the child node height is different, after merging, its father node has only an elevation information; Another kind of relevant with area, in the BUILDINGS MODELS merging process, originally blank zone can be included in the polygon after the merging between the building, causes on the two-dimensional level face, and the area of father node is greater than the area of its child node.After generating three-dimensional model, the building roof area also can correspondingly increase.
These two types of errors all need be considered.But the roaming mode is not simultaneously, and the influence to visual effect of these two types of errors is different.When the building internetwork roaming; The basic along continuous straight runs of sight line, this moment, building was at a distance often blocked by building nearby, so the long-pending variation of building surface at a distance is difficult for coming to light; And person walks is between building; Perception to the building roof is positioned at backseat, but the height change of building can indicate the height of buildings especially at a distance by strong by perception.So should stress to consider height error this moment.When the roaming mode changed top-down looking down into, the profile on building roof was the information of primary significance that human eye gets access to, and elevation information is positioned at backseat.So should mainly consider the distortion of roof contour this moment.
To with non-leaf node, circulation is asked for it and is comprised the high building height H in the child node Max, and the height H of minimum building MinStep is following:
If leaf node is positioned at the n layer, then ask in the n-1 layer H of each node earlier MaxAnd H Min, and then ask and calculate the n-2 layer, in all child nodes of each node, maximum H MaxH as this node Max, minimum H MinH as this node MinRepeat this process, up to having calculated till the 0th layer.Definition discrepancy in elevation Δ H=H Max-H Min, represent the discrepancy in elevation between the high building and minimum building in the pairing primitive architecture of each node.Obviously, for leaf node, Δ H=0.The roof area of definition father node deducts its pairing primitive architecture crowd's roof area sum, as newly-increased roof area Δ A.The process of resolving also is to adopt bottom-up circulation, confirms two threshold value δ thus H, δ A, its meaning does, and the corresponding original groups of building of child node project on the screen, and its high building and minimum building height difference should be less than δ HIndividual pixels tall, newly-increased roof area project to should be less than δ on the screen AIndividual pixel.
Adopt the difference in height of high building and minimum building height under the following method approximate expression screen coordinate system.If the vertical field of view angle FOV of video camera, and nearly cutting identity distance is from being D Near, then can try to achieve nearly cutting face height H Near
H near=D near×tan(FOV)×2 (7)
The viewport height is H ViewIndividual pixel, n on the corresponding screen of unit length on the then near cutting face ScaleIndividual pixel, n Scale=H View/ H NearProject on the nearly cutting face discrepancy in elevation Δ H is approximate, for each node, the distance of establishing this node center and video camera is D Node, considering has the angle theta of sight line and surface level,
ΔH′=ΔH×(D near/D node)×cos(θ)
ΔH view=ΔH′×n scale (8)
Δ H ViewBe the pixel count of discrepancy in elevation Δ H correspondence on screen.Same, for Δ A, be similar to earlier and try to achieve its projection on nearly cutting face, try to achieve its projected size Δ A on screen again View
ΔA′=ΔA×(D near/D node) 2×sin(θ)
ΔA view=ΔA′×n scale (9)
In the process of scene walkthrough, the angle of direction of visual lines and video camera are apart from the position real-time change of node.Calculate Δ Hview and Δ Aview in real time, if Δ Hview<δ H, and Δ Aview<δ A, then play up this node; Otherwise this node is not played up, and recurrence is judged its child node.
Embodiment 1:
Dispose 3.00GHz Intel (R) Pentium (R) 4CPU at one, the 2GB internal memory is implemented on the computing machine of ATI mobility radeon X300 video card.
At first contrasted the cluster result that adopts adjacency and Euclidean distance.Fig. 5 (a) is the original building polygon, and it contains 37 buildings, and the degree of depth of the hierachy number after hoping to compress is int (lg (37)/1.5); Cluster result when Fig. 5 (b), (c), (d) are clustering criteria for adopting adjacency, and the merging degree increases successively gradually; Fig. 5 (e), (f), (g) adopt Euclidean distance as the simplification result apart from the factor.Can find out that through contrast the present invention adopts adjacency, better, better keep road information simultaneously with respect to trend and the similarity between building of groups of building.
To the efficient that building is simplified, the present invention and document " Chang, R., Butkiewicz; T., Ziemkiewicz, C., Wartell; z., Ribarsky, W.and Pollard, N.; 2008.Legible Simplification of Textured Urban Models, IEEEComputer Graphics and Applications, 28 (3), 27-36. " contrast.The algorithm complex of the document is O (n under the worst situation 3), it is O (n that the present invention asks the time complexity of calculating the Delaunay triangulation 2), adopt the convex closure algorithm that it is reduced to O (m 2), same, the time complexity that adjacency is asked for also is O (m 2).M be two adjacent triangles do not have disallowablely, participate in the number of vertex of Delaunay triangulation, and the algorithm time complexity of convex closure is O (nlogn).The complexity of polyline of the present invention is O (n log n).Therefore, in the whole process, time complexity of the present invention will be lower than O (n 2).Fig. 6 has shown the relation between the number of vertex on simplification time and BUILDINGS MODELS number and the 2 d plane picture; Dotted portion is the quafric curve that is simulated by experimental data among the figure; It is thus clear that along with the increase of data volume, the simplification time approximately increases with the speed of quadratic power.
Merging integrated approach of the present invention also compares with people's such as Article document Chang method.The document adopts the method for convex closure evolution, at first generates polygonal convex closure to be combined, and the limit to convex closure splits then, up to the limit of convex closure number count greater than two child node limits summation 75% till.Because the shape of building often differs greatly, split when finishing, most detailed information is deleted in possible some type, and most detailed information still is retained in other types, so cause the degree of integration meeting of different cluster results different.Compare; The present invention is to the node that is positioned at same layer when comprehensive; Adopt the area identical threshold value,, make amalgamation result reduce detailed information and approach between these two targets of original building profile and obtain balance preferably so can guarantee with the degree of integration of the node of one deck approximately basically.
For further proving advantage of the present invention, build data as check with the part of Haidian District Beijing.These data comprise 35,138 buildings, totally 913,603 building projection summits.The degree of depth of hierarchical tree is compressed to int (lg1809)/1.5), promptly 9 layers.When visual, discrepancy in elevation threshold value δ HBe set at 20 pixels, newly-increased roof area threshold value δ ABe set at 200 pixels, its display effect is as shown in Figure 7.The present invention has reduced the level of detail of building at a distance, has effectively reduced to play up consuming timely, has kept city images such as groups of building, road, sign atural object preferably simultaneously, between rendering efficiency and rendering effect, has kept balance preferably.

Claims (1)

1. the step based on the large scene urban architecture real-time three-dimensional visualization method of spatial cognition comprises:
(1) based on Gestalt psychology and the theoretical buildings clustering method of city image
The present invention adopts Monotone Chain hierarchical clustering method to guarantee that city image key elements such as road are able to preserve after cluster, with adjacency N as the cluster criterion, with the spatial relationship of better reflection buildings on two dimensional surface.
In order to calculate polygon p iAnd p jBetween adjacency, at first set up and comprise this two convex closures that polygon is new, adopt the Graham-Scan algorithm when convex closure is set up; Convex closure comprises two borders, and four summits on these two borders are with p iAnd p jThe summit be divided into two groups, one group of calculating of participating in adjacent edge, another group then can not participated in the calculating of adjacent edge; If the convex closure of finally trying to achieve is made up of a polygonal summit fully; Show that this polygonal convex closure has comprised another polygon; So big that polygonal convex closure will surround one or more slits with this polygon; And little polygon must be positioned at a slit, and the calculating of adjacent edge is participated on the point and the little polygonal summit that form this slit.
(2) merging of BUILDINGS MODELS and comprehensive between cluster
1) merging of building on the two-dimensional projection plane between the class
After cluster; Earlier the polygon in every type is merged into a polygon, the polygon after being combined again carries out comprehensively, at merging phase; Again utilize the summit of participating in adjacent edge to generate the Delaunay triangulation network of belt restraining condition; If have one or more strictnesses right between two polygons to be combined in abutting connection with triangle, then calculate the right adjacency of these triangles, connect two to be combined polygons to produce new polygon in abutting connection with triangle to being used for strictness with minimum adjacency; If do not have strict adjacent triangle right between two polygons, then choose non-strictness and be close to triangle connecting polygon with minimum adjacency.
2) two-dimensional projection plane amalgamation result is comprehensive
The polygon that is formed by connecting through above-mentioned way has comprised too much detailed information, and it is further comprehensive to be combined the result, adopts the method for Visvalingam-Whyatt polyline reduction algorithm, removes tiny sunk part; According to counterclockwise direction, vertex v on the polygon iWith its former and later two vertex v I-1, v I+1, form triangle { v I-1, v i, v I+1, if along from v I-1Through v iAnd v I+1Come back to v I-1Direction be CW, then this triangle is defined as the depression triangle; Summit to two polygon portion other than connected portion travels through judgement successively, and the set of vertices triangularity that each point is adjacent with its front and back judges whether this triangle is the depression triangle; If; Then write down its area, after traversal finishes, the corresponding summit of depression triangle that the deletion area is minimum; The process on reference area and deletion summit above repeating; Occur up to the triangle that do not cave in, perhaps all leg-of-mutton areas that cave in are all greater than till the given threshold value, and area threshold is obtained through formula (3).
δa=a avg/λ (3)
Suppose that two polygons of tape merge are positioned at the l layer of tree, a AvgBe the mean value of all area of a polygon of this layer; λ is the weight of user's appointment; After having removed tiny concave polygon, further travel through simplifying the back result, calculate each to adjacent edge; If its angle is greater than certain angle threshold, then these two limits can be reduced to a limit.
3) by the new three-dimensional building model of comprehensive generation
For newly-generated polygon, the roof height of the BUILDINGS MODELS that it is corresponding equals to add the original two BUILDINGS MODELSs average height separately behind the weight coefficient, shown in formula (4):
h = Σ i = 1 n ( h i · a i ) / Σ i = 1 n a i - - - ( 4 )
In formula (4), h is the height after merging, h iThe height of child node, a iBe the projected area of child node building on two dimensional surface xoy, for intersecting situation in the class, then through asking the calculation intersection point, two polygons merged, remove initiate intersection point then, adopt the Visvalingam-Whyatt algorithm synthesis again, high computational is the same; For comprising situation in the class, directly to get the bigger polygon of area and go up final amalgamation result as two dimensional surface xoy, height recomputates according to formula (4) and gets final product.
(3) make up multiresolution three-dimensional building model
After pretreatment stage is accomplished, adopt the model after the tree structure storage is simplified, apex coordinate stores separately; Each node of tree structure is only stored the numbering of its corresponding vertex; And storage node coordinate not, in addition, each node also needs information such as storing highly, area; For n initial node, be lg (n) by its degree of depth that generates the binary tree of complete equipilibrium, if the degree of depth of tree is reduced to n ', can passes through n '-1 threshold value degree of depth of setting is compressed to n '; When cluster, note each used adjacency of step, and be stored among the array distance sequence, according to the character of strand clustering procedure, in distance sequence, d is tactic by from small to large, the rate of growth r of adjacency iFor,
r i=(d i+1-d i)/d i (5)
D wherein iAnd d I+12 adjacent adjacencies among the expression distance sequence.
Choose maximum n '-1 r; Each r is generated a threshold value D, then with this n '-1 threshold value according to from small to large sequential storage in array threshold sequence, to be used for that the number of plies of tree is reduced to n '; The maximum child node that each node can have is set counts δ p; For the bearing-age tree of n ' the layer complete equipilibrium that has n building to generate, for each non-leaf node, the child node number that it has is p:
p = int ( n n ′ - 1 ) - - - ( 6 )
The node of each layer of the tree that inspection is generated by threshold sequence compression and the number of its child node are when by D lWhen the compression several layers becomes one new layer, the m if this layer does not satisfy condition Ch≤m * δ p, in threshold value, D L-1And D lBetween insert a new threshold value D New, D NewGenerative process following: at first, in distance sequence, extract and be positioned at interval [D L-1, D l] an interior cross-talk array, maximum r place produces new threshold value D in this subnumber group then New, use D NewProduce new layer, check this new layer of m that whether satisfies condition Ch≤m * δ p if do not satisfy, then uses interval [D L-1, D New] in distance sequence, extract new subnumber group, upgrade D with producing new threshold value NewOld value, repeat said process, up to by D NewThe new layer of m that satisfies condition that produces Ch≤m * δ p is then with D NewBe inserted into D L-1And D lBetween.
(4) Interactive Visualization
With the projected size of error on screen that merge to produce is the standard that level of detail is divided, to non-leaf node, circulation is asked for it and is comprised the high building height H in the child node Max, and the height H of minimum building Min, process is following:
If leaf node is positioned at the n layer, then ask the H of each node in the n-1 layer earlier MaxAnd H Min, and then ask and calculate the n-2 layer, the H of maximum in all child nodes of each node MaxH as this node Max, minimum H MinH as this node Min, repeat this step, up to having calculated till the 0th layer; Definition discrepancy in elevation Δ H=H Max-H Min, represent in the pairing primitive architecture of each node the discrepancy in elevation between high building and the minimum building, obviously; For leaf node, Δ H=0, the roof area of definition father node deducts its pairing primitive architecture crowd's roof area sum; As newly-increased roof area Δ A; Ask calculate step and discrepancy in elevation Δ H ask the calculation process identical, be to adopt bottom-up circulation equally, definite thus two threshold value δ H, δ A, its meaning does, and the corresponding original groups of building of child node project on the screen, and its high building and minimum building height difference should be less than δ HIndividual pixels tall, newly-increased roof area project to should be less than δ on the screen AIndividual pixel.
Adopt following method to express under the screen coordinate system difference in height of high building and minimum building height, at first calculate the corresponding relation of nearly cutting face unit length and viewport pixel, establish the vertical field of view angle FOV of video camera, and nearly cutting identity distance to leave be D Near, then can try to achieve nearly cutting face height H Near
H near=D near×tan(FOV)×2 (7)
The viewport height is H ViewIndividual pixel, n on the corresponding screen of unit length on the then near cutting face ScaleIndividual pixel, n Scale=H View/ H Near, secondly, project on the nearly cutting face discrepancy in elevation Δ H is approximate, for each node, the distance of establishing this node center and video camera is D Node, considering has the angle theta of sight line and surface level,
ΔH′=ΔH×(D near/D node)×cos(θ)
ΔH view=ΔH′×n scale (8)
Δ H ViewBe the pixel count of discrepancy in elevation Δ H correspondence on screen, same, for Δ A, be similar to earlier and try to achieve its projection on nearly cutting face, try to achieve its projected size Δ A on screen again View
ΔA′=ΔA×(D near/D node) 2×sin(θ)
ΔA view=ΔA?′×n scale (9)
In the process of scene walkthrough, the angle of direction of visual lines and video camera calculate Δ Hview and Δ Aview in real time apart from the position real-time change of node; If Δ Hview<δ H, and Δ Aview<δ A then play up this node; Otherwise this node is not then played up, and recurrence is judged its child node.
CN201210079099XA 2012-03-23 2012-03-23 Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition Pending CN102663811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210079099XA CN102663811A (en) 2012-03-23 2012-03-23 Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210079099XA CN102663811A (en) 2012-03-23 2012-03-23 Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition

Publications (1)

Publication Number Publication Date
CN102663811A true CN102663811A (en) 2012-09-12

Family

ID=46773288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210079099XA Pending CN102663811A (en) 2012-03-23 2012-03-23 Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition

Country Status (1)

Country Link
CN (1) CN102663811A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258345A (en) * 2013-04-18 2013-08-21 中国林业科学研究院资源信息研究所 Method for extracting parameters of tree branches based on ground laser radar three-dimensional scanning
CN103914877A (en) * 2013-01-09 2014-07-09 南京理工大学 Three-dimensional model multi-detail-level structure based on extension combination
CN104063893A (en) * 2014-04-14 2014-09-24 北京师范大学 Urban building visualization method based on Gestalt psychological criterions and multi-tag graph cut minimization
CN104574508A (en) * 2015-01-14 2015-04-29 山东大学 Multi-resolution model simplifying method oriented to virtual reality technology
CN104769646A (en) * 2012-10-19 2015-07-08 杜亚实验室股份有限公司 Method for optimized polygon reduction of computer graphics
CN104966315A (en) * 2015-05-18 2015-10-07 深圳市腾讯计算机系统有限公司 Three-dimensional model processing method and device
CN106204446A (en) * 2016-07-01 2016-12-07 中国测绘科学研究院 The building of a kind of topography merges method
CN106652008A (en) * 2016-12-23 2017-05-10 浙江大学 Method automatically forming grid and shader multi-layer detail
CN107895048A (en) * 2017-12-04 2018-04-10 南宁市勘察测绘地理信息院 It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN107895282A (en) * 2017-11-02 2018-04-10 广西中烟工业有限责任公司 A kind of tobacco market big data method for visualizing based on space-time grid
CN109191561A (en) * 2018-07-12 2019-01-11 中山大学 City three-dimensional building object fast modeling method towards traffic pollution simulation
CN109253717A (en) * 2018-10-09 2019-01-22 安徽大学 A kind of mining area surface sedimentation 3 D laser scanning surface subsidence monitoring sets station method
CN109523621A (en) * 2018-11-15 2019-03-26 腾讯科技(深圳)有限公司 Loading method and device, storage medium, the electronic device of object
CN109767492A (en) * 2018-12-06 2019-05-17 国网经济技术研究院有限公司 A kind of distance computation method of substation's threedimensional model
CN109933821A (en) * 2017-12-15 2019-06-25 星际空间(天津)科技发展有限公司 Pitch analysis method between a kind of residential building
CN110276835A (en) * 2018-03-14 2019-09-24 罗伯特·博世有限公司 The method and apparatus determined for efficiently building the area of coverage
CN110704561A (en) * 2019-09-24 2020-01-17 武汉汉达瑞科技有限公司 Map edge pasting method, terminal device and storage medium
CN110935171A (en) * 2019-11-01 2020-03-31 南宁市勘察测绘地理信息院 Method for loading, optimizing and unitizing live-action three-dimensional model in game engine
CN110992481A (en) * 2019-11-04 2020-04-10 武汉大学 Building white mold consistency merging method based on nearest connecting line
CN111222682A (en) * 2019-11-12 2020-06-02 浙江工业大学 Second-order optimization simplification method for map boundary data
CN111862137A (en) * 2020-07-15 2020-10-30 上海钧正网络科技有限公司 Method and device for determining graph boundary according to point set
CN113449363A (en) * 2021-06-16 2021-09-28 中国工程物理研究院计算机应用研究所 Large-scale city model calculation processing method for numerical simulation
CN114494598A (en) * 2022-01-25 2022-05-13 南京师范大学 Method for optimizing urban three-dimensional visual space ratio index
CN117456115A (en) * 2023-12-26 2024-01-26 深圳大学 Method for merging adjacent three-dimensional entities
CN117456115B (en) * 2023-12-26 2024-04-26 深圳大学 Method for merging adjacent three-dimensional entities

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7746343B1 (en) * 2005-06-27 2010-06-29 Google Inc. Streaming and interactive visualization of filled polygon data in a geographic information system
CN102214367A (en) * 2011-06-15 2011-10-12 南京信息工程大学 Three dimensional (3D) modeling and visualizing method of prehistoric settlement sites

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7746343B1 (en) * 2005-06-27 2010-06-29 Google Inc. Streaming and interactive visualization of filled polygon data in a geographic information system
CN102214367A (en) * 2011-06-15 2011-10-12 南京信息工程大学 Three dimensional (3D) modeling and visualizing method of prehistoric settlement sites

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
LING YANG, ET AL.: "Interactive visualization of multi-resolution urban building models considering spatial cognition", 《INTERNATIONAL JOURNAL OF GEOGRAPHICAL INFORMATION SCIENCE》 *
LIQIANG ZHANG, ET AL.: "Web-based visualization of large 3D urban building models", 《INTERNATIONAL JOURNAL OF DIGITAL EARTH》 *
SHI PU, ET AL.: "Knowledge based reconstruction of building models from terrestrial laser scanning data", 《ISPRS JOURNAL OF PHOTOGRAMMETRY AND REMOTE SENSING》 *

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104769646A (en) * 2012-10-19 2015-07-08 杜亚实验室股份有限公司 Method for optimized polygon reduction of computer graphics
CN103914877A (en) * 2013-01-09 2014-07-09 南京理工大学 Three-dimensional model multi-detail-level structure based on extension combination
CN103258345A (en) * 2013-04-18 2013-08-21 中国林业科学研究院资源信息研究所 Method for extracting parameters of tree branches based on ground laser radar three-dimensional scanning
CN103258345B (en) * 2013-04-18 2016-05-25 中国林业科学研究院资源信息研究所 A kind of tree limb parameter extracting method based on ground laser radar 3-D scanning
CN104063893B (en) * 2014-04-14 2017-03-08 北京师范大学 Cut the urban architecture visualization method of minimum based on Gestalt psychology criterion and multi-tag figure
CN104063893A (en) * 2014-04-14 2014-09-24 北京师范大学 Urban building visualization method based on Gestalt psychological criterions and multi-tag graph cut minimization
CN104574508A (en) * 2015-01-14 2015-04-29 山东大学 Multi-resolution model simplifying method oriented to virtual reality technology
CN104966315B (en) * 2015-05-18 2018-02-27 深圳市腾讯计算机系统有限公司 The treating method and apparatus of threedimensional model
CN104966315A (en) * 2015-05-18 2015-10-07 深圳市腾讯计算机系统有限公司 Three-dimensional model processing method and device
CN106204446B (en) * 2016-07-01 2020-02-11 中国测绘科学研究院 Building merging method for topographic map
CN106204446A (en) * 2016-07-01 2016-12-07 中国测绘科学研究院 The building of a kind of topography merges method
CN106652008B (en) * 2016-12-23 2019-08-13 浙江大学 A method of automatically generating grid and the multi-level details of tinter
CN106652008A (en) * 2016-12-23 2017-05-10 浙江大学 Method automatically forming grid and shader multi-layer detail
WO2018113502A1 (en) * 2016-12-23 2018-06-28 浙江大学 Method for automatically generating grid and multi-level of detail of shader
CN107895282A (en) * 2017-11-02 2018-04-10 广西中烟工业有限责任公司 A kind of tobacco market big data method for visualizing based on space-time grid
CN107895048A (en) * 2017-12-04 2018-04-10 南宁市勘察测绘地理信息院 It is a kind of that drawing method is quickly gone out based on outdoor scene three-dimensional
CN107895048B (en) * 2017-12-04 2021-05-11 南宁市勘察测绘地理信息院 Rapid drawing method based on live-action three-dimension
CN109933821B (en) * 2017-12-15 2023-05-16 星际空间(天津)科技发展有限公司 Method for analyzing space between residential buildings
CN109933821A (en) * 2017-12-15 2019-06-25 星际空间(天津)科技发展有限公司 Pitch analysis method between a kind of residential building
CN110276835A (en) * 2018-03-14 2019-09-24 罗伯特·博世有限公司 The method and apparatus determined for efficiently building the area of coverage
CN109191561A (en) * 2018-07-12 2019-01-11 中山大学 City three-dimensional building object fast modeling method towards traffic pollution simulation
CN109191561B (en) * 2018-07-12 2022-09-13 中山大学 Urban three-dimensional building rapid modeling method for traffic environment pollution simulation
CN109253717B (en) * 2018-10-09 2020-11-27 安徽大学 Mining area ground surface settlement three-dimensional laser scanning ground surface settlement monitoring and station setting method
CN109253717A (en) * 2018-10-09 2019-01-22 安徽大学 A kind of mining area surface sedimentation 3 D laser scanning surface subsidence monitoring sets station method
CN109523621A (en) * 2018-11-15 2019-03-26 腾讯科技(深圳)有限公司 Loading method and device, storage medium, the electronic device of object
CN109523621B (en) * 2018-11-15 2020-11-10 腾讯科技(深圳)有限公司 Object loading method and device, storage medium and electronic device
US11270497B2 (en) 2018-11-15 2022-03-08 Tencent Technology (Shenzhen) Company Limited Object loading method and apparatus, storage medium, and electronic device
CN109767492A (en) * 2018-12-06 2019-05-17 国网经济技术研究院有限公司 A kind of distance computation method of substation's threedimensional model
CN110704561B (en) * 2019-09-24 2022-04-22 武汉汉达瑞科技有限公司 Map edge pasting method, terminal device and storage medium
CN110704561A (en) * 2019-09-24 2020-01-17 武汉汉达瑞科技有限公司 Map edge pasting method, terminal device and storage medium
CN110935171A (en) * 2019-11-01 2020-03-31 南宁市勘察测绘地理信息院 Method for loading, optimizing and unitizing live-action three-dimensional model in game engine
CN110992481A (en) * 2019-11-04 2020-04-10 武汉大学 Building white mold consistency merging method based on nearest connecting line
CN111222682A (en) * 2019-11-12 2020-06-02 浙江工业大学 Second-order optimization simplification method for map boundary data
CN111222682B (en) * 2019-11-12 2022-05-03 浙江工业大学 Second-order optimization simplification method for map boundary data
CN111862137A (en) * 2020-07-15 2020-10-30 上海钧正网络科技有限公司 Method and device for determining graph boundary according to point set
CN113449363A (en) * 2021-06-16 2021-09-28 中国工程物理研究院计算机应用研究所 Large-scale city model calculation processing method for numerical simulation
CN113449363B (en) * 2021-06-16 2023-09-26 中国工程物理研究院计算机应用研究所 Numerical simulation-oriented large-scale city model computable processing method
CN114494598A (en) * 2022-01-25 2022-05-13 南京师范大学 Method for optimizing urban three-dimensional visual space ratio index
CN114494598B (en) * 2022-01-25 2023-03-21 南京师范大学 Method for optimizing urban three-dimensional visual space ratio index
CN117456115A (en) * 2023-12-26 2024-01-26 深圳大学 Method for merging adjacent three-dimensional entities
CN117456115B (en) * 2023-12-26 2024-04-26 深圳大学 Method for merging adjacent three-dimensional entities

Similar Documents

Publication Publication Date Title
CN102663811A (en) Real-time three-dimensional visualization method of large-scale scene city building based on spatial cognition
CN101404091B (en) Three-dimensional human face reconstruction method and system based on two-step shape modeling
CN102136155B (en) Object elevation vectorization method and system based on three dimensional laser scanning
CN104966317B (en) A kind of three-dimensional method for automatic modeling based on ore body contour line
CN101763649B (en) Method for drawing enhanced model contour surface point
CN102074050A (en) Fractal multi-resolution simplified method used for large-scale terrain rendering
CN112530005B (en) Three-dimensional model linear structure recognition and automatic restoration method
Dollner et al. Real-time expressive rendering of city models
Xie et al. Automatic simplification and visualization of 3D urban building models
CN108919954A (en) A kind of dynamic change scene actual situation object collision exchange method
CN107403459A (en) Real terrain fast modeling method and landslide visualization technique
CN105205861A (en) Tree three-dimensional visualization model realization method based on Sphere-Board
CN103077552A (en) Three-dimensional displaying method based on multi-view video
JP6782108B2 (en) Visible rate calculation device
CN102446365A (en) Method for estimating the quantity of light received at a point of a virtual environment
CN104392489B (en) Take the line vanishing method of the three-dimensional geographic space entity group of topology into account
CN113658316B (en) Rendering method and device of three-dimensional model, storage medium and computer equipment
Zhang et al. A geometry and texture coupled flexible generalization of urban building models
Wu et al. Building reconstruction from high-resolution multiview aerial imagery
CN109636889A (en) A kind of Large Scale Terrain model rendering method based on dynamic suture zone
US8948498B1 (en) Systems and methods to transform a colored point cloud to a 3D textured mesh
Thöny et al. Deferred vector map visualization
Haglund et al. Snow accumulation in real-time
Hossny et al. Fast synthetic LiDAR rendering via spherical UV unwrapping of equirectangular Z-buffer images
CN106845501A (en) A kind of buffer zone analysis method for the identification of project of transmitting and converting electricity environmentally sensitive areas

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120912