Open Access
This article is

- freely available
- re-usable

*ISPRS Int. J. Geo-Inf.*
**2016**,
*5*(12),
239;
doi:10.3390/ijgi5120239

Article

Typification for Façade Structures Based on User Perception

^{1}

Key Laboratory of Virtual Geographic Environment (Nanjing Normal University), Ministry of Education, Nanjing 210023, China

^{2}

College of Geographic Sciences, Nanjing Normal University, Nanjing 210023, China

^{3}

Jiangsu Center for Collaborative Innovation in Geographical Information Resource Development and Application, Nanjing 210023, China

^{4}

GIScience Research Group, University of Heidelberg, Berlinerstr.48, Heidelberg D-69120, Germany

^{5}

Collaborative Innovation Center for Modern Grain Circulation and Safety, Jiangsu Key Laboratory of Modern Logistics, Nanjing University of Finance and Economic, Nanjing 210003, China

^{6}

Nanjing Institute of Surveying, MappingandGeotechnical Investigation, Co. Ltd., Nanjing 210019, China

^{*}

Authors to whom correspondence should be addressed.

Academic Editor:
Wolfgang Kainz

Received: 7 September 2016 / Accepted: 1 December 2016 / Published: 9 December 2016

## Abstract

**:**

Typification is a well-established operator of map generalization. Although it is widely used in many existing research fields, less discussion has been devoted to the quality of typification. This paper presents a user survey for the evaluation of different typification results of façade structures under different constraints. The survey shows that preservation of the shape of the features is the most important constraint for a reasonable typification process, which has also been quantitatively verified by calculating the similarities between the typified façades and the original façade using attributed relational graph (ARG) and nested earth mover’s distance (NEMD) algorithms. Based on that, an algorithm is developed to generate perceivably reasonable representation from the original facade with decreasing map scale. The algorithm is implemented and tested on a number of façades. Experiments reveal that the typification can be automatically conducted and can create results which are well associated with the original façades.

Keywords:

generalization; typification; user survey; attributed relational graph (ARG)## 1. Introduction

Generalization of building objects has been a topic in recent years because (1) the efficient rendering of building objects requires representation of buildings at different levels of detail (LoDs); and (2) for the visualization of buildings on small display devices such as mobile phones, PDAs, etc., abstractive buildings models have to be generated.

Since Staufenbiel [1] proposed a rule-based approach for the simplification of 2D building ground plan, a number of algorithms have been made available for generalization of building models. The early works focused on developing techniques for generalizing building ground plans in 2D [2,3,4,5]. Using these techniques, the amount of detail in the ground plan can be reduced by removing line segments with some criteria, i.e., minimum length of a façade. For instance, Sester [6] proposed a two-step procedure: (1) removing the minimal forms guides by rules; and (2) adjusting the form of the simplified building to the original form using least-squares adjustment. In this second step, certain characteristics of the buildings can be preserved or even emphasized, e.g., rectangularity and parallelism or size. Other approaches apply methods of pattern recognition to replace the original ground plan with a standard shape [7].

In the recent years, a number of algorithms have been proposed specifically for the generalization of 3D building models. Lal and Meng [8] defined some rules and constraints for 3D generalization. However, the generalization is restricted on one operation, namely, aggregation. Kada [9] extended Sester’s approach [6]. He developed rules to remove structures that were too small in the 3D polyhedron at first then adjust the simplified building to its original shape.

On the basis of the polyhedron segmentation proposed by Ribelles et al. [10], Thiemann and his colleagues suggested decomposing a building into basic 3D primitives and eliminating those with small volumes [11,12]. Kada [13,14] proposed a structurally similar approach. He defined parts of simplified buildings as intersections of half-planes based on which cell decomposition and primitive instancing are applied. More related research can be found in [15,16].

The above mentioned studies focus mainly on simplification of buildings by removing smaller wall elements. The features on building façades are seldom concerned, but they also need generalization e.g., windows need to be enlarged so that they are legible in a reduced display space. However, enlargement may cause feature overlaps. Typification may be used to circumvent this problem. On the other hand, with the further shrinkage of display space, buildings have to be generalized in groups. For this case, the operation of typification is preferred when buildings are distributed regularly [15].

The operator of typification is defined as a process of replacing a large number of objects with a smaller number of uniformly shaped objects while preserving the appropriate characteristics of the pattern. Regarding the approach for typification, in [17], every four polygons neighboring each other were replaced by a new polygon created by connecting the center points of the four polygons. Regnauld’s typification algorithm [4] was based on the minimum spanning tree in graph theory. In [18] the procedure of typification was divided into two steps: positioning and representation, while the positioning step determines the number and the positions of the buildings based on Delaunay triangulation, in the representation step the size and orientation for the replacement will be calculated. Besides, most previous works like [19,20,21,22] determined the density of objects using Tröpfer’s radical law [23]. Furthermore, this kind of operation was used in many literatures for generalization and various results were presented in [5,11,14,24]. However, it is not discussed why their results are reasonable. Meanwhile, there exists a similar problem in the field of computer science. For layout management of Graphical User Interface (GUIs) in graphics, typification is used to rearrange buttons (or icons) with the changing size of GUIs for different devices or scales. A number of algorithms are currently available for this issue; for instance, Luyten et al. [25] described a method to combine abstract User Interface (UI) descriptions and constraint-based layout management system for different devices. Unfortunately, there is no investigation of finding a reasonable result of typfication either.

