You are on page 1of 24

Article

Ming and Qing Dynasty Official-Style Architecture Roof Types


Classification Based on the 3D Point Cloud
Youqiang Dong 1, Miaole Hou 1, Biao Xu 2,*, Yihao Li 1 and Yuhang Ji 1

1 School of Geomatics and Urban Spatial Informatics, Beijing University of Civil Engineering and
Architecture, Beijing 100044, China; dongyouqiang@bucea.edu.cn (Y.D.); houmiaole@bucea.edu.cn (M.H.);
liyihao970721@163.com (Y.L.); ji_yuhang@163.com (Y.J.)
2 Chinese Academy of Surveying and Mapping, Beijing 100036, China

* Correspondence: biaoxv@casm.ac.cn; Tel.: +86-10-6388-0531

Abstract: The Ming and Qing Dynasty type of official-style architecture roof can provide plenty of
prior knowledge relating to the structure and size of these works of architecture, and plays an im-
portant role in the fields of 3D modeling, semantic recognition and culture inheriting. In this paper,
we take the 3D point cloud as the data source, and an automatic classification method for the roof
type of Ming and Qing Dynasty official-style architecture based on the hierarchical semantic net-
work is illustrated. To classify the roofs into the correct categories, the characteristics of different
roof types are analyzed and features including SoRs, DfFtR, DoPP and NoREs are first selected;
subsequently, the corresponding feature extraction methods are proposed; thirdly, aiming at the
structure of the ridges, a matching graph relying on the attributed relational graph of the ridges is
given; based on the former work, a hierarchical semantic network is proposed and the thresholds
are determined with the help of the construction rules of the Ming and Qing Dynasty official-style
Citation: Dong, Y.; Hou, M.; Xu, B.; architecture. In order to fully verify the efficiency of our proposed method, various types of Ming
Li, Y.; Ji, Y. Ming and Qing Dynasty and Qing Dynasty official-style architecture roof are identified, and the experimental results show
Official-Style Architecture Roof that all structures are classified correctly.
Types Classification Based on the 3D
Point Cloud. ISPRS Int. J. Geo-Inf. Keywords: 3D point cloud; roof classification; construction rules; features selection; hierarchical
2021, 10, 650. https://doi.org/10.3390/ semantic network
ijgi10100650

Academic Editors: Andreas


Georgopoulos and Wolfgang Kainz
1. Introduction
Received: 7 June 2021 1.1. Backgrounds
Accepted: 13 September 2021 The Ming and Qing Dynasty official-style architecture, which mainly includes the
Published: 27 September 2021 royal palaces, official buildings and Buddhist/Taoist temples, is an important carrier for
traditional Chinese culture and is considered as the last peak of Chinese architectural his-
Publisher’s Note: MDPI stays neu-
tory [1,2]. Timberwork is the main construction material for this ancient Chinese architec-
tral with regard to jurisdictional
ture, and wooden posts, beams, lintels and joists make up the framework of a house. Suf-
claims in published maps and institu-
fering from natural disasters and man-made destruction, a mass of the ancient architec-
tional affiliations.
ture is damaged or has disappeared due to the fact that these construction materials are
vulnerable to weathering and fires [3]. To preserve the information of this ancient archi-
tecture, digital documentation has become increasingly necessary. The 3D point cloud,
Copyright: © 2021 by the authors. Li-
which can be captured from terrestrial or airborne LiDAR, and UAV-based SfM pro-
censee MDPI, Basel, Switzerland. cessing have become one of the most reliable data sources, and play a more and more
This article is an open access article important role in the field of digital documentation [4–6]. Recent studies on the 3D point
distributed under the terms and con- cloud have achieved great progress in 3D architectural documentation [7]. However, the
ditions of the Creative Commons At- ancient buildings in the Ming and Qing Dynasty contain a large number of components
tribution (CC BY) license (http://crea- with irregular shapes, and this brings great difficulties in reconstructing the 3D paramet-
tivecommons.org/licenses/by/4.0/). ric model, which has further application [8,9].

ISPRS Int. J. Geo-Inf. 2021, 10, 650. https://doi.org/10.3390/ijgi10100650 www.mdpi.com/journal/ijgi


ISPRS Int. J. Geo-Inf. 2021, 10, 650 2 of 24

Roof types have been widely used in 3D building and parametric modeling and have
led to many achievements. Kada and McKinley [10] firstly segmented the point cloud and
determined that the roof type relies on the number of segments; then, the roof plane pa-
rameters were estimated. Mass and Vosselman [11] selected the heights of the point cloud
as weight functions in moment equations to compute the information on the roof type and
shape parameters. On this basis, the gable roof was reconstructed in [11]. Much of the
literature indicates that roof types play an important role in 3D reconstruction [12–15].
Similarly, the roof types (form) of the Ming and Qing Dynasty official-style architec-
ture can also improve the efficiency of parametric modeling. Moreover, in the Ming and
Qing Dynasty, the hierarchy was strictly divided and the construction of the Ming and
the Qing Dynasty official-style architecture followed certain rules, which can be searched
for in YingzaoFashi (Building Standards) [16] of the Song Dynasty or Gongchengzuofa
zeli (Structural Regulations) [17] published by Qing. The roof types (form) of the Ming
and Qing Dynasty official-style architecture can provide more information, including the
structure, topological relation and the size of the components. Based on the information
from the roof types, Yuan Shen [18] calculated the parameters of the traditional Chinese
curvilinear roof based on the roof types (form). Other 3D reconstruction methods for an-
cient Chinese architecture using roof types can be seen in [19–21].
Hence, understanding how to distinguish the roof types of the Ming and Qing Dyn-
asty official-style architecture from the point cloud is an important task, and has a great
significance in the field of 3D modeling.

1.2. Related Works


1.2.1. Roof Type Classification
Focusing on the roof type, several classification methods have been proposed by re-
searchers. The previous classical methodologies for roof type classification mainly rely on
the texture, geometry, height and other features to form building roof hypotheses. These
features can come from images, the 3D point cloud or DSM. For example, Kushwaha et al.
[22] applied the inclination to categorize roof points into flat, inclined or dome-type roofs;
Mohajeri et al. [23] made use of the number of roof surfaces and the distribution of the
binned slope angles to complete the roof classification based on the DSM; Zang et al. [24]
designed a new feature to describe the roof and obtain better performance compared with
the histogram of oriented gradient (HOG), scale-invariant feature transform (SIFT) and
local binary pattern (LBP) features. The methods in [25–27] provide other examples.
Despite the data sources being different, features are always the key to roof type
recognition in classical roof classification methods. Aiming at the different roof types, the
features must be designed carefully. This principle also applies to the roof classification
of the Ming and Qing Dynasty official-style architecture. However, the differences be-
tween different roof types may be very small. How to select and extract the proper fea-
tures from a 3D point cloud to distinguish the roof types is still a challenging task.
In recent years, with the advances in the field of artificial neural networks, some re-
searchers have turned their attention towards deep learning for roof types classification.
Axelsson et al. [28] applied a pre-trained deep convolutional neutral network (CNN) to
classify the most common slope and flat roof types based on the aerial images. Similarly,
based on a pre-trained CNN framework, Partovi et al. [29] accomplished building roof
types classification. In addition to using a pre-trained CNN framework directly, Partovi
et al. extracted the deep features from deep layers of different pre-trained CNN models
and made use of an SVM classifier to recognize the building roof type. Jeremy et al. [30]
proposed an automatically labelling building roof shape method from publicly available
GIS data. In this method, a diverse annotated roof image dataset is created, the multiple
CNN architectures are trained and tested, and the experimental results show that the fu-
sion of the satellite image and LiDAR data can provide greater classification accuracy than
using either data type alone. To improve the learning efficiency and prediction accuracy,
ISPRS Int. J. Geo-Inf. 2021, 10, 650 3 of 24

Bittner et al. [31] propose a Multi-Task conditional generative adversarial network (cGAN)
for simultaneous space borne DSM refinement and roof-type classification.
The methods based on deep learning for roof classification shows promising results;
however, there are some limitations. On one hand, although some roof type training da-
tasets have been published [32], these datasets mainly consist of images and there is rarely
a point cloud dataset focusing on the Ming and Qing Dynasty official-style architecture
roof. On the other hand, the direct method of applying deep learning on a point cloud is
to convert the data into volume representation. Comparing with the 2D image, the amount
of 3D volume data will become very large, very fast (although a graphics processing unit
(GPU) has been developed). To speed up processing, it is necessary to compromise and
adopt a lower resolution (some methods use 64 × 64 × 64). This strategy will cause the loss
of details and bring the cost of quantization errors. In fact, some experimental results show
that the classical methods may obtain better performance than the deep learning methods
in the field of architectural heritage point cloud classification [33].

1.2.2. Object Recognition Based on 3D Point Cloud