In our work a user survey has been conducted to find out what kind of representation after typification is best associated to the original dataset with respect to the human visual perception. In order to verify the results of the user survey, Attributed Relational Graphs (ARGs) are generated from the original dataset and the candidate representation after typification. Then the Nested Structure of Earth Mover’s Distance (NEMD) [26] between these ARGs is calculated. The NEMD values denote the similarities between the typified façades and the original façades and can be regarded as a quantitative measure to guide the automatic approach of typification.

The rest of the paper is structured as follows: the user survey for typification is presented in Section 2 at first. In Section 3, the ARG and NEMD algorithms are described in order to verify the results of the user survey. The automatic approach of typification based on the results of our user survey is elicited in Section 4 with the experimental results shown in Section 5. Finally, the conclusion and work to be done in the future are given in Section 6.

## 2. A User Survey for Typification

#### 2.1. Constraints of Typification

The user survey is focused on the analysis of building façades with windows, since windows are the most common structures on façades. Moreover, windows on a façade are in most cases uniform in shape and size, and distributed regularly. In the user survey, the different constraints are identified which contribute to the preservation of the similarity between the typified façade and the original one:

- keeping the area covered by windows,
- keeping the ratio between the height and the width of the windows,
- keeping the distances between windows,
- keeping the distances between windows and the outline of the façade,
- keeping windows distributed in the tendency direction.

By combining the above constraints, we developed different options for typification which lay down a base for the user test with the aim of identifying the most reasonable typification. Figure 1 shows an example façade with regularly distributed windows, and different options of typification are demonstrated in Figure 2.

#### 2.2. User Survey and the Results

The six options are applied to three different façades (Figure 3) including the one (b) presented in Figure 1. These façades have different tendency directions or they have no directions which tend to stay in the foreground. Façade (a) has no tendency direction. The distances between windows in horizontal and vertical direction are almost equal. Façade (b) has a tendency in the horizontal direction because the distances between windows in horizontal direction are smaller than that in vertical direction. Façade (c) has its tendency in the vertical direction. The distances between windows in the vertical direction are smaller than that in the horizontal direction.

All three façades have regular distribution of a gridiron pattern. We extracted them to a vector-based representation and typified them to six candidates corresponding to the six options in Section 2.1. We also designed several visualizations with appropriate questions for the participants to conduct the user test. These visualizations are visually coded and the participants are unaware of which constraints are used during the typification. An example of a question is: please rank the images in the order in which they will resemble the original image. For every question two or three options are compared with each other. The participants have to rank the façades in the order (from best to worst); in other words they should say which kind of typification is best associated to the original extracted façade and which is their second and third choice.

The user survey was carried out during a lecture on the 12 November 2008 at the Technische Universität München. The subjects consist of 9 female and 12 male undergraduate students majoring in geodesy. Their ages ranged from 19 to 26 years. Each subject was given 15 s to look at the extracted windows and their typification options. Then they have to make their decision.

The results of the user survey are summarized and averaged for the three façades (Table 1). These values indicate at which degree the six options (Figure 2) can be associated to the original façade.

Table 1 reflects the similarities of the six options to the original façade. We assume that the more similar the option is to the original façade, the more significant the constraints (compare Figure 2) deployed for the corresponding option are. The significance degrees of the constraints (Section 2.1) for the typification are calculated. They are weighted and normalized by 10 to make the results more comparable.

Table 2 shows the declining significance values of the options. This may underpin the assumption that keeping the shape of the façade elements (shape conformal) is the most significant. The second significant constraint is to keep the distances among windows, and keep the distances between windows and the outline of façade at the same time. This finding will be used in similarity quantization with ARG and NEMD in the subsequent section.

## 3. Verification of the User Survey Using ARG and NEMD Algorithm

To quantify the visual similarity between façades, pattern recognition methods are employed. Attributed Relational Graph (ARG) has been widely used to represent objects or structures to be recognized in computer vision and pattern recognition [27]. In this paper, ARG is used to represent windows of the façade. Therefore the visual similarity evaluation between the typified façade and the original one can be quantified by matching their ARGs. Lots of algorithms are proposed for ARG matching such as the graduated assignment graph matching (GAGM) [28], and least squares graph matching (LSGM) [29]. The Nested Earth Mover’s Distance (NEMD) algorithm is chosen since it shows a better performance in ARG matching according to the results in [26].

An ARG G is defined as G = {V,R} in which V = {v

_{i}|1 ≤ I ≤ n} and R = {r_{ij}|1 ≤ I ≤ n, 1 ≤ j ≤ n}. V is the set of n nodes and each v_{i}represents a window in the façade. R is an $n\times n$ matrix and each r_{ij}is the relationship between the window v_{i}and v_{j}. In this application the node contains attributes about the window such as width and height and the relationship between nodes will represent the spatial and topological relations between the windows on the façade.The ARG matching can be implemented as a two-step procedure, constructing a distance matrix and establishing the correspondence based on the distance matrix. More specifically, NEMD consists of inner EMD (Earth Mover’s Distance) and outer EMD. The inner EMD reflects the difference between corresponding nodes from two ARGs. The outer EMD is composed of inner EMD distances of all node pairs, and we can establish the correspondence between nodes in the two ARGs and get the distance of the two ARGs by selecting and adding the minimum element in each column or row of outer EMD. The details about NEMD calculation is given in [26,30].

A simplified example of NEMD calculation of 2 ARGs shown in Figure 4 is given by Kim et al. 2004. The difference between the example in Figure 4 and the method proposed for generalization evaluation is the definition of distance between nodes and relationships. In order to simplify the calculation, the node feature only contains one figure and the distance between the nodes is the difference value of their figures. It is the same for the relationships in Figure 4. For quality assessment, we just replace the distance functions Δnode and Δrelation in Equation (1) with the functions defined in Section 3.2.

$${\Delta}_{inner}(j,j\prime )=(1-\alpha )\times {\Delta}_{\mathrm{node}}({v}_{j},{{v}^{\prime}}_{{j}^{\prime}})+\alpha \times {\Delta}_{\mathrm{relation}}({r}_{ij},{{r}^{\prime}}_{{i}^{\prime}{j}^{\prime}})$$

In Figure 4, G’ is the sub-graph of G with nodes 1, 2, 3 in G’ corresponding to nodes 4, 2, 1 in G. The distance between nodes and distance between the relationships are the differences of their values given in Figure 4.

First, the inner EMD between every pair of nodes in G and G’ is calculated from inner matrix D

_{inner}, in which every element is generated from Equation (1). For example, the D_{inner}of node v_{1}in G and v’_{1}in G’ (v_{i}and v’_{i’}) is given in Equation (3), in which the 1st row and 2nd column of inner matrix D_{inner}, Δ_{inner}(1, 2) can be calculated with Equation (2).
$${\Delta}_{inner}(1,2)=(1-\alpha )\times {\Delta}_{\mathrm{node}}({v}_{1},{{v}^{\prime}}_{2})+\alpha \times {\Delta}_{\mathrm{relation}}({r}_{11},{{r}^{\prime}}_{12})$$

In which, I = 1, I’ = 1, j = 1, j’ = 2, Δ

_{node}(v_{1}, v’_{2}) = |0.8 − 0.3| = 0.5, Δ_{relation}(r_{11},r’_{12}) = |0 − 0.2| = 0.2, α = 0.5. Therefore, Δ_{inner}(1, 2) = 0.35. Similarly, we can calculate all Δ_{inner}(j, j’) and compose the D_{inner}for the node pair v_{1}and v’_{1}as shown in Equation (3). Based on that, the inner EMD of node v_{1}in G and v’_{1}in G’ is 0.1 + 0.3 + 0.35 = 0.75 (the minimum sum of minimum value in each column or row).The D

_{outer}of G and G’ is also given in Equation (3), in which the first element is 0.75 according to previous calculation. The EMD between G and G’ is 0 based on the D_{outer}, because G’ is the sub graph of G. But in our application, not only partial but also overall difference between ARGs should be considered. Therefore, the difference between two ARGs is the maximum sum of the minimum value in each column or row of the D_{outer}, e.g., 0.05 for G and G’ in Figure 4.
$${D}_{inner}({v}_{1},{{v}^{\prime}}_{1})=\left[\begin{array}{ccc}0.35& 0.35& 0.35\\ 0.5& 0.3& 0.3\\ 0.7& 0.5& 0.1\\ 0.35& 0.35& 0.35\end{array}\right],{D}_{outer}=\left[\begin{array}{ccc}0.75& 0.65& 0\\ 0.25& 0& 0.75\\ 0.65& 0.55& 0.05\\ 0& 0.25& 0.95\end{array}\right]$$

This rest of the section focuses on creating the ARG of façade and constructing the distance matrix of nodes and relations.

#### 3.1. ARG Generation

Since windows are all rectangles in our test façade data, the width and height of the window are saved as attributes of the node. v

_{i}= (w_{i}, h_{i}) in which is v_{i}represent the i-th window in the façade; w_{i}and h_{i}are the width and height of the window. The relationship between two windows is set to the ratio of the distance between two polygons of the windows and their area sum. However, absolute distance alone is not sufficient to reflect the visual relationship between two windows on the façade since two large windows would look more similar to each other than two smaller ones even if they have same distance.#### 3.2. Distance Definition

Three types of distance are required by NEMD, and they are (1) distance between nodes; (2) distance between relationships; and (3) distance combining the previous two types. Node distance represents the difference between the shapes of each window pair; relationship distance represents the spatial distribution and topological difference of the window group; the combined distance is the weighted sum of node distance and relationship distance. All these distance values are normalized from 0 to 1in which 0 represent exactly the same and 1 represent completely different.

Node distance Δ

_{node}is composed by two parts: shape distance Δ_{shape}and area distance Δ_{area}. Assuming v_{i}and v_{j}are two nodes, Δ_{node}can be calculated as follows:
$${v}_{i}=({w}_{i},{h}_{i}),{v}_{j}=({w}_{j},{h}_{j})$$

$$m{x}_{i}=\mathrm{max}\{{w}_{i},{h}_{i}\},m{x}_{j}=\mathrm{max}\{{w}_{j},{h}_{j}\}$$

$${w}_{min}=\mathrm{min}\{\frac{{w}_{i}}{m{x}_{i}},\frac{{w}_{j}}{m{x}_{j}}\},{h}_{min}=\mathrm{min}\{\frac{{h}_{i}}{m{x}_{i}},\frac{{h}_{j}}{m{x}_{j}}\}$$

$${\Delta}_{shape}=\left|\frac{{w}_{i}}{m{x}_{i}}-\frac{{w}_{j}}{m{x}_{j}}\right|\xb7{h}_{min}+\left|\frac{{h}_{i}}{m{x}_{i}}-\frac{{h}_{j}}{m{x}_{j}}\right|\xb7{w}_{min}$$