Identifying roof types of the Ming and Qing official-style architectures from a point
cloud is an object recognition/classification problem. Classical object recognition methods
based on the 3D point cloud mostly compare/learn the geometric, shape, structural attrib-
utes or multiple attributes to complete the object recognition and classification [34]. From
the perspective of the features, these methods can be divided into four categories: object
recognition methods based on local features, object recognition methods based on global
features, object recognition methods based on graph matching and object recognition
methods based on machine learning.
The process of the object recognition methods based on local features can be divided
into three stages: key point detection, feature description and matching. Many mature
methods which can complete specific functions in each stage have been proposed. In the
key point detection stage, the common key point detection algorithms mainly include in-
trinsic shape signatures (ISSs) [35], Harris 3D [36], local surface patches (LSPs) [37]; fast
point feature histograms (FPFHs) [38], SHOT [39] and rotational projection statistics
(ROPS) [40] which are used for feature description; the feature matching can be completed
by the threshold method, nearest neighbor (NN) and nearest neighbor distance ratio
(NNDR) [41]. Due to the fact that this type of method makes use of the local features of
the key points, edges and patches to complete the target object recognition directly, it in-
evitably needs to search for the feature points from the entire scene and model. This causes
the recognition process to be time consuming. The object recognition methods based on
global features firstly extract the target object from the entire scene and regard the 3D
target object as a whole; then, the global features from the whole 3D target are applied for
the object recognition. The common classical global features mainly contain GFPFH [42],
VFH [43], CVFH [44] and ESF [45]. Although this kind of method is faster compared with
the object recognition methods based on global features, it is sensitive to noise and occlu-
sion. This is mainly because the noise and occlusion damage the extraction results of the
target object from the complex scene. Moreover, due to the fact that the object recognition
methods based on global features regard the target object as a whole, it is difficult to de-
scribe the details of 3D models and recognize objects with similar shapes. For the Ming
and Qing official-style architecture, the differences are just some details between these
roofs. This will damage the recognition rate.
In addition to extracting features directly from the point cloud for object recognition,
some researchers decompose the point cloud data into basic shapes and convert these
basic shapes into a topological graph to represent and recognize the target objects. Schna-
bel et al. [46] applies the random sample consensus (RANSAC) algorithm to decompose
the point cloud data into basic shapes. Each basic shape is represented by an abstract
point, and the adjacent relationship between them is represented by a topological graph.
The object recognition is completed by graph matching. The similar methods in [47–49]
ISPRS Int. J. Geo-Inf. 2021, 10, 650 4 of 24

are a few examples. The main difference of these methods is what kind of features are
selected and extracted to construct the topological graph. For example, Cheng et al. [47]
select various curvature information to construct the topological graph; Hao et al. [48]
defines the connection types between different types of planes and analyzes the structure
of common objects; Berner et al. [49] combines the outlines and shape to construct the
topological graph. For the Chinese ancient architecture roof, the structure of the roof is the
important feature. However, only relying the structure of the different Ming and Qing
Dynasty official-style architectures is impossible. This is mainly because the different roof
types may have the same structure relationship. For example, the structure of the over-
hanging gable roof and the flush gable roof are the same.
The object recognition method based on machine learning extracts and learns the fea-
tures of samples, and uses the classifier to complete the classification and recognition of
objects. Generally speaking, machine learning classifiers can be divided into two catego-
ries: traditional machine learning and deep learning. In the traditional machine learning
method, the commonly used classifiers are: support vector machine [50], random forest
[51], adaboost [52], jointboost [53], naive Bayes classifier [54] and maximum expectation
algorithm [55]. Nowadays, the research of point cloud classification mainly focuses on the
recognition of the different ground objects from complex scenes. Much of the literature
shows that the most important impactors affecting recognition are the selected features.
Hence, the extraction of the features presented in the Ming and Qing official buildings
with different styles is very important in the process of the Ming and Qing official building
style classification based on the point cloud.
Thanks to the performance improvement of computer hardware, some architectural
heritage classification methods based on deep learning are proposed. One of the earliest
and most famous deep learning architectures working directly on the point cloud is point
net [56]. It is an end-to-end deep neural network, which can learn the features of classifi-
cation, part segmentation and semantic segmentation by itself. Because the point net does
not capture the local geometry, a development, namely PointNet++ [57] is proposed. Be-
sides the PointNet, some researchers [58,59] applied convolution to gain understanding
of point-based learning. In 2019, Wang et al. propose a method named DGCNN [60]. In-
stead of employing individual points, this method exploits local geometric structures by
constructing a local neighborhood graph and applying convolution-like operations on the
edges connecting neighboring pairs of points. Although the architectural heritage classi-
fication methods based on deep learning have obtained a good performance, no matter
what the ML or DL, the training datasets are very important. Nowadays, some datasets
such as ModelNet 40 [61], KITTI [62], Sydney Urban Objects dataset [63], Semantic3D [64],
S3DIS [65] and ArCH [66] have been published, most of the current datasets collect data
from urban environments, and there are still no published datasets focusing on immova-
ble cultural assets with an adequate level of detail. This brings difficulties for Ming and
Qing Dynasty official-style architecture roof types recognition.

1.3. Motivation and Contributions


In this work, we aim to distinguish the roof type from the 3D point cloud so that the
information provided by the roof type can be used in the 3D reconstruction of Ming and
Qing Dynasty official-style architecture. Based on a hierarchical semantic network, a clas-
sification method for the Ming and Qing Dynasty official-style architecture roof types is
presented in this paper. With the help of this method, the roofs are classified into the cor-
rect categories. The main contributions of this paper are listed as follows:
 The features which distinguish the roof types are selected based on the “grammar
book” and the corresponding feature extraction methods are proposed.
 Aiming at the structure of the ridges, the attributed relational graphs of the ridges
from different types of the Ming and Qing Dynasty official-style architectures are
constructed and recognized.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 5 of 24

 A hierarchical semantic network for the Ming and Qing official-style architecture roof
classification is proposed. In this framework, adaptive thresholds are estimated
based on the construction rule of Qing Dynasty architecture, and the reliable thresh-
olds are given in this paper.
Research in this paper is organized as follows. Section 2 analyzes and selects the iden-
tified features for the classification of the Ming and Qing Dynasty official-style architec-
ture roof. Section 3 gives the corresponding features extraction methods. To recognize the
structure of the ridges, graph matching relying on the attributed relational graph of the
ridges is proposed in Section 4. In Section 5, a hierarchical semantic network for the clas-
sification approach of the Ming and Qing Dynasty official architecture roof is proposed.
Section 6 shows the experimental results and analysis. Finally, a conclusion is conducted
in Section 7.

2. Feature Selection
2.1. A Brief Introduction of the Roof Types
The roof of ancient Chinese architecture plays a particularly important role in the
building facade, which makes the building produce a unique and strong visual effect and
artistic appeal. For the Ming and Qing Dynasty official-style architecture, the roof types
include basic, special and derived roof types. The basic roof types can be classified into
five categories: hip roof, gable-and-hip roof, pyramidal roof, overhanging gable roof, and
flush gable roof as is shown in Table 1. The gable-and-hip roof, gable roof and overhang-
ing gable roof have a corresponding round ridge roof; and the hip roof, gable-and-hip roof
and pyramidal roof can be further divided into double-eave and single-eave as is shown
in Figure 1. Different roof types reflect the different architectural hierarchies and the social
status of the holder. For example, the hip roof can only be used for the royal buildings or
Confucius halls. From high to low rank, the order of different roof types’ grades is: double-
eave hip roof, double-eave gable-and-hip roof, double-eave pyramidal roof, hip roof, ga-
ble-and-hip roof, pyramidal roof, overhanging gable roof, round ridge roof, and flush ga-
ble roof.

Table 1. The roof types of the Ming and Qing official-style architecture.

Roof Type Illustrations Example Description


Hip roofs with all sides sloping, are the classiest traditional
hip roof roof style. There are a total of five ridges including a main
ridges and four vertical ridges.

Gable and hip roofs, with two curving sides, are second in
gable and hip
importance to hip roofs. They are nine ridges including a
roof
main ridges, four vertical ridges and four diagonal ridges.

Overhanging gable roofs have two straight, overhanging


overhanging
slopes. They are five ridges including a main ridges and four
gable roof
vertical ridges.

Flush gable roofs have a main ridge and raise sloping ridges
flush gable roof on the gable walls. It is a very simple style with two slopes
facing front and back.

Pyramidal roof has four slopes. The number of the slopes is


pyramidal roof equal to the number of vertical ridges which intersected at
one point.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 6 of 24

Round ridge roof, with no main ridge, has two straight


round ridge roof slopes. It is a variant of the gable and hip roof, overhanging
gable roof and flush gable roof.

(a) (b) (c)


Figure 1. The Ming and Qing Dynasty official-style architecture with double-eave roof: (a) double-
eave hip roof architecture (b) double-eave gable and hip roof architecture; (c) double-eave pyrami-
dal roof architecture.