$$are{a}_{i}=\frac{{w}_{i}\xb7{h}_{i}}{{W}_{i}.{H}_{i}},are{a}_{j}=\frac{{w}_{j}\xb7{h}_{j}}{{W}_{j}.{H}_{j}}$$

$${\Delta}_{area}=\frac{\left|are{a}_{i}-are{a}_{j}\right|}{\mathrm{max}\{are{a}_{i},are{a}_{j}\}}$$

$${\Delta}_{node}=\alpha \xb7{\Delta}_{shape}+(1-\alpha )\xb7{\Delta}_{area}$$

As shown in Figure 5, Δ

_{shape}equals the sum area of D_{1}and D_{2}(the shaded part in Figure 5c). Since rectangle P_{1}and P_{2}are normalized to the rectangle with 1 as their longest edge, Δ_{shape}is a value between 0 (means exactly the same) and 1 (completely different). In Equation (8), ${W}_{i}$ and ${H}_{i}$ are the total width and length of the façade which contains ${v}_{i}$, so are ${W}_{i}$ and ${H}_{i}$. Δ_{area}is the normalized area difference. α is a number between 0 and 1 which gives the weight of the shape and area distance in final node distance.Relationship distance ${\Delta}_{relationship}$ is the normalized difference between two relative distances. Assume ${r}_{ij}=({v}_{i},{v}_{j})$ is the relationship between two polygons ${v}_{i}$ and ${v}_{j}$, so is ${r}_{pq}=({v}_{p},{v}_{q})$. Then the relationship distance between ${r}_{ij}$ and ${r}_{pq}$ can be calculated as follows:

$${a}_{ij}=area({v}_{i})+area({v}_{j}),{a}_{pq}=area({v}_{p})+area({v}_{q})$$

$${\Delta}_{relationship}=\left|\frac{{\Delta}_{ij}}{{a}_{ij}}-\frac{{\Delta}_{pq}}{{a}_{pq}}\right|/\mathrm{max}\{\frac{{\Delta}_{ij}}{{a}_{ij}},\frac{{\Delta}_{pq}}{{a}_{pq}}\}$$

In Equation (11), $area({v}_{i})$ is the area of the polygon. Δ

_{ij}and Δ_{pq}indicate respectively the node distance between ${v}_{i}$ and ${v}_{j}$ and the node distance between v_{p}and v_{q}. The combined distance is the same as Equation (1), ${\Delta}_{inner}=\alpha \xb7{\Delta}_{node}+(1-\alpha )\xb7{\Delta}_{relationship}$, where α is a number between 0 and 1 and gives the weight of the node and relationship distance. In our implementation, α is set to 0.5 in Equation (10) because the importance of shape and area are considered to be the same. For the combined distance in Equation (1), α is set to 10/17 according to the value in Table 2, in which the importance value is 10 for the windows and 7 for the relationship between windows. Therefore, the weight for node is set to 10/(10 + 7) and weight for relationship is set to 7/(10 + 7). If there is not apredefined weight, the default weights for the NEMD calculation are identical in the process, e.g., α = 0.5 in Equation (10). Otherwise, the weights are generated to reflect the rational, e.g., α = 10/17 in Equation (1).#### 3.3. Similarity Values

The NEMD values between the original façade and the typified ones are calculated based on the distance definitions in Section 3.2. We will verify the NEMD values by the user survey results. Table 3 demonstrates the NEMD values calculated for six options of typification of the test ground plans in comparison to the results of the user survey.

The NEMD values in Table 3 denote the dissimilarities of the six options to the original distribution, while the values of the user survey present similarities. In order to make these two sets of values comparable, the NEMD values are linearly transformed and the values of the user survey are transformed into dissimilarities. Assume that an NEMD value is a and a user survey value is b. Let a’ = a/5 − 7.5 and b’ = 10 − b. This linear transformation is used to map the NEMD and user survey value into the same range and to illustrate their correlation. a’ and b’ of all six options are given in Figure 6, from which it is shown that the proposed NEMD method can correctly reflect the user’s visual perception of similarity in our case. In Figure 6, the lower NEMD indicates a better association between the original and typified façade, while the user survey value (b) is converted into (10-b) that means the higher user survey (b) suggests the better association.

## 4. The Automatic Approach of Typification

As indicated in the user survey the most significant constraint for the typification of façade is the preservation of the shape of its elements, i.e., windows in our case (shape conformal). On this basis an automatic approach is developed.

#### 4.1. Typical Distribution of Windows on a Façade

Although windows reveal a vast diversity in structure and distribution, most of them show regularities. Figure 7 illustrates a set of window distributions on façades. Figure 7a has a tendency in the horizontal direction; in other words, the distances among windows in horizontal direction are smaller than those in vertical direction. Conversely, Figure 7b has a tendency in the vertical direction. Furthermore, the distribution would be regarded as having no tendency, if the distances among windows are the same in both directions (Figure 7c). However, sometimes the regularity might be locally broken due to different architecture styles (Figure 7d–f). In such cases, some pre-processing like new partitioning can be employed before the automatic process of typification. In this paper, the windows on façade are vector data, and the segmentation of window group is implemented by testing the size of window and the distance between the windows. For a façade in raster format, e.g., texture images, windows reconstruction methods are proposed by Ripperda and Brenner [31] and Becker [32].

#### 4.2. The Process of Typification