Besides these basic roof types, there are some special and derived roof types for the
Ming and Qing Dynasty official-style architecture. The common ones are: fan-shaped ga-
ble and hip roof with a round ridge, hip and flat roof, intersecting gable and hip roofs
(Figure 2). These roofs are derived from different combinations of basic roofs. For exam-
ple, the intersecting gable and hip roof is formed by the intersection of two gable-and-hip
roofs. The representative intersecting gable and hip roofs building is the corner building
of the Palace Museum in Beijing. Through various combinations of roofs, the shape and
contour of the building become more abundant.

(a) (b) (c)


Figure 2. The special and derived roof type architecture: (a) fan-shaped gable and hip roof with a
round ridge architecture; (b) hip and flat roof architecture; (c) intersecting gable and hip roof archi-
tecture.

The roof types of the Ming and Qing Dynasty official-style architecture are rich and
varied. It is difficult to list all the roof types. Compared with the special roof types and the
derived roof types, the basic roof types are more common. Hence, in this paper, we mainly
focus on the classification of the basic roof types.

2.2. Feature Analysis for the Ming and Qing Dynasty Official-Style Architecture Roof
Classification
According to the description in Table 1, the roof of the Ming and Qing Dynasty offi-
cial-style architecture is mainly composed of roofing and ridges. Among the different
types of roofs, the number, topological structure of the ridges and the shape, number, and
topological relationship of irregular surfaces are different. All these differences can be re-
garded as the identified features. Although the features from the ridges and roof surfaces
are coupled with each other, the features from the ridges can provide more details and are
more robust in the recognition of the Ming and Qing Dynasty official-style architecture
compared with the features from roof surface. For example, both the hip roof and the
pyramidal roof have four slopes. The difference between these two types of roofs is
whether there is a main ridge. Similarly, the gable-and-hip roof with a round ridge does
not have a main ridge, while the gable-and-hip roof has a main ridge.
However, only relying on the ridges to classify the roof of the Ming and Qing official-
style architecture into correct categories is impossible. Several of the limitations are listed
as follows:
ISPRS Int. J. Geo-Inf. 2021, 10, 650 7 of 24

 The structural relationship of the ridge vector graph from the flush gable roof and
overhanging gable roof are almost the same.
 The ridges cannot provide the single-eave or multiple-eave information which is
used to distinguish the single-eave or multiple-eave hip roof, pyramidal roof and
gable and hip roof.
To overcome these limitations, other features from the Ming and Ming and Qing
Dynasty official-style architectures should be considered. Based on these analyses, the se-
lected features for the roof classification are listed as follows.
1. The structure of the ridges—SoRs
The ridges from different roof types of the Ming and Qing Dynasty official-style ar-
chitecture have different topological relationships. The structure of the ridges of different
roof types can be seen in Figure 3. Based on SoRs, most roofs can be classified into the
correct categories.

(a) (b) (c) (d)


Figure 3. The vector graph of ridges: (a) hip roofs; (b) gable and hip roof; (c) gable roof or flush gable
roof; (d) pyramidal roof.

2. The distance from the outline of the facades to outline of the roof—DfFtR
Figure 4a,b shows a flush gable roof building and an overhanging gable roof build-
ing, respectively. For the flush gable roof building, the outline of the facades is basically
consistent with the outline of roof on the XOY plane as is shown in Figure 4c, while the
outline of the facades is far away from the roof contour on both sides of the overhanging
gable roof building as is shown in Figure 4d. From the perspective of the construction
system for the Ming and Qing Dynasty official-style architecture, the distance from the
outline of the facades to outline of the roof (DfFtR) of the overhanging gable roof building
is also called cantilever length (悬挑). Obviously, DfFtR can be regarded as a salient fea-
ture for distinguishing the flush gable roof and overhanging gable roof.

(a) (b)

(c) (d)
Figure 4. (a) Illustration of a flush gable roof building; (b) illusion of an overhanging gable roof
building; (c) the roof and facades of a flush gable roof building from the front perspective views; (d)
illustration of DfFtR.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 8 of 24

3. The density of the projective points—DoPP


The shape of a main ridge is nearly a cuboid as is shown in Figure 5a. Due to the fact
that there are two facades on the front and rear sides of the main ridge, this results in the
density of the projective points (DoPP) on the XOY plane being higher than that located
in other areas of the roof surface as is shown in Figure 5b. Based on the DoPP, the main
ridge can be recognized.

(a) (b)
Figure 5. (a) The main ridge of a flush gable roof building; (b) the roof point cloud density distribu-
tion on the XOY plane.

4. The number of the roof eaves—NoREs


The number of the roof eaves (NoREs) is mainly used for distinguishing the single
eave architecture and multiple eave architecture.

3. Feature Extraction
The input data are an entire architecture point cloud. Considering the calculation
process of the selected features, the roof and the ridges should be extracted before gener-
ating the features. In this section, a roof extraction method based on the change of projec-
tive areas and a ridge extraction method using the section lines are illustrated at first. On
the basis of the extracted roof and ridges, the features are generated in Section 3.3.

3.1. The Roof Extraction Method Based on the Change of Projective Areas
The shape of the Ming and Qing Dynasty official-style architecture roof is sloping or
curved and the roof eaves extend out of the beam frame. This results in the projective area
of the points becoming small from the roof eaves to the top of the roof on the XOY plane.
Based on the change of projective areas, a roof extraction method is proposed. The details
of this method are described as follows:
 Suppose that the original point cloud represented the Ming and Qing Dynasty offi-
cial-style architecture (Figure 6a) is defined as = { ( )| = 1,2, ⋯ , },
is the number of points in . The point ( ) and the point ( )
belonging to the point cloud are the highest and lowest points along direction
separately.
 Along the z direction, divide the point cloud into the several of subsets with inter-
val as is shown in Figure 6b. The interval is set as 0.1 m based on experience.
( )
The sampled points are defined as = = 1,2, ⋯ , , = int +1 . A
point from the point cloud is categorized to the subset which should meet
Equation (1).

( − ) (1)
j = int +1

 From 1 to M, wipe off the point set from the original point cloud in turn. After
each point subset is removed, project the remaining points onto the XOY planar co-
ordinates with a scale . If the number of points falls in a grid beyond 0, this grid is
ISPRS Int. J. Geo-Inf. 2021, 10, 650 9 of 24

marked as 255. Subsequently, a morphological close operator with a 7 × 7 square


structuring element is used to generate an initial binary image. Figure 6c,d shows the
generated binary image created by the points which are higher the red points and the
green points labeled as in Figure 6b separately. The number of pixels consisting of
the binary image can be regarded as the projective areas on the XOY plane. The his-
togram composed of the areas is shown in Figure 6e.
Starting with the roof eave, the area becomes smaller with the increasing height. If
the elevation value of a point is greater than that of the split roof eave, this point can be
regarded as the roof point, otherwise the point is the roof point. The extracted roof can be
seen in Figure 6f.

(a) (b) (c)


4000

3500
the first roof eave

3000

the projective areas in pixels


2500 the second roof eave
2000

1500

1000

500

0
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69

the evalation in sample interval

(d) (e) (f)


Figure 6. The roof extraction process: (a) the original point cloud; (b) two sampled points subsets;
(c) the generated projective image by the remaining points which are higher than the red points
labeled as in (b); (d) the generated projective image by the remaining points which are higher than
the red points labeled as in (b); (e) the histogram generated by projective areas; (f) the extracted
facades and roof.

3.2. The Ridge Extraction Using Section Lines


Figure 7 shows the process of the ridge extraction. The details of this process are de-
scribed as follows:
 Project the roof points onto the XOY plane, and divide the two-dimensional plane
into grids according to the specific size . The points ( ),
( ), ( ) and ( ) are the top
point, bottom point, left-most point and the right-most point separately.
 Along the axis, search the ridge points. Firstly, suppose that the points within the
row which are parallel to the axis are defined as the point set . =
( ) = 1,2, ⋯ , , is the number of the points. The point
( ) should meet Formula (2).
+ ( − 1) < ≤ + (2)
Select the highest point ( ) from the point set . If
a point meets Formula (3), this point is stored into the point set .
− ≤ (3)
In this formula, is the elevation of the point, is the specified threshold. The
extracted ridge points belonging to the row are shown in Figure 7b. Figure 7d shows
the extracted ridge points within different rows.
 Similarly, continue step 2 along the X axis and save the ridge points to the point set
. The extracted ridge points are shown in Figure 7f.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 10 of 24

(a) (b)

(c) (d)

(e) (f)
Figure 7. The process of extracting ridges: (a) the top view of the original point cloud; (b) section
lines; (c) the points from section line along LX1 labeled as in (b); (d) the points from different section
lines along X axis; (e) the points from section line along LY1 labeled as in (b); (f) the extracted ridge
points.

3.3. Feature Generation