In advance of typifying windows on a façade, the overall pattern is segmented into a number of subpatterns that contain regularly distributed windows. If the windows are distributed irregularly on a façade (i.e., Figure 7d–f), they will at first be partitioned into several segments with regular distributions and the automatic process is conducted for each segment separately. Figure 8a illustrates the parameterization of windows’ distribution before the process of typification: ${a}_{1},{b}_{1}$ stand for the sides of windows in the horizontal and vertical direction respectively; ${c}_{1},{d}_{1}$ stand for the distances among windows in horizontal and vertical direction respectively; ${e}_{1},{f}_{1}$ stand for the distances between the block of windows and outline of façade in horizontal and vertical direction respectively. Besides, the number of windows in horizontal direction is equal to ${M}_{1}$, and the number of windows in vertical direction is equal to ${N}_{1}$. Then the lengths of façade in the horizontal and vertical directions ${L}_{h1}$ and ${L}_{v1}$ can be calculated as follows:

$${L}_{h1}=2{f}_{1}+{M}_{1}\xb7{a}_{1}+({M}_{1}-1)\xb7{c}_{1}$$

$${L}_{v1}=2{e}_{1}+{N}_{1}\xb7{b}_{1}+({N}_{1}-1)\xb7{d}_{1}$$

The process of typification is trigged when the distances among windows in either horizontal or vertical direction are smaller than a minimum value $\epsilon $. We assume that the outcome of typification is represented in Figure 8b. Then there are some relationships between these two distributions:
where ${L}_{h2}$ and ${L}_{v2}$ stand for the lengths of façade in horizontal and vertical direction after typification, while ${m}_{i}$ and ${m}_{f}$ stand for the original and the target scale. Similar to the original distribution, the lengths of façade after typification can be expressed as:

$${L}_{h2}=({m}_{i}/{m}_{f})\xb7{L}_{h1}$$

$${L}_{v2}=({m}_{i}/{m}_{f})\xb7{L}_{v1}$$

$${L}_{h2}=2{f}_{2}+{M}_{2}\xb7{a}_{2}+({M}_{2}-1)\xb7{c}_{2}$$

$${L}_{v2}=2{e}_{2}+{N}_{2}\xb7{b}_{2}+({N}_{2}-1)\xb7{d}_{2}$$

According to our user survey, the relationships between the parameters of the original distribution and those after typification can be established as follows:

$${a}_{1}/{b}_{1}={a}_{2}/{b}_{2}$$

$${e}_{2}=\tau \xb7{e}_{1}\xb7({m}_{i}/{m}_{f})$$

$${f}_{2}=\tau \xb7{f}_{1}\xb7({m}_{i}/{m}_{f})$$

$$\mathrm{min}\left\{{c}_{2},{d}_{2}\right\}={\kappa}_{1}\xb7\epsilon $$

$$\frac{\mathrm{max}\left\{{c}_{2},{d}_{2}\right\}}{\mathrm{max}\left\{{c}_{1},{d}_{1}\right\}}={\kappa}_{2}\xb7\frac{\mathrm{min}\left\{{c}_{2},{d}_{2}\right\}}{\mathrm{min}\left\{{c}_{1},{d}_{1}\right\}}$$

$$\left({M}_{2}\xb7{N}_{2}\right)\xb7\left({a}_{2}\xb7{b}_{2}\right)=\gamma \xb7\left(\left({M}_{1}\xb7{N}_{1}\right)\xb7\left({a}_{1}\xb7{b}_{1}\right)\right)\xb7({m}_{i}/{m}_{f})$$

As “shape conformal” is identified as the most significant constraint for the typification, the ratio of height and width of the windows must be preserved. In a declining order of significance, $\tau $, ${\kappa}_{1}$, ${\kappa}_{2}$, $\gamma $ respectively stand for the relative stiffness of satisfying the constraints “keeping the distances between windows and the outline of the façade”, “windows have to be merged in the tendency direction”, “keeping the distances between windows” and “area conformal” constraint.

Now there are eight equations (Equations (17)–(24)), 12 unknowns to be solved, namely, ${M}_{2}$, ${N}_{2}$, ${a}_{2}$, ${b}_{2}$, ${c}_{2}$, ${d}_{2}$, ${e}_{2}$, ${f}_{2}$; and $\tau ,{\kappa}_{1},{\kappa}_{2},\gamma $. That means that this equation system is underdetermined. In our practical implementation, Equation (24) was not considered during the calculation, since (1) “area conformal” is the least significant constraint for the typification and (2) the availability of this equation has no influence on the unknowns except the factor $\gamma $. The remaining equation system can be solved recursively by setting initial value for the significance constraint in line with the results of user survey:

- (1)
- The initial step: let the constraint significances equal one. Then the sides of window can be set initially according to the change of distances among windows: ${a}_{2}={a}_{1}\xb7\frac{\mathrm{min}\left\{{c}_{2},{d}_{2}\right\}}{\mathrm{min}\left\{{c}_{1},{d}_{1}\right\}}$, and ${b}_{2}={b}_{1}\xb7\frac{\mathrm{min}\left\{{c}_{2},{d}_{2}\right\}}{\mathrm{min}\left\{{c}_{1},{d}_{1}\right\}}$.
- (2)
- Put the initial values into Equations (17) and (18), and the number of windows in row and column can be then calculated by:$${M}_{2}=({c}_{2}+{L}_{h2}-2{f}_{2})/({a}_{2}+{c}_{2})$$$${N}_{2}=({d}_{2}+{L}_{v2}-2{e}_{2})/({a}_{2}+{d}_{2})$$
- (3)
- ${M}_{2}$ and ${N}_{2}$ are rounded to the nearest integer. The differences between the calculated values ${M}_{2}$, ${N}_{2}$ and their nearest integer can be utilized to judge whether the process should terminate or not. In our work $\left|round({M}_{2})-{M}_{2}\right|<0.25$ and $\left|round({N}_{2})-{N}_{2}\right|<0.25$ were set as the thresholds below which the process will be terminated.
- (4)
- If the threshold is not yet reached, ${\kappa}_{1}$ will be increased by 0.01, i.e., ${\kappa}_{1}={\kappa}_{1}+0.01$. Then the new ${M}_{2}$ and ${N}_{2}$ will be calculated. If the threshold is reached, the process will terminate; otherwise it will go on to the subsequent step.
- (5)
- ${\kappa}_{2}$ will be increased by 0.01, i.e., ${\kappa}_{2}={\kappa}_{2}+0.01$. Then the new ${M}_{2}$ and ${N}_{2}$ will be calculated. If the threshold is reached, the process will terminate, otherwise it will go on to the subsequent step.
- (6)
- $\tau $ will be increased by 0.01, i.e., $\tau =\tau +0.01$. Then the new ${M}_{2}$ and ${N}_{2}$ will be calculated. If the threshold is reached, the process will terminate, otherwise it will go back to step 4.

When the iteration terminates, ${M}_{2}=round({M}_{2})$ and ${N}_{2}=round({N}_{2})$. The new distances among windows ${c}_{2}$ and ${d}_{2}$ can be calculated by:

$${c}_{2}=\frac{{L}_{h2}-2{f}_{2}-{M}_{2}\xb7{a}_{2}}{{M}_{2}-1}$$

$${d}_{2}=\frac{{L}_{v2}-2{e}_{2}-{N}_{2}\xb7{b}_{2}}{{N}_{2}-1}$$

With these calculated parameters, the positions of the new windows can be determined. Thus the result of the typification is obtained.

As mentioned at the beginning of this subsection, the designed algorithm is tailored for the façades on which the windows are distributed regularly in more than one row and column. However, sometimes there is only one row (or column) of windows on a façade, or there is one row (or column) of windows in addition to a matrix distribution of windows i.e., Figure 7e. Here, the windows in one column (or one row) will be treated as a special case in the process of automatic typification by ignoring the calculations for the columns (or rows).

## 5. Experiments and Evaluation

The algorithm for automatic typification has been implemented using Matlab (version Matlab 7.4) on a number of façades. A selection of examples is presented in this section. Figure 9 shows the result of typification for a façade in which all the windows are distributed regularly in rows and columns. Figure 9b denotes the new distribution of windows after typification for a scale reduction by two times.

In order to evaluate the proposed approach, two alternative results for the typification of Figure 9a are generated manually (Figure 9c,d). Then the similarities 9b, 9c and 9d to the original distribution (Figure 9a) are calculated using the algorithm presented in Section 3.2. The NEMD values of Figure 9b, 9c and 9d to 9a are 42.41, 75.82, and 76.83 respectively. It clearly denotes that the result of our approach is better than other typification solutions.

Another type of quite common façade with windows might be when the windows are distributed evenly in one direction, but not in the other, although they are well aligned. An example is shown in Figure 10a. In this case the whole façade had to be partitioned into several segments at first by comparing the sizes of windows and the distances among windows. Then the process of typification is carried out for each segment. At the same time the process should consider the results of typification of neighboring segments. In other words, the windows after the typification should reflect the original distribution character. In our implementation, we first calculate the distribution of windows for the segment in which there are more windows than in other segments (in case of Figure 10a, the middle segment is typified at first). Then the number of windows in the column is determined for all the other segments. That means that the parameter ${N}_{2}$ is treated as known during the process of typification for other segments. Figure 10b presents the result of typification for the original distribution of Figure 10a with consideration of context between segments.

## 6. Conclusions and Further Works

This paper presented a user survey to find out which kind of representation after typification is visually best associated with the original dataset. The results of the user test revealed that “the ratio between height and width of the windows” and “the distribution pattern of window elements” are the most important clues for preserving the graphic characteristics of façades.

In order to verify the results of the user survey, ARG and NEMD algorithms are introduced to quantify the similarity between the original façade and the typified ones. The similarity values coincide very well with the results of our user survey.

Based on the user test, which reveals different significance values of constraints, an automatic approach for typification is developed which can iteratively satisfy the given constraints. The algorithm has been implemented and tested on a number of façades. Experiments show that the results of typification can effectively reflect the distribution character of the original façades.

The main contribution of this work is that the approach can, for the first time, quantitatively typify regular distributed polygonal objects on building facades. Because the method of the proposed typification fully considers the factors and their weights for the consistency of visual impression while reducing the number of façade objects and repositioning them, the results generated by the proposed approach can preserve the graphic characteristics of the façade as much as possible. This can be applied to simplify façade objects in the process of 3D generalization. In a broad sense, the method proposed in this paper can be used for the typification of polygonal objects (i.e., building footprints or urban blocks) on a 2D map in case the objects form patterns which fulfill the condition of the typification.