Based on the roof extraction method and the ridge extraction method, the extraction
process details of the features including NoREs, DfFtR, DoPP and SoRs are listed as fol-
lows.
1. NoREs generation
As is shown in Figure 6e, the histogram can be divided into four stages. In the first
stage, only the facade points are removed and the projective area remains unchanged;
subsequently, the area becomes small with the decrease of points belong to the first roof
eave; in the third stage, the facade points between the first roof eave and the second roof
eave are wiped off gradually and the projective area keeps stable; lastly, with the increase
of height, the projective area becomes 0. Obviously, the intervals where the projective area
remains unchanged correspond to the facade points, and the intervals where the projec-
tive area decreases correspond to the roof points. The extracted facade points and roof
points can be seen in Figure 6f. The number of the intervals where the projective area
remains unchanged is NoREs.
2. DfFtR generation
After roof extraction, project the façade points and roof points onto the XOY plane,
and generate the outline of the facades and roof, separately. DfFtR is equal to the distance
between two intersections which are created by a straight line defined by the center point
and main direction of the architecture. These two intersections are on the side of the build-
ing facade.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 11 of 24

3. SoRs generation
Project the ridge points onto the XOY plane. If the number of the points located in a
grid is beyond 1, the grid is labeled as 255. After these steps, the generated ridge lines still
have a width of 2–3 pixels. Subsequently, a Skeletonization algorithm [67] is performed to
thin the ridge lines. Finally, a straight-line detector based on the Freeman chain code [68]
is used to generate the ridge lines.
4. DoPP generation
The main ridge is parallel to the main direction of the architecture, and is located in
the middle area of the architecture. Based on this, the ridge line which represents the main
ridge is selected. Around the selected ridge line, create a buffer region. The number of
points located in this buffer region divided by the area of this buffer region is the DoPP.

4. Graph Matching Relying on the Attributed Relational Graph of the Ridges


Different from NoREs, DfFtR and DoPP which have a specified threshold, the SoRs
is the structural relationship of the ridges. Hence, the structure of the ridges should be
converted into a topological graph and the graph matching algorithm is used to distin-
guish the roof types. Nowadays, the formal description methods of structure are various,
including serial grammar, tree grammar, deep learning and so on. The attributed rela-
tional graph not only can describe the structural relationship of the graph, but also can
introduce the property which describes some characteristics of the graph. In this section,
we firstly construct the attributed relational graph of ridges; then, the subgraph isograms
are applied to distinguish the roof types.

4.1. The Generation of the Attributed Relational Graph of the Ridges


Here, we define a quadruple to present the attributed relational graph as in Formula
(4).
=( , , , , , ) (4)
In Formula (4), = { ⋯ } is the finite data set of the vertices, is the
number of vertices in the data set ; = { ⋯ } is the finite set of the edges,
such as e = ( ), 1 ≤ , ≤ , i ≠ j , which represents the edge between the vertex
and the vertex , M is the number of edges in E, is the vertex property set, and
is the edge property set. is a function that produces vertical properties from → ,
and is a function that produces edge properties from → .
In the process of describing ridge features using an attributed relational graph, the
extracted ridge line is regarded as the vertex and the connection relationship between
the ridges can be used as the edge . and contain an attribute separately. The
length α is the vertebrae properties in and the angle between the connected ridges
is the edge property in . Figure 8 shows the vector graph and the corresponding at-
tributed relational graph of the ridges from the different types of Ming and Qing official
architecture. Table 2 shows the attributed relational graph template of the ridges from
pyramidal roofs.

(a) (b) (c) (d)


Figure 8. The corresponding attributed relational graph: (a) hip roofs; (b) gable and hip roof; (c)
gable roof or flush gable roof; (d) pyramidal roof.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 12 of 24

Table 2. The attributed relational graph template of the ridges from pyramidal roofs.

= , , ,

= 〈 〉, 〈 〉, 〈 〉, 〈 〉, 〈 〉, 〈 〉
={ | , = 1,2, ⋯ , }
={ | , = 1,2, ⋯ , }

= {α = ⁄ }

= {θ = cos ( ) }

4.2. The Roof Type Reorganization Based on the Subgraph Isograms


The generated attributed relational graph from extracted the ridges should match the
constructed attributed relational graph template so that the Ming and Qing Dynasty offi-
cial-style architecture can be classified into the correct category. The graph isomorphism
can solve the problem. The graph isomorphism is the function from the graph =
( , , , , , ) to the graph G = ( , , , , , ). This function : →
should satisfy the followed numbering conditions:
(1) ∀ ∈ , ∃ ( ) = ( ) ;
(2) ∀ = ( , ) ∈ , ∃ = ( ), ( ) ∈ and ( )= ( ) ; ∀e’ = ( , )∈
E ,∃ = ( ), ( ) ∈ and ( ) = ( ).
When the structure of two graphs is the same, these two graphs must be an isomor-
phism. However, suffering from the extraction accuracy of the ridges, only a part of the
graph is obtained in some cases. Hence, the isomorphism conditions need to be relaxed to
allow one graph to be mapped to another part of the graph. This mapping is called sub-
graph isograms. The function : → is the isomorphic function from the graph G to
the subgraph of G .
From the analysis above, the isomorphism of the graph is a special case of the sub-
graph isomorphism. In this paper, the Ullmann algorithm [69] is used to determine the
isomorphism of subgraphs.

5. Our Proposed Method


5.1. The Workflow of Our Proposed Methods
The workflow of our proposed method is shown in Figure 9. The process of this
workflow is separated into four stages. The details of each stage are described as follows:
 In the first stage, the roof extraction method is applied to segment the point cloud
into the facade points and roof points. The feature NoREs is obtained. If NoREs = 1,
the Ming and Qing official-style architecture roof is classified as a single-eave roof;
otherwise, this roof is categorized as a multiple-eaves roof.
 Secondly, extract the ridge points from the roof points based on the ridge extraction
method proposed in Section 3.2 and make use of the ridge points to generate the
feature SoRs. Based on the method in Section 4, a single-eave roof can be classified
into a hip roof, pyramidal roof, unclassified gable and hip roof or unclassified roof;
and the multiple-eaves roof is classified into a hip roof, pyramidal roof or unclassified
gable and hip roof.
 In the third step, calculate the DfFtR. If > ℎ , the unclassified single-
eave roof is regarded as an unclassified overhanging gable roof; otherwise, the un-
classified single-eave roof is regarded as an unclassified flush gable roof.
 Finally, calculate the DoPP based on the method in Section 3.3. If > ℎ ,
the unclassified flush gable roof, unclassified overhanging gable roof or unclassified
ISPRS Int. J. Geo-Inf. 2021, 10, 650 13 of 24

gable and hip roof is grouped into the flush gable roof category, overhanging gable
roof category or gable and hip roof category; otherwise, the unclassified roof is cate-
gorized as an overhanging gable round ridge roof, flush gable round ridge roof or
gable and hip round ridge roof.

Figure 9. Proposed hierarchical semantic network for the Ming and Qing official-style architecture
classification.

5.2. Threshold Determination


In our proposed method, ℎ and ℎ are the thresholds in the suggested
hierarchical semantic network for the Ming and Qing official-style architecture classifica-
tion. These two thresholds are decided by the cantilever length (CL) and the height of the
main ridge (HoMRR) separately.
From the perspective of the construction system, the Ming and Qing Dynasty official-
style architecture can be further divided into wooden frame architecture with dougongs
and wooden frame architecture without dougongs. The former mainly covers the catego-
ries of hip roof, gable-and-hip roof, pyramidal roof, overhanging gable roof and flush ga-
ble roof; the latter contains the pyramidal roof, overhanging gable roof, and flush gable
roof. These two wooden frame architectures have different modules. The dimensions of
the main components of the Ming and Qing official architecture should be a multiple of
the modules. According to the Gongcheng Zuofa Zeli of the Qing Dynasty, both HoMRR
and CL is equal to 12 * doukou under the doukou module system. Under the D module
system, HoMRR should be equal to 2.2D and CL is equal to 3.3D as is shown in Table 3.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 14 of 24

Table 3. The rule table for the thresholds.

The Modules of the Wooden The Modules of the Wooden


Index
Frame with Dougong Frame without Dougong
eave column height 60 doukou 11 D
main ridge height 12 doukou 2.2 D
diameter of the draft 1.5 doukou D/3
cantilever length 12 doukou 3.3 D

The doukou has 11 sizes or grades and the minimum dimensions of doukou is 1 cun
(3.5 cm) as is show in Figure 10. However, the eave column diameter D does not have an
exact value. To overcome this limitation, the corresponding sizes of the same components
from the wooden frame architecture with or without dougongs is applied to obtain an
approximate value of D. Based on this, D ranges from 3.6 doukou to 5.5 doukou. Consid-
ering the different grades of Ming and Qing official-style buildings, HoMRR ranges from
1 cun × 8 to 6 cun × 12 and CL ranges from 1 cun × 3.3 × 3.6 to 6 cun × 12.

Figure 10. The grades and sizes of Qing doukou.