However, our approach is only used to typify façades with rectangular windows. For windows with complicated structures, more parameters have to be introduced. In the near future, a contextual typification will be investigated, which means that the typification for windows on a façade should consider the distributions of windows on its neighboring façades. Moreover, the developed approach will be tested on extensive ground plans of densely distributed buildings. The algorithm for automatic typification has been implemented using Matlab (version Matlab 7.4) on a number of façades. A selection of examples is presented in this section. Figure 9 shows the result of typification for a façade in which all the windows are distributed regularly in rows and columns. Figure 9b denotes the new distribution of windows after typification for a scale reduction by two times.

## Acknowledgments

The research work presented in this paper is supported by NSFC (National Natural Science Foundation of China) project No. 41371433, 41671457, the Priority Academic Program Development of Jiangsu Higher Education Institutions (PAPD).

## Author Contributions

Hongchao Fan designed the concept and experiments. Jie Shen conducted the experiments and analyzed the results, and wrote the main part of the paper. Bo Mao was in charge for the verification using ARG and NEMD. Menghe Wang helped the analysis of the experimental results. All the authors contributed in writing and revising the paper.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Staufenbiel, W. Zur Automation der Generalisierung Topographischer Karten Mit Besonderer Berücksichtigung Großmaßstäbiger Gebäudedarstellungen. Ph.D. Thesis, Wissenschaftliche Arbeiten der Fachrichtung Vermessungswesen der Universität Hannover (51), Hannover, Gemany, 1973. [Google Scholar]
- Lamy, S.; Ruas, A.; Demazeau, Y.; Jackson, M.; Mackaness, W.; Weibel, R. The application of agents in automated map generalization. In Proceedings of the 19th International Cartographic Conference of the ICA, Ottawa, ON, Canada, 14–21 August 1999.
- Rainsford, D.; Mackaness, W. Template matching in support of generalization of rural buildings. In Proceedings of the Joint International Symposium on “Geospatial Theory, Processing and Applications” (ISPRS Commission IV SDH2002), Ottawa, ON, Canada, 8–12 July 2002.
- Regnauld, N. Contextual building typification in automated map generalization. Algorithmica
**2001**, 30, 312–333. [Google Scholar] [CrossRef] - Van Kreveld, M. Smooth generalization for continuous zooming. In Proceedings of the ICC, Beijing, China, 6–10 August 2001.
- Sester, M. Generalization based on least squares adjustment. In International Archives of Photogrammetry and Remote Sensing; ISPRS: Amsterdam, The Netherlands, 2000; pp. 931–938. [Google Scholar]
- Meyer, U. Generalisierung der Siedlungsdarstellung in Digitalen Situationsmodellen. Ph.D. Thesis, Wissenschaftliche Arbeiten der Fachrichtung Vermessungswesen der Universität Hannover, Hannover, Gemany, 1989. [Google Scholar]
- Lal, J.; Meng, L. Rules and constraints for 3D generalization of urban area. J. Geogr. Sci.
**2001**, 11, 17–28. [Google Scholar] [CrossRef] - Kada, M. Automatic generalization of 3D building models. In Proceedings of the Joint International Symposium on Geospatial Theory, Processing and Applications, Ottawa, ON, Canada, 9–12 July 2002.
- Ribelles, J.; Hechbert, P.S.; Garland, M.; Stahovich, T.F. Finding and removing features from polyhedra. In Proceedings of DETC’01, ASME Design Engineering Technical Conference, Pittsburgh, PA, USA, 9–12 September 2001.
- Thiemann, F. Generalization of 3D building data. In The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Science; International Archives Of Photogrammetry Remote Sensing and Spatial Information Sciences: Göttingen, Germany, 2002; pp. 286–290. [Google Scholar]
- Thiemann, F.; Sester, M. Segmentation of buildings for 3D generalization. In Proceedings of the ICA Workshop on Generalisation and Multiple Representation, Leicester, UK, 20–21 August 2004.
- Kada, M. 3D building generalization based on half-space modeling. In Proceedings of the ISPRS Workshop on Multiple Representation and Interoperability of Spatial Data, Hannover, Germany, 22–24 February 2006.
- Kada, M. 3D building generalization by roof simplification and typification. In Proceedings of the 23rd International Cartographic Conference, Moscow, Russia, 4–10 August 2007.
- Sester, M. 3D visualization and generalization. In Photogrammetric Week 07; Wichmann: Stuttgart, Germany, 2007; pp. 285–295. [Google Scholar]
- Meng, L.; Forberg, A. 3D building generalization. In Challenges in the Portrayal of Geographic Information: Issue of Generalization and Multi Scale Representation; Mackaness, W., Ruas, A., Sarjakoski, T., Eds.; Elsevier Science Ltd.: Amsterdam, The Netherlands, 2007; pp. 211–232. [Google Scholar]
- Sester, M.; Brenner, C. Continuous generalization for visualization on small mobile devices. In Developments in Spatial Data Handling; Springer: Berlin/Heidelberg, Germany, 2004; pp. 469–480. [Google Scholar]
- Burghardt, D.; Cecconi, A. Mesh simplification for building typification. Int. J. Geogr. Inf. Sci.
**2007**, 21, 283–298. [Google Scholar] [CrossRef] - Follin, J.M.; Bouju, A.; Bertrand, F.; Boursier, P. Visualization of multi-resolution spatial data in mobile system. In Proceedings of 1st International Workshop on Ubiquitous GIS, Gävle, Sweden, 7–9 June 2004.
- Li, Z.; Yan, H.; Ai, T.; Chen, J. Automated building generalization based on urban morphology and Gestalt theory. Int. J. Geogr. Inf. Sci.
**2004**, 18, 513–534. [Google Scholar] [CrossRef] - Li, H.; Guo, Q.; Liu, J. Rapid algorithm of building typification in web mapping. In Proceedings of the International Symposium on Spatio-Temporal Modelling, Spatial Reasoning, Analysis, Data Mining and Data Fusion, Beijing, China, 27–29 August 2005.
- Li, Z. Algorithm Foundation of Multi-Scale Spatial Representation; CRC Press of Taylor & Francis Group: Boca Raton, FL, USA; London, UK; New York, NY, USA, 2007. [Google Scholar]
- Töpfer, F.; Pillewizer, W. The principles of selection. Cartogr. J.
**1966**, 3, 10–16. [Google Scholar] [CrossRef] - Anders, K.H. Level of detail generation of 3D building groups by aggregation and typification. In Proceedings of the XXII International Cartographic Conference 2005, A Coruňa, Spain, 11–16 July 2005.
- Luyten, K.; Creemers, B.; Coninx, K. Multi-Device Layout Management for Mobile Computing Devices; Technical Report TR-LUC-EDM-0301; Limburgs Univeristair Centrum-Expertise Centre for Digital Media: Hasselt, Belgium, 2003. [Google Scholar]
- Kim, D.H.; Yun, I.D.; Uk Lee, S. A new attributed relational graph matching algorithm using the nested structure of earth mover’s distance. In Proceedings of the 17th International Conference on Pattern Recognition (ICPR’04), Cambridge UK, 23–26 August 2004.
- Barrow, H.G.; Popplestone, R.J. Relational descriptions in picture processing. Mach. Intell.
**1971**, 6, 377–396. [Google Scholar] - Gold, S.; Rangarajan, A. A graduated assignment algorithm for graph matching. IEEE Trans. Pattern Anal. Mach. Intell.
**1996**, 18, 377–388. [Google Scholar] [CrossRef] - Wyk, M.A.; Clark, J. An algorithm for approximate least-squares attributed graph matching. In Problems in Applied Mathematics and Computational Intelligence; World Scientific and Engineering Society Press: London, UK, 2000; pp. 67–72. [Google Scholar]
- Mao, B.; Fan, H.; Harrie, L.; Ban, Y.; Meng, L. City model generalization quality assessment using nested structure of earth mover’s distance. In Proceedings of the 13th Workshop of the ICA Commission on Generalisation and Multiple Representation, Zurich, Switzerland, 12–13 September 2010.
- Ripperda, N.; Brenner, C. Reconstruction of facade structures using a formal grammar and RjMCMC. In Proceedings of the 28th Annual Symposium of the Geman-Association-for-Pattern-Recognition, Berlin, Germany, 12–14 September 2006.
- Becker, S. Generation and application of rules for quality dependent facade reconstruction. ISPRS J. Photogramm. Remote Sens.
**2009**, 64, 640–653. [Google Scholar] [CrossRef]