ℎ should be equal to CL. The higher the grade of the Ming and Qing official-
style building is, the bigger CL is. Hence, ℎ should be higher than the minimum
CL-1 cun × 8. For ℎ , suppose that the density of point cloud is . In theory,
ℎ should be equal to × (2 × × + × )⁄( × ) when is
bigger than the width of the main ridge; otherwise, ℎ is equal to ×
( × + × )⁄( × ). In this paper, is user-defined. Here, we set as
. We can set this value to be the ℎ which can be set as 2 .

6. Performance Evaluation
6.1. Experimental Data Description
Many Ming and Qing official-style buildings have been established as major histori-
cal and cultural sites protected at the national level in China and are managed by corre-
sponding institutions. When we capture the point cloud, the authorization from these in-
stitutions is necessary. This results in the acquisition of the point cloud becoming very
difficult. In our experiments, three datasets were used to evaluate the performance of our
proposed method. The first two datasets consisted of point clouds captured by the terres-
trial laser scanning system or generated by UAV images and contained two roof types. To
test more roof types, we introduced a third dataset composed of the point clouds derived
from 3DsMAX models. The 3D information of these models is consistent with that of real
buildings and is reliable test data through inspection and comparison by experts. Each
dataset is described as follows:
 The first dataset contained the point cloud of the Gate of Supreme Harmony and the
Hall of Complete Harmony labeled as rectangle 1 and 2 in Figure 11a. These point
cloud was captured by the terrestrial laser scanning (TLS) system. Figure 12 shows
the point cloud after registration in the commercial software package Leica Cyclone.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 15 of 24

The point cloud density of the Gate of Supreme Harmony and the Hall of Complete
Harmony was 44,083 points/m2 and 43,416 points/m2, respectively.

(a) (b)
Figure 11. (a) Forbidden City; (b) Qutan Temple.

Figure 12. The point cloud of the Gate of Supreme Harmony and the Hall of Complete Harmony.

 The second dataset was composed of the dense image matching (DIM) point cloud
of BaoGuang Hall located in Qutan Temple, QingHai province, China as is shown in
Figure 11b. 261 UAV images are collected by DJI Phantom4 which was composed of
a FC6310R camera with a 13.2 × 8.8 mm2 sensor size and a 2.41 μm pixel size. The
flight path surrounded the building as is shown in Figure 13. The distance from the
exposure points to this building varied from 20 m to 85 m. Considering the 8.8 mm
focal length and the photographic distance, the ground sampling distance (GSD) for
all cameras ranged from 0.5 cm to 2 cm. Relying on the commercial software pack-
age Bentley, this DIM point cloud was generated. The density of the generated DIM
point cloud was 59,737 points/m .
ISPRS Int. J. Geo-Inf. 2021, 10, 650 16 of 24

camera position
Figure 13. The flight path.

 The third dataset included 3DsMAX models of Meridian Gate, LiJing Xuan, Gate of
Lasting Happiness labeled as rectangle 4, 5 and 6 in Figure 11a and a 3D model ex-
ample from a website. To satisfy the data requirements, we converted these 3D mod-
els into 3D point cloud based on the commercial software CloudCompare. The den-
sity of the point cloud was 95 points/m2.
There are six types of Ming and Qing Dynasty official-style architecture roofs: dou-
ble-eave hip roof, double-eave gable and hip roof, flush gable roof, round ridge roof, over-
hanging gable roof and pyramidal roof. The roof type information of each test building is
described in Table 4.

Table 4. The details of each test building.

Architecture Name Roof Type Point Cloud Illustration

Gate of Supreme double-eave ga-


Harmony ble and hip roof

Hall of Complete
pyramidal roof
Harmony

double-eave ga-
BaoGuang Hall
ble and hip roof

double-eave hip
Meridian Gate
roof
ISPRS Int. J. Geo-Inf. 2021, 10, 650 17 of 24

LiJing Xuan flush gable roof

flush gable roof


Gate of Lasting
with round
Happiness
ridge

overhanging ga-
A 3D model example
ble roof

6.2. Experimental Results and Discussion


6.2.1. Experimental Results
In our experiment, the thresholds were set according to the description in Section 5.2.
Table 5 illustrates the classification details of each test Ming and Qing Dynasty official-
style architecture roof from dataset 1, 2 and 3, respectively. The extraction process of each
test architecture roof is listed as follows:
 NoREs extraction. As is shown in the second row of Table 5, for the Hall of Complete
Harmony, LiJing Xuan, Gate of Lasting Happiness and the collected example, the
projective areas kept stable at first; subsequently, the projective areas became smaller
after the height was beyond the eaves. The NoREs from these architectures was 1 and
the roofs of these architectures were grouped into the single-eave roofs. For the gen-
erated histogram of the Gate of Supreme Harmony, BaoGuang Hall and the Meridian
Gate, there were two intervals where the projective area remained unchanged. The
NoREs from the three architectures was 2. The roofs of the three architectures were
categorized into the double-eave roofs. The extracted roof of each test architecture is
shown in the third row of Table 5.
 SoRs extraction and reorganization. The extracted ridge points from each architecture
can be seen in the fifth row of Table 5. The experimental results showed our proposed
method could obtain the correct structure of the ridges of each architecture. Based on
the extracted SoRs, the roof of the Meridian Gate was distinguished as a double-eave
hip roof and the roof of the Hall of Complete Harmony was classified into the py-
ramidal roof category. The unclassified double-eave gable and hip roof type con-
tained the roofs of Gate of Supreme Harmony and BaoGuang Hall. The roofs of other
architectures were categorized as unclassified single-eave roofs.
 DfFtR detection. For the unclassified single-eave roofs, the DfFtR of the collected 3D
model example was 0.32 m and the outlines of the facades and roofs from LiJing
Xuan and Gate of Lasting Happiness were almost the same as is shown in the sixth
row of Table 5. The roof of the collected 3D model example was regarded as an un-
classified overhanging gable roof and the roof of LiJing Xuan and Gate of Lasting
Happiness were grouped as unclassified flush gable roofs.
 DoPP detection. As is shown in the seventh row of Table 5, except the Gate of Lasting
Happiness, the density of points located in the areas around the main ridge from
other unclassified roofs was higher than that in other areas. After this step, the Gate
ISPRS Int. J. Geo-Inf. 2021, 10, 650 18 of 24

of Lasting Happiness was categorized as a flush gable roof with round ridge and
other unclassified roofs were classified correctly.
The experimental results at each stage were consistent with the theoretical results
and all the test architecture roofs were classified into the correct categories. This shows
that our proposed method could get a good performance for the Ming and Qing Dynasty
official-style architecture roof classification.

6.2.2. The Density of Point Cloud Sensitivity Analysis


The features extraction which relied heavily on the roof and ridge extraction methods
had a significant effect on the experimental results. The density of the point cloud seri-
ously influenced the roof and ridge extraction. To verify the robustness of our proposed
methods, the sensitivity of the point cloud density should be analyzed. The point cloud of
BaoGuang Hall was generated by UAV images, the point cloud of Gate of Lasting Happi-
ness was created from the 3DsMAX and the point cloud of Hall of Complete Harmony
was captured by terrestrial laser scanning technology, separately. Three point clouds
came from different data sources. On the other hand, the roof types of BaoGuang Hall, the
Hall of Complete Harmony and the Gate of Lasting Happiness were different. To ensure
the robustness and accuracy of the analysis, we selected the point cloud of BaoGuang Hall,
the Gate of Lasting Happiness and the Hall of Complete Harmony as the analysis objects
and rarefied the point cloud density to 1/10 and 1/100 of the original density separately in
this analysis process.
For the roof extraction, the shape of histogram generated by the projective areas
along the Z direction and the extracted roof almost were the same with different point
densities as is shown in Tables 6–8. Theoretically, when the average distance between two
nearest points was beyond the distance from the roof eave to the ground or distance be-
tween two roof eaves, the roof extraction would fail. However, this is an extreme case. In
this circumstance, the density of point cloud would be too small and could not meet the
requirement of 3D modeling. The results showed that the densities of the point cloud had
little impact on the roof extraction.
In the ridge extraction stage, the ridges extracted from the Hall of Complete Har-
mony point cloud with different densities were the same as is shown in Table 7. For
BaoGuang Hall, starting from the junction of the diagonal ridge and the vertical ridge,
there was a short line segment when the density of point cloud was 1 percent of the orig-
inal density as is shown in the fourth row and column of Table 6. In fact, a blank area
between the diagonal ridge and the vertical ridge for gable and hip roof did exist as is
shown the circle in Figure 7a. Due to the fact that the size of this blank area was small, it
was completely filled after the morphological close operation with a 7 × 7 operator in
our proposed ridge extraction method when the density of the point cloud was 59,737
points/m and 5974 points/m , separately. When the density of the point cloud was
lower than a specified value, the distance between the points located on the diagonal ridge
or the vertical ridge becomes large and the distance between two grids which contained
the projective points was beyond the size of the operator. This resulted in this blank area
being preserved after morphological close operation. Hence, the short line segment was
generated after the Skeletonization algorithm was performed. Similarly, the phenomenon
that the vertical ridge of the Gate of Lasting Happiness was broken when the point cloud
density was at minimum as in the fourth row and column of Table 8 was also caused for
this reason. Although the extracted ridges had some differences when the densities of the
point cloud were different, the generated SoRs was still a subgraph of the true ridge struc-
ture graph.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 19 of 24

Table 5. The experimental details and results.


Gate of Supreme Hall of Complete Gate of Lasting A 3D Model
BaoGuang Hall Meridian Gate LiJing Xuan
Harmony Harmony Happiness Example

Original point
cloud of test

4,000 60,000 35,000 8,000


30,000 20,000 1,000
3,500 7,000
30,000

The change of the 25,000 50,000


the projective areas in

800

the projective areas in pixels


3,000

the projective areas in pixels


6,000
the projective areas in
15,000

he projective areas in pixels


25,000

he projective areas in pixels


40,000

he projective areas in pixels


20,000 2,500 5,000 600
20,000

areas on the X
pixels

15,000 2,000 30,000 4,000


10,000
pixels

15,000 400
1,500 3,000
10,000 20,000

along the Z direc-


10,000 2,000 200
5,000 1,000
5,000 10,000
5,000 1,000
500 0
0 0 1 2 3 4 5 6 7 8 9 10 11 12 13
0 0

tions 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89

the evalation in sample interval


1 4 7 1013161922252831343740434649525558616467707376

the evalation in sample interval


0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70

the evalation in sample interval


1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106113120127

the evalation in sample interval


0
1 9 17 25 33 41 49 57 65 73 81 89 97 105 113

the evalation in sample interval


1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64

the evalation in sample interval


the evalation in sample interval

Extracted roof

NoREs null null null null

Extracted ridge
points

DfFtR null null null null

Main ridge null null

double-eave gable and hip double-eave gable and hip flush gable roof with overhanging flush gable
Roof type pyramidal roof double-eave hip roof flush gable roof
roof roof round ridge roof
ISPRS Int. J. Geo-Inf. 2021, 10, 650 20 of 24

Table 6. The BaoGuang Hall roof recognition process based on point cloud with different density.

Density The Histogram of the


Roof Ridges Main Ridges
( / ) Projective Areas
4,000

3,500

the projective areas in pixels


3,000

2,500

2,000

59,737 1,500

1,000

500

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70

the evalation in sample interval

4,000

3,500
the projective areas in pixels

3,000

2,500

2,000

5,974 1,500

1,000

500

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70

the evalation in sample interval

4,000

3,500
the projective areas in pixels

3,000

2,500

2,000

597 1,500

1,000

500

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70

the evalation in sample interval

Table 7. The Hall of Complete Harmony roof reorganization process based on point cloud with different density.

Density The Histogram of the


Roof Ridges Main Ridges
( / ) Projective Areas
20,000
the projective areas in

15,000

10,000
pixels

43,416 5,000
null
0
1 4 7 1013161922252831343740434649525558616467707376

the evalation in sample interval

20,000
the projective areas in

15,000

10,000
pixels

4,342 5,000
null
0
1 4 7 1013161922252831343740434649525558616467707376

the evalation in sample interval

20,000
the projective areas in

15,000

10,000
pixels

434 5,000
null
0
1 4 7 1013161922252831343740434649525558616467707376

the evalation in sample interval

Table 8. The Gate of Lasting Happiness roof reorganization process based on point cloud with different density.

Density The Histogram of the


Roof Ridges Main Ridges
( / ) Projective Areas
8,000

7,000

6,000
he projective areas in pixels

5,000

4,000

95 3,000

2,000

1,000

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64

the evalation in sample interval

8,000

7,000

6,000
he projective areas in pixels

5,000

4,000

9.5 3,000

2,000

1,000

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64

the evalation in sample interval


ISPRS Int. J. Geo-Inf. 2021, 10, 650 21 of 24

8,000

7,000

6,000

he projective areas in pixels


5,000

4,000

1 3,000

2,000

1,000

0
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64

the evalation in sample interval

For the main ridge detection, under different point cloud density conditions, the
main ridges of BaoGuang Hall were detected as is shown in the fourth column of Table 6.
The distribution of the point cloud density on the XOY plane as is shown in the fourth
column of Table 8 illustrated that Gate of Lasting Happiness did not have a main ridge.
The experimental results were consistent with the true roof types. Notably, when the dis-
tance between points was greater than the height or width of the main ridge, our proposed
method may not have detected the main ridge. This is mainly because the points located
on the surface of the main ridge did not exist. This is an extreme case. In this paper, we
suppose that the point cloud can represent the details of the Ming and Qing official-style
architecture. Based on the above analysis, our proposed method is robust to the test point
clouds with different densities.
Moreover, the gaps, noise and occlusion of point clouds also influenced the experi-
mental results. In order to ensure that the point cloud data can successfully complete the
3D modeling, the quality of the collected point clouds should meet a certain criterion in
practical engineering. Hence, we can ignore these factors in our experiments.

7. Conclusions and Future Work


This paper proposes a method for the classification of the Ming and Qing official-
style architectures from 3D point cloud combining the ridges and other features. The high-
lights of this work are listed as follows:
 The features including NoREs, DfFtR, DoPP and SoRs are selected for the classifica-
tion of the Ming and Qing official-style architecture roof and the corresponding fea-
ture extraction methods are proposed.
 The attributed relational graphs of the ridges from different roof types of the Ming
and Qing official-style architecture are constructed and the Ullmann algorithm is ap-
plied to complete the initial roof type reorganization task based on SoRs.
 A hierarchical semantic network is proposed to distinguish the type of the Ming and
Qing official-style architecture roof and the thresholds used in this semantic network
are estimated based on the construction rules of the Ming and Qing official-style ar-
chitecture. Based on the proposed method, all the selected Ming and Qing official
architecture roofs are classified into the correct categories. The experimental results
shows that our proposed method can achieve good performance and have robust-
ness.
Additionally, it is worth noting that the classification of the Ming and Qing official-
style architecture is not the terminal goal of our work. We hope to reconstruct a historical
building information model (HBIM) of the Ming and Qing official-style architecture auto-
matically especially in the geometric parameter acquisition of the model relying on the
roof type. In previous work [70,71], how to obtain the single building and how to recon-
struct the decorative component have been solved. The future work will include: (1) the
Ming and Qing official-style architectural component segmentation and extraction; (2) pa-
rameterization of components; (3) the HBIM reconstruction mechanism; and (4) using var-
ious strategies to ensure the point cloud can be processed in memory.

Author Contributions: Conceptualization, Youqiang Dong and Miaole Hou; methodology, Biao Xu;
software, Youqiang Dong; validation, Miaole Hou, Yuhang Ji and Yihao Li; formal analysis, Biao
Xu; investigation, Yuhang Ji; resources, Miaole Hou data curation, Yuhang Ji; writing—original
ISPRS Int. J. Geo-Inf. 2021, 10, 650 22 of 24

draft preparation, Yuhang Ji and Yihao Li; writing—review and editing, Youqiang Dong; supervi-
sion, Biao Xu and Yihao Li; project administration, Miaole Hou; funding acquisition, Youqiang
Dong. All authors have read and agreed to the published version of the manuscript.
Funding: This research was funded by National Key Research and Development Program of
China(2019YFC1520800); Scientific Research Project of Beijing Educational Committee
(KM202110016005); Beijing Postdoctoral Research Foundation (21009920004); Beijing Municipal Ed-
ucation Commission (KZ202110016021); Young Beijing Scholars Project (04147521504).
Institutional Review Board Statement: Not applicable.
Informed Consent Statement: Not applicable.
Conflicts of Interest: The authors declare no conflict of interest.