**Figure 1.**An example façade and its vector representation: (

**a**) Example façade of the building located in Arnulfstrasse 53, Munich; (

**b**) Windows extracted from the image.

**Figure 2.**Six different options of typification of the example façade in Figure 1: (

**a**) Option 1: constraints 2, 3 and 4; (

**b**) Option 2: constraints 1, 2 and 4; (

**c**) Option 3: constraints 1, 2 and 3; (

**d**) Option 4: constraints 3, 4 and 5; (

**e**) Option 5: constraints 1, 4 and 5; (

**f**) Option 6: constraints 1, 3 and 5.

**Figure 3.**Three different façades with regularly distributed windows. With the (

**a**) is a façade of NH hotel in Munich, (

**b**) and (

**c**) are façades of two normal buildings on Nymphenburg street in Munich.

**Figure 4.**An example of ARG matching ([26]).

**Figure 7.**Typical distribution of windows on a façade: (

**a**) tendency is in horizontal direction; (

**b**) tendency is in vertical direction; (

**c**) no tendency; (

**d**) regularity is disturbed by a door; (

**e**) windows are not equally-sized; (

**f**) the façade is composed of three regular patterns.

**Figure 8.**Distribution of windows: (

**a**) original distribution; (

**b**) possible distribution after the typification.

**Figure 9.**Typification for a regularly distributed façade at two different scales: (

**a**) original distribution; (

**b**) for scale reduced by 2×; (

**c**) manual typification; (

**d**) manual typification.

**Figure 10.**Typifying a façade whose windows are not evenly distributed in both directions: (

**a**) original façade which can be composed of several segments; (

**b**) Typified for scale reduced by 2×.

**Figure 11.**Typifying a façade, in which the windows are distributed irregularly: (

**a**) original façade which can be composed of several segments; (

**b**) for scale reduced by 2×.

Options | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|

Values | 8.72 | 6.45 | 6.14 | 6.67 | 7.54 | 5.50 |

Value | Constraint | |
---|---|---|

more significant less significant | 10.0 | Keeping ratio of height and width of the windows |

7.0 | Keeping the distances between windows and the outline of the façade, and keeping the distances among windows at the same time | |

5.3 | Keeping the distances between windows and the outline of the façade | |

4.7 | Keeping the distances between windows | |

4.6 | Typification in tendency direction | |

3.9 | Keeping the area covered by windows |

Options | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|

NEMD | 43.5 | 47.8 | 56.5 | 55.2 | 47.5 | 50.1 |

User survey | 8.72 | 6.45 | 6.14 | 6.67 | 7.54 | 5.50 |

© 2016 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/).