References
1. Zhang, D. Cultural Symbols in Chinese Architecture. Archit. Des. Rev. 2019, 1, 2–17, doi:10.24294/adr.v1i1.556.
2. Armani, S.; Arbi, E. A Comparative Study on Chinese Architecture in Peninsular Malaysia and Mainland China. J. Des. Built
Environ. 2014, 14, 1.
3. Hu, Q.; Wang, S.; Fu, C.; Ai, M.; Yu, D.; Wang, W. Fine Surveying and 3D Modeling Approach for Wooden Ancient Architecture
via Multiple Laser Scanner Integration. Remote Sens. 2016, 8, 270, doi.org/10.3390/rs8040270.
4. Gomes, L.; Bellon, O.R.P.; Silva, L. 3D reconstruction methods for digital preservation of cultural heritage: A survey. Pattern
Recognit. Lett. 2014, 50, 3, doi:10.1016/j.patrec.2014.03.023.
5. Hu, Z.; Qin, X. Extended interactive and procedural modeling method for ancient Chinese architecture. Multimed. Tools Appl.
2020, 80, 5773–5807, doi:10.1007/s11042-020-09744-2.
6. Liu, J.; Wu, Z.-K. Rule-Based Generation of Ancient Chinese Architecture from the Song Dynasty. J. Comput. Cult. Herit. 2015,
9, 1–22, doi:10.1145/2835495.
7. Yang, X.; Grussenmeyer, P.; Koehl, M.; Macher, H.; Murtiyoso, A.; Landes, T. Review of built heritage modelling: Integration
of HBIM and other information techniques. J. Cult. Herit. 2020, 46, 350–360, doi:10.1016/j.culher.2020.05.008.
8. Calin, M.; Damian, G.; Popescu, T.; Manea, R.; Erghelegiu, B.; Salagean, T. 3D modeling for digital preservation of Romanian
heritage monuments. Agric. Agric. Sci. Procedia 2015, 6, 421–428.
9. Poux, F.; Billen, R.; Kasprzyk, J.-P.; Lefebvre, P.-H.; Hallot, P. A Built Heritage Information System Based on Point Cloud Data:
HIS-PC. ISPRS Int. J. Geo-Inf. 2020, 9, 588, doi:10.3390/ijgi9100588.
10. Kada, M.; McKinley, L. 3D building reconstruction from LiDAR based on a cell decomposition approach. Int. Arch. Photogramm.
Remote Sens. Spat. Inf. Sci. 2009, 38, W4.
11. Maas, H.G.; Vosselman, G. Two algorithms for extracting building models from raw laser altimetry data. ISPRS J. Photogramm.
Remote Sens. 1999, 54, 153–163, doi:10.1016/S0924-2716(99)00004-0.
12. Henn, A.; Gröger, G.; Stroh, V.; Plümer, L. Model driven reconstruction of roofs from sparse LIDAR point cloud. ISPRS J. Pho-
togramm. Remote Sens. 2013, 76, 17–29, doi:10.1016/j.isprsjprs.2012.11.004.
13. Zheng, Y.; Weng, Q. Model-driven reconstruction of 3D buildings using LiDAR data. IEEE Geosci. Remote Sens. Lett. 2015, 12,
1541–1545, doi:10.1109/LGRS.2015.2412535.
14. Vallet, B.; Pierrot-Deseilligny, M.; Boldo, D.; Brédif, M. Building footprint database improvement for 3D reconstruction: A split
and merge approach and its evaluation. ISPRS J. Photogramm. Remote Sens. 2011, 66, 732–742, doi:10.1016/j.isprsjprs.2011.06.005.
15. Lafarge, F.; Descombes, X.; Zerubia, J.; Pierrot-Deseilligny, M. Automatic building extraction from DEMs using an object ap-
proach and application to the 3D-city modeling. ISPRS J. Photogramm. Remote Sens. 2008, 63, 365–381, doi:10.1016/j.is-
prsjprs.2007.09.003.
16. Li, J. (Song Dynasty). Yingzao Fashi. Dongjing, Song Dynasty of China. 1103.
17. Qing Department of Qing Dynasty. Qing Gong Bu Gongcheng Zuofa Zeli. Beijing, Qing Dynasty of China. 1733.
18. Shen, Y.; Zhang, E.; Feng, Y.; Liu, S.; Wang, J. Parameterizing the Curvilinear Roofs of Traditional Chinese Architecture. Nexus
Netw. J. 2020, 23, 475–492, doi:10.1007/s00004-020-00512-1.
19. Liu, J. Component-driven procedural modeling for ancient Chinese architecture of the Qing Dynasty. Int. J. Archit. Herit. 2017,
12, 280–307, doi:10.1080/15583058.2017.1410253.
20. Li, L.; Tang, L.; Zhu, H.; Zhang, H.; Yang, F.; Qin, W. Semantic 3D Modeling Based on CityGML for Ancient Chinese-Style
Architectural Roofs of Digital Heritage. ISPRS Int. J. Geo-Inf. 2017, 6, 132, doi:10.3390/ijgi6050132.
21. Rahmatabadi, S.; Toushmalani, R. Physical order and disorder in Chinese architecture style. Aust. J. Basic Appl. Sci. 2011, 5, 1561–1565.
22. Kushwaha, S.K.P.; Yogender, Y.; Sara, R. A semi-automatic approach for roof-top extraction and classification from airborne
lidar. In Proceedings of the Seventh International Conference on Remote Sensing and Geoinformation of the Environment
(RSCy2019), Paphos, Cyprus, 18–21 March 2019, doi:10.1117/12.2532044.
23. Mohajeri, N.; Assouline, D.; Guiboud, B.; Bill, A.; Gudmundsson, A.; Scartezzini, J.L. A city-scale roof shape classification using
machine learning for solar energy applications. Renew. Energy 2018, 121, 81–93.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 23 of 24

24. Zang, A.; Zhang, X.; Chen, X.; Agam, G. Learning-based roof style classification in 2D satellite images. Proc. SPIE 2015, 9473,
doi:10.1117/12.2180393.
25. Assouline, D.; Mohajeri, N.; Scartezzini, J.L. Building rooftop classification using random forests for large-scale PV deployment.
In Proceedings of the Earth Resources and Environmental Remote Sensing/GIS Applications VIII, Warsaw, Poland, 5 October
2017; Volume 10428, p. 1042806.
26. Aissou, B.E.; Aissa, A.B.; Dairi, A.; Harrou, F.; Wichmann, A.; Kada, M. Building Roof Superstructures Classification from Im-
balanced and Low Density Airborne LiDAR Point Cloud. IEEE Sens. J. 2021, 21, 14960–14976.
27. Zhang, X.; Zang, A.; Agam, G.; Chen, X. Learning from synthetic models for roof style classification in point cloud. In Proceed-
ings of the 22nd ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems—SIGSPATIAL,
Dallas, TX, USA, 4–7 November 2014; pp. 263–270, doi:10.1145/2666310.2666407.
28. Axelsson, M.; Soderman, U.; Berg, A.; Lithen, T. Roof Type Classification Using Deep Convolutional Neural Networks on Low
Resolution Photogrammetric Point Clouds from Aerial Imagery. In Proceedings of the 2018 IEEE International Conference on
Acoustics, Speech and Signal Processing (ICASSP), Calgary, AB, Canada, 15–20 April 2018; pp. 1293–1297,
doi:10.1109/ICASSP.2018.8461740.
29. Partovi, T.; Fraundorfer, F.; Azimi, S.; Marmanis, D.; Reinartz, P. Roof type selection based on patch-based classification using
deep learning for high resolution satellite imagery. ISPRS-Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2017, XLII-1/W1,
653–657.
30. Castagno, J.; Atkins, E. Roof Shape Classification from LiDAR and Satellite Image Data Fusion Using Supervised Learning.
Sensors 2018, 18, 3960, doi:10.3390/s18113960.
31. Bittner, K.; Körner, M.; Fraundorfer, F.; Reinartz, P. Multi-Task cGAN for Simultaneous Spaceborne DSM Refinement and Roof-
Type Classification. Remote Sens. 2019, 11, 1262.
32. Buyukdemircioglu, M.; Can, R.; Kocaman, S. Deep learning based roof type classification using very high resolution aerial
imagery. Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci. 2021, XLIII-B3, 55–60, doi:10.5194/isprs-archives-XLIII-B3-2021-55-
2021, 2021.
33. Grilli, E.; Özdemir, E.; Remondino, F. Application of machine and deep learning strategies for the classification of heritage point
clouds. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2019, XLII-4/W18, 447–454, doi:10.5194/isprs-archives-XLII-4-W18-447-
2019.
34. Tian, Y.; Song, W.; Sun, S.; Fong, S.; Zou, S. 3D object recognition method with multiple feature extraction from LiDAR point
clouds. J. Supercomput. 2019, 75, 4430–4442, doi:10.1007/s11227-019-02830-9.
35. Yu, Z. Intrinsic shape signatures: A shape descriptor for 3D object recognition. In Proceedings of the 2009 IEEE 12th Interna-
tional Conference on Computer Vision Workshops, ICCV Workshops, Kyoto, Japan, 27 September–4 October 2009.
36. Mian, A.; Bennamoun, M.; Owens, R. On the Repeatability and Quality of Key points for Local Feature-based 3D Object Re-
trieval from Cluttered Scenes. Int. J. Comput. Vis. 2010, 89, 348–361, doi:10.1007/s11263-009-0296-z.
37. Hui, C.; Bhanu, B. 3D free-form object recognition in range images using local surface patches. Pattern Recognit. Lett. 2007, 28,
1252–1262, doi:10.1016/j.patrec.2007.02.009.
38. Rusu, R.B.; Blodow, N.; Beetz, M. Fast Point Feature Histograms (FPFH) for 3D registration. In Proceedings of the 2009 IEEE
International Conference on Robotics and Automation, Kobe Japan, 12–17 May 2009; pp. 3212–3217, doi:10.1109/RO-
BOT.2009.5152473.
39. Guo, Y.; Sohel, F.; Bennamoun, M.; Lu, M.; Wan, J. Rotational projection statistics for 3D local surface description and object
recognition. Int. J. Comput. Vis. 2013, 105, 63, doi:10.1007/s11263-013-0627-y.
40. Tombari, F.; Salti, S.; Di Stefano, L. Unique Signatures of Histograms for Local Surface Description. In Proceedings of the 11th
European Conference on Computer Vision Conference on Computer Vision: Part III, Crete, Greece, 5–11 September 2010;
Springer: Berlin/Heidelberg, Germany, 2010; pp. 356–369, doi:10.1007/978-3-642-15558-1_26.
41. Mikolajczyk, K.; Schmid, C. A performance evaluation of local descriptors. IEEE Trans. Pattern Anal. Mach. Intell. 2005, 27, 1615–1630,
doi:10.1109/TPAMI.2005.188.
42. Rusu, R.B.; Holzbach, A.; Beetz, M.; Bradski, G. Detecting and segmenting objects for mobile manipulation. In Proceedings of
2009 IEEE 12th International Conference on Computer Vision Workshops, ICCV Workshops, Kyoto, Japan, 27 September–4
October 2009; IEEE: Kyoto, Japan, 2009.
43. Rusu, R.B.; Bradski, G.; Thibaux, R.; Hsu, J. Fast 3D recognition and pose using the Viewpoint Feature Histogram. In Proceed-
ings of the 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems, Taipei, Taiwan, 18–22 October 2010;
IEEE: Taipei, Taiwan, 2010.
44. Aldoma, A.; Vincze, M.; Blodow, N.; Gossow, D.; Gedikli, S.; Rusu, R.B.; Bradski, G. CAD-model recognition and 6D OF pose
estimation using 3D cues. In Proceedings of the IEEE International Conference on Computer Vision Workshops, ICCV 2011
Workshops, Barcelona, Spain, 6–3 November 2011; IEEE: Barcelona, Spain, 2011.
45. Wohlkinger, W.; Vincze, M. Ensemble of shape functions for 3D object classification. In Proceedings of the 2011 IEEE Interna-
tional Conference on Robotics and Biomimetics, Phuket, Thailand, 7–11 December 2012; IEEE: Phuket, Thailand, 2012.
46. Schnabel, R.; Wahl, R.; Wessel, R.; Klein, R. Shape Recognition in 3D Point-Clouds. In Proceedings of the 16th International
Conference in Central Europe on Computer Graphics, Visualization and Computer Vision’2008, Plzen-Bory, Czech Republic,
4–7 February 2008.
ISPRS Int. J. Geo-Inf. 2021, 10, 650 24 of 24

47. Cheng, Y.-M.; Ding, H.-X.; Wang, Y.-X.; Zhang, H.-H. Curved Object Recognition Based on Geometrical Features. J. Image Graph.
2000, 5, 573–579.
48. Hao, W.; Wang, Y. Structure-based object detection from scene point clouds. Neurocomputing 2016, 191, 148, doi:10.1016/j.neu-
com.2015.12.101.
49. Berner, A.; Li, J.; Holz, D.; Stuckler, J.; Behnke, S.; Klein, R. Combining contour and shape primitives for object detection and
pose estimation of prefabricated parts. In Proceedings of the 2013 IEEE International Conference on Image Processing, Mel-
bourne, Australia, 15–18 September 2013; p. 3326, doi:10.1109/icip.2013.6738685.
50. Dehbi, Y.; Henn, A.; Gröger, G.; Stroh, V.; Plümer, L. Robust and fast reconstruction of complex roofs with active sampling from
3D point clouds. Trans. GIS 2020, 12659, doi:10.1111/tgis.12659.
51. Zeybek, M. Classification of UAV point clouds by random forest machine learning algorithm. Turk. J. Eng. 2021, 5, 51–61,
doi:10.31127/tuje.669566.
52. Wang, Z.; Zhang, L.; Fang, T.; Mathiopoulos, P.T.; Tong, X.; Qu, H.; Xiao, Z.; Li, F.; Chen, D. A Multiscale and Hierarchical
Feature Extraction Method for Terrestrial Laser Scanning Point Cloud Classification. IEEE Trans. Geosci. Remote Sens. 2015, 53,
2409–2425, doi:10.1109/TGRS.2014.2359951.
53. Guo, B.; Huang, X.; Zhang, F.; Sohn, G. Classification of airborne laser scanning data using JointBoost. ISPRS J. Photogramm.
Remote Sens. 2015, 100, 71–83, doi:10.1016/j.isprsjprs.2014.04.015.
54. Yi, Z.; Wang, H.; Duan, G.; Wang, Z. An Airborne LiDAR Building-Extraction Method Based on the Naive Bayes-RANSAC
Method for Proportional Segmentation of Quantitative Features. J. Indian Soc. Remote Sens. 2020, 1–12, doi:10.1007/s12524-020-
01222-4.
55. Eckart, B.; Kelly, A. REM-Seg: A robust EM algorithm for parallel segmentation and registration of point clouds. In Proceedings
of the 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS 2013), Tokyo, Japan, 3–7 November
2013; pp. 4355–4362, doi:10.1109/IROS.2013.6696981.
56. Qi, C.R.; Su, H.; Mo, K.; Guibas, L.J. Pointnet: Deep learning on point sets for 3D classification and segmentation. In Proceedings
of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 652–660.
57. Qi, C.R.; Yi, L.; Su, H.; Guibas, L.J. Pointnet++: Deep hierarchical feature learning on point sets in a metric space. arXiv 2017,
arXiv:1706.02413.
58. Li, Y.; Bu, R.; Sun, M.; Wu, W.; Di, X.; Chen, B. Pointcnn: Convolution on x-transformed points. arXiv 2018, arXiv:1801.07791.
59. Su, H.; Jampani, V.; Sun, D.; Maji, S.; Kalogerakis, E.; Yang, M.H.; Kautz, J. Splatnet: Sparse lattice networks for point cloud
processing. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–
23 June 2018; pp. 2530–2539.
60. Wang, Y.; Sun, Y.; Liu, Z.; Sarma, S.E.; Bronstein, M.M.; Solomon, J.M. Dynamic graph cnn for learning on point clouds. ACM
Trans. Graph. 2019, 38, 146.
61. Wu, Z.; Song, S.; Khosla, A.; Yu, F.; Zhang, L.; Tang, X.; Xiao, J. 3D shapenets: A deep representation for volumetric shapes. In
Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 1912–1920.
62. Geiger, A.; Lenz, P.; Stiller, C.; Urtasun, R. Vision meets Robotics: The KITTI Dataset. Int. J. Robot. Res. IJRR 2013, 32, 1231–1237.
63. De Deuge, M.; Quadros, A.; Hung, C.; Douillard, B. Unsupervised feature learning for classification of outdoor 3D scans. In
Proceedings of the Australasian Conference on Robitics and Automation, Sydney, Australia, 2–4 December 2013; Volume 2, p. 1.
64. Hackel, T.; Savinov, N.; Ladicky, L.; Wegner, J.D.; Schindler, K.; Pollefeys, M. SEMANTIC3D.NET: A new large-scale point
cloud classification benchmark. ISPRS Ann. Photogram. Remote Sens. Spat. Inf. Sci. 2017, IV-1-W1, 91–98.
65. Armeni, I.; Sener, O.; Zamir, A.R.; Jiang, H.; Brilakis, I.; Fischer, M.; Savarese, S. 3D semantic parsing of large-scale indoor spaces.
In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp.
1534–1543.
66. Pierdicca, R.; Paolanti, M.; Matrone, F.; Martini, M.; Morbidoni, C.; Malinverni, E.S.; Frontoni, E.; Lingua, A.M. Point Cloud
Semantic Segmentation Using a Deep Learning Framework for Cultural Heritage. Remote Sens. 2020, 12, 1005.
67. Iwanowski, M.; Soille, P. Fast Algorithm for Order Independent Binary Homotopic Thinning. In Proceedings of the Interna-
tional Conference on Adaptive and Natural Computing Algorithms, Warsaw, Poland, 11–14 April 2007; Springer: Berlin, Ger-
many, 2007; pp. 606–615.
68. Lu, X.; Yao, J.; Li, K.; Li, L. CannyLines: A parameter-free line segment detector. In Proceedings of the 2015 IEEE International
Conference on Image Processing (ICIP), Quebec City, QC, Canada, 27–30 September 2015; pp. 507–511.
69. Čibej, U.; Mihelič, J. Improvements to Ullmann’s Algorithm for the Subgraph Isomorphism Problem. Int. J. Pattern Recognit.
Artif. Intell. 2015, 29, 1550025, doi:10.1142/S0218001415500251.
70. Dong, Y.; Zhang, L.; Cui, X.; Ai, H.; Xu, B. Extraction of Buildings from Multiple-View Aerial Images Using a Feature-Level-
Fusion Strategy. Remote Sens. 2018, 10, 1947, doi:10.3390/rs10121947.
71. Huo, P.; Hou, M.; Dong, Y.; Li, A.; Ji, Y.; Li, S. A Method for 3D Reconstruction of the Ming and Qing Official-Style Roof Using
a Decorative Components Template Library. ISPRS Int. J. Geo-Inf. 2020, 9, 570, doi:10.3390/ijgi9100570.

You might also like