Automatic generation method of Cantonese ancestral hall architectural plan based on hyperspectral remote sensing images

The building plan of Cantonese ancestral halls is automatically drawn using hyperspectral remote sensing images and Harris corner point detection method, which solves the problems of low surveying efficiency and high cost in the existing technology, and achieves more accurate and efficient floor plan generation, which is suitable for the construction of Cantonese ancestral halls. research and conservation.

CN117540454BActive Publication Date: 2024-10-11SOUTH CHINA UNIV OF TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311325245.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2024-10-11
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

In the existing technology, the plane surveying and mapping of Guangfu ancestral halls relies on manual on-site survey, which is inefficient, high-cost, and difficult to accurately identify the building plane shape.

Method used

Hyperspectral remote sensing images are used to extract the building outline through band characteristics, and the Harris corner point detection method is used to calculate plane data, generate CAD drawings, and automatically draw the building plane of the Cantonese ancestral hall.

Benefits of technology

It greatly reduces the workload of surveying and mapping personnel, improves the accuracy and comprehensiveness of floor plan drawing, saves time and costs, and is suitable for the research and protection of Guangfu ancestral halls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117540454B_ABST
    Figure CN117540454B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automatically generating the architectural plane of a Cantonese ancestral hall based on a hyperspectral remote sensing image, and the steps are as follows: obtaining a hyperspectral remote sensing image of a target building, a Cantonese ancestral hall; extracting the architectural plane outline through the band characteristics of the roof of the Cantonese ancestral hall in the hyperspectral remote sensing image; using the Harris corner point detection method to identify its plane shape; calculating the depth and width of each component of the target building; automatically generating the column grid in the depth and width direction of the target building based on the architectural CAD; and automatically drawing the architectural plane of the ancestral hall based on the plane data. This method can be directly applied to the research work of the Cantonese ancestral hall, greatly reducing the workload of ground survey and mapping personnel, and saving a lot of time, financial resources and material costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traditional building plane generation based on hyperspectral remote sensing images, and in particular to a method for automatically generating a Cantonese ancestral hall building plane based on hyperspectral remote sensing images. Background Art

[0002] At present, the surveying and mapping work on the plane of Cantonese ancestral halls mainly adopts the method of on-site investigation, and the surveying and mapping drawings are mainly drawn manually by professionals. The whole process requires huge manpower, financial resources, time and energy, and the efficiency is limited, and errors are inevitable.

[0003] In recent years, with the rapid development of technologies such as oblique photography and image recognition, people's ability to collect and analyze spatial data has been greatly improved. Hyperspectral remote sensing images can obtain spectral information of dozens to hundreds of continuous bands of surface objects, and can effectively use the fine spectral characteristics of objects to identify, locate and extract objects. They are currently used for environmental monitoring, urban planning, etc. According to the characteristics and laws of the plane structure of Cantonese ancestral halls, applying new technologies to their research and protection is a new field to be expected, so further research is needed. Summary of the invention

[0004] The purpose of the present invention is to solve the defects in the existing research technology and provide a method for automatically generating the architectural plane of the Guangfu ancestral hall based on hyperspectral remote sensing images. The method extracts the architectural plane outline through the band characteristics of the roof of the Guangfu ancestral hall in the hyperspectral remote sensing image, identifies the plane shape and calculates the depth, width and column grid data of each component of the building, and automatically draws the architectural plane of the Guangfu ancestral hall based on the architectural CAD. The method can be directly applied to the research and protection of the Guangfu ancestral hall, greatly reducing the workload of ground survey and mapping personnel, and saving a lot of time, financial resources and material costs.

[0005] The purpose of the present invention can be achieved by adopting the following technical solutions:

[0006] A method for automatically generating the architectural plane of Guangfu ancestral halls based on hyperspectral remote sensing images. Figure 1 As shown, the generation method comprises the following steps:

[0007] S1. Image source selection: using hyperspectral remote sensing images as basic image elements, obtain remote sensing images of the area to be identified;

[0008] S2. Target building extraction: By identifying and classifying the band features of the roof material of the Guangfu Ancestral Hall in the remote sensing image, the target building image of the Guangfu Ancestral Hall is extracted, converted into a binary image spot and the building outline is obtained;

[0009] S3, corner point acquisition: Harris corner point detection method is used to process the extracted building outline of the target building, obtain the number of corner points, and determine the number of corner points based on the number;

[0010] S4, calculating the plane data of the target building: extracting the projection coordinate values ​​of the corner points of the target building, calculating the plane data of the target building, and determining the number of bays of the target building based on the overall width data;

[0011] S5. Generate the target building column grid: according to the target building plane data, automatically generate the target building column grid in terms of depth and width in the building CAD drawing window;

[0012] S6. Draw the basic outline of the target building plan: automatically draw the outline of the target building plan based on the column grid, draw the wall and divide the space of each building component to obtain the plan;

[0013] S7. Draw the plan components of the target building: Based on the above plan, draw the columns in the building plan, the double doors of the front hall, the platform and the stairs of the patio, and finally generate and export the complete plan of the target building.

[0014] Furthermore, due to the problems of huge data volume, high information redundancy, low computational efficiency, etc., the hyperspectral remote sensing image in step S1 needs to be preprocessed with lens correction, reflectivity correction and atmospheric correction to ensure the accuracy of the target building plane data in the image.

[0015] Furthermore, in step S2, the target building of the Cantonese ancestral hall is extracted by performing band analysis on the hyperspectral remote sensing image containing the ancestral hall using ENVI5.6 software, and extracting the ancestral hall plaque according to the band characteristics of the roof material. Among them, the roofs of the Cantonese ancestral halls are mostly green tiles and red tile ridges, and their band characteristics are as follows: Figure 2 As shown; after recognition, the image is converted into a binary image.

[0016] Furthermore, the Harris corner detection method in step S3 is a method used to obtain image features in a computer vision system. It applies the concept of grayscale difference between adjacent pixels and uses a moving window to calculate the grayscale change value in the image to determine whether it is a corner point, edge, or smooth area. The specific judgment methods include three types: (1) When the change values ​​are relatively large, the window contains a corner point; (2) When one change value is large and the other is small, the window contains an edge; (3) When the change values ​​are relatively small, the window is in a smooth area. The key process of detection includes conversion to a grayscale image, calculation of a differential image, Gaussian smoothing, calculation of local extreme values, confirmation of corner points, and finally obtaining the number of corner points in the image.

[0017] Furthermore, the association types between the number of corner points and the number of target building steps in step S3 include two types: Figure 3 As shown in the figure, type 1, when the number of corner points of the target building outline is 8, the number of entrances is two, and it consists of three building components: the front door, the patio, and the bedroom, marked as the subscript i ; Type 2, when the number of corner points of the target building outline is 12, the number of entrances is three, and it consists of five building components: the front door, the front courtyard, the central hall, the back courtyard and the bedroom, marked as the subscript j .

[0018] Furthermore, the plane data of the target building in step S4 includes the overall depth and width of the target building and the depth and width of each component of the building. The building components of the two-entry and three-entry target buildings are different, and the plane data need to be calculated in different ways, and the calculation results are uniformly stored in the data storage set. The calculation methods include the following two:

[0019] (1) When the target building has two entrances, such as Figure 4 As shown in the figure, the projection coordinates (x) of the upper left corner point, lower left corner point, lower right corner point, upper left corner point, lower left corner point, and lower right corner point of the target building's outer contour are extracted respectively. i1 ,y i1 )、(x i2 ,y i2 )、(x i3 ,y i3 )、(x i4 ,y i4 )、(x i5 ,y i5 ) and (x i6 ,y i6 ), calculate the overall width w of the target building i1 、Overall depth h i1 、Wide patio i2 And the depth of the patio i2 as follows:

[0020]

[0021] The overall depth of the Cantonese ancestral hall is greater than the overall width, and the depth of the patio is less than the width. i1 , l i2 The smaller one is the overall depth of the target building h i1 , the larger one is the overall width of the target building w i1 ; will l i3 , l i4 The smaller one is the target building patio depth h i2 , the larger one is the target building patio width w i2 . Calculate the width of the target building patio and side corridor w i3 、Head door depth hi3 And the depth of the bedroom i4 The method is:

[0022]

[0023] The depth of the front door of the second-entry Cantonese ancestral hall is smaller than the depth of the bedroom hall; in the formula, l i5 , l i6 The smaller one is the target building bedroom depth h i4 , the larger one is the target building's front door depth h i3 .

[0024] (2) When the target building has three steps, such as Figure 5 As shown, the projection coordinates (x) of the upper left corner point of the outer contour, the lower left corner point of the outer contour, the lower right corner point of the outer contour, the upper left corner point of the inner upper contour, the lower left corner point of the inner upper contour, the lower right corner point of the inner upper contour, the upper left corner point of the inner lower contour, the lower left corner point of the inner upper contour, and the lower right corner point of the inner upper contour are extracted respectively. j1 ,y j1 )、(x j2 ,y j2 )、(x j3 ,y j3 )、(x j4 ,y j4 )、(x j5 ,y j5 )、(x j6 ,y j6 )、(x j7 ,y j7 )、(x j8 ,y j8 )、(x j9 ,y j9 ), calculate the overall width w of the target building j1 、Overall depth h j1 、The front patio is wide j2 、Deep front patio j2 、The rear patio is wide j3 And the back patio depth j3 as follows:

[0025]

[0026] The overall depth data of the Cantonese ancestral hall is greater than the overall width data, the depth data of the patio is less than the width data, and the width and depth data of the front patio are greater than those of the back patio; where l j1 , l j2 The larger one is the overall depth h of the target building. j1 , the smaller one is the overall width of the target building w j1 ; will lj3 , l j4 For comparison, j5 , l j6 For comparison, if l j3 , l j5 If it is smaller, it is the depth of the target building patio, l j4 , l j6 The target building has a wide patio, otherwise l j4 , l j6 The depth of the target building patio, l j3 , l j5 The target building has a wide patio; further j3 , l j5 For comparison, j4 , l j6 For comparison, if l j3 , l j4 is smaller, then the depth of the rear patio of the target building is h j3 and wide j3 , l j5 , l j6 The depth of the front patio of the target building is h j2 and wide j2 , on the contrary j5 , l j6 The depth of the rear patio of the target building is h j3 and wide j3 , l j3 , l j4 The depth of the front patio of the target building is h j2 and wide j2 .

[0027] Calculate the width of the corridors on both sides of the front patio of the target building w j4 、The width of the corridors on both sides of the back patio is w j5 、Head door depth h j4 、The depth of the central hall j5 And the depth of the bedroom j63 The method is:

[0028]

[0029] The depth of the front door of the three-entry Cantonese ancestral hall is smaller than the depth of the bedroom hall; in the formula, l j7 , l j8 For comparison, the larger one is the target building's dormitory depth h j6 , the smaller one is the target building front door depth h j4 .

[0030] Furthermore, the number of bays in step S4 includes two types: three bays and five bays. The determination method is the width data of the target building, which are marked as subscriptsa and subscript b ; Based on the total width data, there are three types of target building bays: Figure 6 As shown: Type 1, when the target building is a two-entry building with three bays, it is marked as ia ; Type 2: When the target building is a three-story building, the overall width of the building is w j1 When ≤16000mm, the target building is three bays, marked as subscript ja ; Type 3, when the target building is a three-entry building, the overall width of the building is w j1 >16000mm, the target building is five bays, marked as subscript jb .

[0031] Furthermore, in step S5, the target building column grid is drawn. The three common plane forms of Cantonese ancestral halls, namely, two-entry and three-bay, three-entry and three-bay, and three-entry and five-bay, which are composed of two numbers of entrances and two numbers of bays, have different proportion characteristics in the column grid in the width direction and the column grid in the depth direction, so it is necessary to set the corresponding column grid generation method. The specific generation method is as follows:

[0032] (1) When the target building has two entrances and three bays, Figure 7 As shown, the outer gable line s is formed according to the spacing ia1 / s ia11 、Inner gable line ia2 / s ia10 、Side corridor line ia3 / s ia9 , side column axis s ia4 / s ia8 、Shutai Lines ia5 / s ia7 、Central axis ia6 There are 11 axes in the depth direction, among which the left outer gable line s ia1 Located on the y-axis of the drawing window. The spacing between the axes from left to right is respectively ia1 / l ia9 、Side corridor width l ia2 / l ia8 , Distance between side columns and side corridors l ia3 / l ia7 、The distance between the platform and the left column l ia4 / l ia6 、The heart is clean and wide ia5 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The width of the central room: the width of the secondary room = 1.6:1. The Cantonese ancestral hall has a construction tradition of using the number of tile pits as the building width modulus. By comparing a large amount of data, the width ratio of the central room to the secondary room can be obtained. The calculation method for the spacing of each axis in the depth direction is:

[0033]

[0034] The lower contour line z of the head door is formed in sequence according to the spacing ia1 、External eaves column line in front of the main door ia2 、Head door wall line ia3 / z ia4 、The back eaves column line of the front door ia5 , Lower ceiling line ia6 、Side gallery columns ia7 / z ia8 、Shangtianjing Line ia9 , bedroom eaves column line ia10 , bedroom gold column line ia11 / z ia12 、Exterior wall line ia13 / z ia14 There are 14 axes in the width direction, among which the lower contour line of the front door is z ia1 Located on the x-axis of the drawing window, the distances between the axes are l ia10 / l ia14 、Front eaves column of the main door-wall depth l ia11 、Inner wall thickness l ia12 、The rear eaves column of the front door-the depth of the wall l ia13 、Side corridor width l ia15 / l ia17 、Side corridor center width l ia16 , Bedroom eaves column retreat distance l ia18 , the bedroom is deep ia19 / l ia21 , the bedroom spans deep l ia20 、Exterior wall thickness l ia22 , each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the front door - the depth of the wall: the rear eaves column of the front door - the depth of the wall: the distance between the eaves columns of the front door = 3:5:0.5, the walls of the center and secondary rooms of the front door of a three-bay building are generally located on the purlins in front of the ridge, and the standard value of the column purlin can be located at 8 steps, distributed according to 3-5; ④ The width of the center of the side corridor: the width of the secondary room of the side corridor = 1.5:1; ⑤ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the distance between the eaves columns of the bedroom = 6:3:1, the standard value of the column purlin of the bedroom of a two-entry building can be located at 4 columns and 12 steps, distributed according to 3-6-3. The calculation method for the spacing of each axis in the width direction is:

[0035]

[0036] (2) When the target building has three entrances and three bays, Figure 8 As shown, the outer gable line s is formed in sequence according to the spacing ja1 / s ja13 , left inner gable line s ja2 / sja12 、Front side corridor line ja3 / s ja11 、Back side corridor line ja4 / s ja10 , column axis s ja5 / s ja9 、Shutai Lines ja6 / s ja8 、Central axis ja7 There are 13 axes in the depth direction, among which the left outer gable line s ja1 Located on the y-axis of the drawing window. The spacing between the axes from left to right is respectively ja1 / l ja11 、Width of the patio side corridor l ja2 / l ja10 、Side corridor width spacing l ja3 / l ja9 , Distance between side columns and rear corridor l ja4 / l ja8 , Distance between platform and side column l ja5 / l ja7 、The heart is clean and wide ja6 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The width of the central room: the width of the secondary room = 1.6:1. The Cantonese ancestral hall has a construction tradition of using the number of tile pits as the building width modulus. By comparing a large amount of data, the width ratio of the central room to the secondary room can be obtained. The calculation method of each axis spacing is:

[0037] The lower contour line z of the head door is formed in sequence according to the spacing ja1 、External eaves column line in front of the main door ja2 、Head door wall line ja3 / z ja4 、The back eaves column line of the front door ja5 , down the front patio line z ja6 、Side gallery columns ja7 / z ja8 , go up to the front patio line z ja9 、Central hall eaves column line ja10 / z ja13 、Golden pillar line in the middle hall ja11 / z ja12 、The column line of the rear eaves of the central hall ja13 , down the back patio line z ja14 、Rear side columns ja15 / z ja16 , upper back patio line z ja17 , bedroom eaves column line ja18 , bedroom gold column line ja19 / z ja20 、Exterior wall line ja21 / z ja22There are 22 axes in the width direction, among which the lower contour line of the front door is z ja1 Located on the x-axis of the drawing window, the distances between the axes are l ja12 / l ja16 、Front eaves column of the main door-wall depth l ja13 、Wall thickness l ja14 、The rear eaves column of the front door-the depth of the wall l ja15 、The width of the second room of the front corridor is l ja17 / l ja19 、The width of the front corridor is l ja18 、The distance between the eaves columns of the central hall and the retreat is l ja20 / l ja24 , the central hall spans deep into the front and back ja21 / l ja23 , the middle span of the hall is deep ja22 、The width of the second room of the rear corridor is l ja25 / l ja27 、The width of the back corridor is l ja26 , Bedroom eaves column retreat distance l ja28 , the bedroom is deep ja29 / l ja31 , the bedroom spans deep l ja30 、Exterior wall thickness l ja32 , each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the front door - the depth of the wall: the back eaves column of the front door - the depth of the wall: the eaves column of the front door setback = 3:5:0.5, the walls of the center room and the secondary room of the front door of a three-bay building are generally located on the purlin in front of the ridge, and the standard value of the purlin can be positioned at 8 steps, distributed according to 3-5; ④ The width of the center room of the side corridor: the width of the secondary room of the side corridor = 1.5:1; ⑤ The depth of the middle span of the central hall: the depth of the front and rear spans of the central hall: the eaves column setback of the central hall = 6:3:1, the standard value of the column purlin of the central hall of a three-bay building can be positioned at 4 columns and 12 steps, distributed according to 3-6-3; ⑥ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the eaves column setback of the bedroom = 6:3:1, and the distribution method is the same as that of the central hall. The calculation method of the spacing of each axis in the width direction is:

[0038] (3) When the target building has three entrances and five bays, Fig. 9 As shown, the outer gable line s is formed in sequence according to the spacing jb1 / s jb17 、Inner gable line jb2 / s jb16 、Outer corridor line jb3 / s jb15 、Inner corridor line jb4 / s jb14 、External wall line of the top room jb5 / s jb13 , outer column axis s jb6 / sjb12 、The inner wall line of the top room jb7 / s jb11 , inner column axis s jb8 / s jb10 、Central axis jb9 There are 17 axes in the depth direction, among which the left outer gable line s jb1 Located on the y-axis of the drawing window. The spacing between the axes is respectively the thickness of the gable l jb1 / l jb15 、The width of the front patio and side corridor is l jb2 / l jb14 、The width of the front and rear corridors is l jb3 / l jb13 , Distance between the rear corridor and the end wall l jb4 / l jb12 , the distance between the top wall and the left inner column l jb5 / l jb11 , the distance between the left inner column and the end wall l jb6 / l jb10 、Second room net width l jb7 / l jb9 、The heart is wide jb8 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The width of the central room: the width of the secondary room: the width of the spur room = 1.6:1.35:1. The Cantonese ancestral hall has a construction tradition of using the number of tile pits as the building width modulus. By comparing a large amount of data, the width ratio of the central room to the secondary room can be obtained. The calculation method of each axis spacing is:

[0039]

[0040] From bottom to top, form the lower contour line of the head door z in sequence according to the spacing jb1 、External eaves column line in front of the main door jb2 、Wall line between the front door and the back door jb3 / z jb4 、The wall line of the main door, the center and the secondary room jb5 / z jb6 、The back eaves column line of the front door jb7 , down the front patio line z jb8 、Front side columns jb9 / z jb10 , go up to the front patio line z jb11 、Central hall eaves column line jb12 / z jb15 、Golden pillar line in the middle hall jb13 / z jb14 , down the back patio line z jb16 、Rear side columns jb17 / z jb18 , upper back patio line z jb19 , bedroom eaves column line jb20, bedroom gold column line jb21 / z jb22 、Exterior wall line jb23 / z jb24 There are 24 axes in the width direction, among which the lower contour line of the front door is z jb1 Located on the x-axis of the drawing window, each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the head door - the depth of the exterior wall of the end room: the depth of the exterior wall of the end room of the head door - the depth of the secondary room: the rear eaves column of the head door - the depth of the wall: the setback distance of the eaves column of the head door = 3:1:4:0.5, the standard value of the column purlin of the head door of a five-bay building can be positioned at 8 steps, the front and back of the wall are distributed according to 4-4, the center and the secondary room are distributed according to 4-4, and the distance between the center and the secondary room is 4-4. The walls of the rooms are generally located on the purlins in front of the main ridge, and the ends are moved outward by one step; ④ The width of the center of the side corridor: the width of the secondary room of the side corridor = 1.5:1; ⑤ The depth of the middle span of the central hall: the depth of the front and rear spans of the central hall: the distance between the eaves columns of the central hall = 6:3:1. The standard value of the column purlin of the central hall of a three-entry building can be positioned as 4 columns and 12 steps, and the distribution is 3-6-3; ⑥ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the distance between the eaves columns of the bedroom = 6:3:1, and the distribution method is the same as that of the central hall. The calculation method of the distance between each axis in the width direction is:

[0041]

[0042] Furthermore, in step S6, the basic outline of the target building plan is drawn after the column grid is generated, and the building outline and walls are drawn to divide the various building components. Since the column grids generated by the three common plane forms of Cantonese ancestral halls are different, corresponding drawing methods need to be set, including the following three cases:

[0043] (1) The target building has two entrances and three bays, such as Fig.10 As shown, the drawing process is as follows:

[0044] ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w ia1 , height is h ia1 The overall outline of the building; ia3 ,h ia3 ) is the lower left corner of the target building patio, and the drawing width is w ia2 , height is h ia2 The patio outline;

[0045] ②Draw the wall: (400, 0.39h ia3 +260) is the lower left corner point, and the drawing width is w ia1 -800, height is h ia1 -0.39h ia3 -660 rectangle; with (400, 0) as the lower left corner, draw a rectangle with a width of w ia1 -800, high 0.39h ia3Rectangle, generate the plane wall;

[0046] ③ Divide the target building into its components: (400, h ia3 ) as the starting point to draw a line to (w ia1 -400,h ia3 ), divide the head door space; with (400, h ia2 +h ia3 ) as the starting point to draw a line to (w ia1 -400,h ia2 +h ia3 ), dividing the bedroom and the patio space; (w ia3 ,h ia3 )、(w ia3 +w ia2 ,h ia3 ) as the starting point to draw a line to (w ia3 ,h ia3 +h ia2 )、(w ia3 +w ia2 ,h ia3 +h ia2 ), dividing the side corridor space.

[0047] (2) When the target building has three entrances and three bays, Fig.11 As shown, the drawing process is as follows:

[0048] ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w ja1 , height is h ja1 The overall outline of the building; ja4 ,h ja4 ) is the lower left corner of the front patio of the target building, and the drawing width is w ja2 , height is h ja2 The front patio outline; with (w ja5 ,h ja4 +h ja2 +h ja5 ) is the lower left corner of the back patio of the target building, and the drawing width is w ja3 , height is h ja3 The rear patio outline;

[0049] ②Draw the wall: (400, 0.39h ja4 +260) is the lower left corner point, and the drawing width is w ja1 -800, height is h ia1 -0.39h ja4 -660 rectangle; with (400, 0) as the lower left corner, draw a rectangle with a width of w ja1 -800, high 0.39h ja3Rectangle, generate the plane wall;

[0050] ③ Divide the target building into its components: (400, h ja4 ) as the starting point to draw a line to (w ja1 -400,h ja4 ), divide the head door space; with (400, h ja2 +h ja4 ) as the starting point to draw a line to (w ja1 -400,h ja2 +h ja4 ), dividing the front patio space; (w ja4 ,h ja4 )、(w ja4 +w ja2 ,h ja4 ) as the starting point to draw a line to (w ja4 ,h ja4 +h ja2 )、(w ja4 +w ja2 ,h ja4 +h ja2 ), dividing the front patio and side corridor space; (400, h ja2 +h ja4 +h ja5 ) as the starting point to draw a line to (w ja1 -400,h ja2 +h ja4 +h ja5 ), divide the central hall space; with (400, h ja1 -h ja6 ) as the starting point to draw a line to (w ja1 -400,h ja1 -h ja6 ), dividing the back patio and bedroom space; (w ja5 ,h ja4 +h ja2 +h ja5 )、(w ja5 +w ja3 ,h ja4 +h ja2 +h ja5 ) as the starting point to draw a line to (w ja5 ,h ja1 -h ja6 )、(w ja5 +w ja3 ,h ja1 -h ja6 ), dividing the side corridor space of the rear patio.

[0051] (3) When the target building has three entrances and five bays, Fig.12As shown, the drawing process is as follows:

[0052] ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w jb1 , height is h jb1 The overall outline of the building; jb4 ,h jb4 ) is the lower left corner of the front patio of the target building, and the drawing width is w jb2 , height is h jb2 The front patio outline; with (w jb5 ,h jb4 +h jb2 +h jb5 ) is the lower left corner of the back patio of the target building, and the drawing width is w jb3 , height is h jb3 The rear patio outline;

[0053] ② Draw the wall: Starting from (400, 0), draw a straight line connecting (400, 0.39h jb4 -130), (0.16w jb1 +472, 0.39h jb4 -130), (0.16w jb1 +472, 0.5h jb4 -130), (0.84w jb1 -472, 0.5h jb4 -130), (0.84w jb1 -472, 0.39h jb4 -130)、(w jb1 -400, 0.39h jb4 -130)、(w jb1 -400, 0); (400, 0.39h jb4 +130 as the starting point, draw a straight line connecting (0.16w jb1 +72, 0.39h jb4 +130)、(0.16w jb1 +72, 0.5h jb4 +130)、(0.84w jb1 -72, 0.5h jb4 +130)、(0.84w jb1 -72, 0.39h jb4 +130)、(w jb1 -400, 0.39h jb4 +130)、(w jb1 -400,h jb4 -400), (400, h jb4 -400), and finally connected back to (400, 0.39hjb4 +130), generate the plan wall;

[0054] ③ Divide the target building into its components: (400, h jb4 ) as the starting point to draw a line to (w jb1 -400,h jb4 ), divide the head door space; with (400, h jb2 +h jb4 ) as the starting point to draw a line to (w jb1 -400,h jb2 +h jb4 ), dividing the front patio space; (w jb4 ,h jb4 )、(w jb4 +w jb2 ,h jb4 ) as the starting point to draw a line to (w jb4 ,h jb4 +h jb2 )、(w jb4 +w jb2 ,h jb4 +h jb2 ), dividing the front patio and side corridor space; (400, h jb2 +h jb4 +h jb5 )Draw a line to (w jb1 -400,h jb2 +h jb4 +h jb5 ), divide the central hall space; with (400, h jb1 -h jb6 ) as the starting point to draw a line to (w jb1 -400,h jb1 -h jb6 ), dividing the back patio and bedroom space; (w jb5 ,h jb4 +h jb2 +h jb5 )、(w jb5 +w jb3 ,h jb4 +h jb2 +h jb5 ) as the starting point to draw a line to (w jb5 ,h jb1 -h jb6 )、(w jb5 +w jb3 ,h jb1 -h jb6 ), dividing the side corridor space of the rear patio.

[0055] Furthermore, the columns in the plane in step S7 have different sizes and shapes according to the number of building bays, the building components and the location, which are specifically manifested as follows: ① The diameter of the columns in five bays is larger than the diameter of the columns in three bays; ② The diameter of the golden columns in the central hall and the bedroom is larger than the diameter of the eaves columns, which are usually round; ③ The main gate of the ancestral hall is set in the middle of the front door, and there are only eaves columns, which are usually square; ④ The side corridor usually has two columns, which are usually square. There are 8 types when drawing, which are:

[0056] Type 1: Number of building bays: three bays, building component: front hall, location: eaves column, column side length: 250mm, column shape: square;

[0057] Type 2: Number of building bays: three bays, building components: central hall / back hall, location: eaves column, column diameter: 280mm, column shape: round;

[0058] Type 3: Number of building bays: three bays, building components: central hall / back hall, location: golden column, column diameter: 350mm, column shape: round;

[0059] Type 4: Number of building bays: three bays, building component: side corridor, location: side corridor, column side length: 250mm, column shape: square;

[0060] Type 5: Number of building bays: 5 bays, building component: front hall, location: eaves column, column side length: 320mm, column shape: square;

[0061] Type 6: Number of building bays: 5 bays, building components: central hall / back hall, location: eaves column, column diameter: 320mm, column shape: round;

[0062] Type 7: Number of building bays: 5 bays, building components: central hall / back hall, location: golden column, column diameter: 400mm, column shape: round;

[0063] Type 8: Number of building bays: five bays, building component: side corridor, location: side corridor, column side length: 320mm, column shape: square.

[0064] Furthermore, the double-door width of the head door in the plane in step S7 has different sizes according to the number of bays of the target building, mainly including two types: Type 1, when the target building has three bays, the double-door width of the head door is 1800 mm; Type 2, when the target building has five bays, the double-door width of the head door is 2100 mm.

[0065] Furthermore, in step S7, the width of the patio stairs in the plane is 300 mm, and the length is divided into two cases according to the number of bays: Type 1, when the target building has three bays, the width of the patio stairs is 2600 mm; Type 2, when the target building has five bays, the width of the patio stairs is 2900 mm.

[0066] Furthermore, the process of drawing the plane components of the target building in step S7 includes generating columns, drawing double doors, drawing the platform and the stairs of the patio. Since the positions and sizes of the three common plane forms of the Cantonese ancestral hall are different, it is necessary to set the corresponding drawing methods, including the following three cases: Fig.13 As shown:

[0067] (1) When the target building has two entrances and three bays, the drawing process is as follows:

[0068] ① Generate a column: in (0.28w ia1 +176, 0.1h ia3 )、(0.72w ia1 -176, 0.1h ia3 )、(0.28w ia1 +176, 0.9h ia3 )、(0.72w ia1 -176, 0.9h ia3 ) generates a square eaves column with a side length of 250mm in the front hall; in (0.28w ia1 +176,h ia1 -0.92h ia4 -32)、(0.72w ia1 -176,h ia1 -0.92h ia4 -32) Generate a circular eaves column with a diameter of 280mm in the back hall; at (0.28w ia1 +176,h ia1 -0.69h ia4 -124), (0.72w ia1 -176,h ia1 -0.23h ia4 -308), (0.28w ia1 +176,h ia1 -0.69h ia4 -124), (0.28w ia1 +176,h ia1 -0.23h ia4 -308) generates a circular gold column with a diameter of 350mm in the back hall; in (w ia3 -175,h ia3 +0.29h ia2 )、(w ia3-175,h ia3 +0.71h ia2 )、(w ia2 +w ia3 +175,h ia3 +0.29h ia2 )、(w ia2 +w ia3 +175,h ia3 +0.71h ia2 ) Generate side columns with a side length of 250mm.

[0069] ②Draw the double doors of the front hall: (0.5w ia1 , 0.4h ia4 +130) Add a flat double door with a width of 1800mm.

[0070] ③Draw the front desk: (0.28w ia1 +176,0),(0.72w ia1 +24,0) as the starting point, draw a line to (0.28w ia1 +176, 0.4h ia3 )、(0.72w ia1 +24, 0.4h ia3 ) to generate the front hall platform space.

[0071] ④Draw the stairs of the patio: (0.5w ia1 -1300h ia2 +h ia3 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ia1 -1300h ia2 +h ia3 -300) as the starting point, draw a straight line to (0.5w ia1 +1300h ia2 +h ia3 -300), forming the target building patio stairs.

[0072] (2) When the target building has three entrances and three bays, the drawing process is as follows:

[0073] ① Generate a column: in (0.28w ja1 +176, 0.06h ja4 )、(0.72w ja1 -176, 0.06h ja4 )、(0.28w ja1 +176, 0.94h ja4 )、(0.72w ja1 -176, 0.94h ja4) Generate a square eaves column with a side length of 250mm for the front door; in (0.28w ja1 +176,h ja4 +h ja2 +0.06h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.06h ja5 )、(0.28w ja1 +176,h ja4 +h ja2 +0.94h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.94h ja5 )、(0.28w ja1 +176,h ja1 -0.92h ja6 +752)、(0.72w ja1 -176,h ja1 -0.92h ja6 +752) Generates a circular eaves column with a diameter of 280mm in the middle bedroom; at (0.28w ja1 +176,h ja4 +h ja2 +0.28h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.28h ja5 )、(0.28w ja1 +176,h ja4 +h ja2 +0.72h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.72h ja5 )、(0.28w ja1 +176,h ja1 -0.69h ja6 +668)、(0.72w ja1 -176,h ja1 -0.69h ja6 +668)、(0.28w ja1 +176,h ja1 -0.23h ja6 +484)、(0.72w ja1 -176,h ja1 -0.23hja6 +484) generates a circular gold column with a diameter of 350mm in the middle bedroom; in (w ja4 -175,h ja4 +0.29h ja2 )、(w ja4 -175,h ja4 +0.71h ja2 )、(w ja2 +w ja4 +175,h ja4 +0.29h ja2 )、(w ja2 +w ja4 +175,h ja4 +0.71h ja2 ) Generate the side columns of the front patio with a side length of 250mm; in (w ja5 -175,h ja1 -h ja6 -0.29h ja3 )、(w ja5 -175,h ja1 -h ja6 -0.29h ja3 )、(w ja3 +w ja5 +175,h ja1 -h ja6 -0.7h ja3 )、(w ja3 +w ja5 +175,h ja1 -h ja6 -0.7h ja3 ) Generates the side corridor columns of the rear patio with a side length of 250mm.

[0074] ②Draw the double doors of the front door: (0.5w ja1 , 0.39h ja4 +130) Add a flat double door with a width of 1800mm.

[0075] ③Draw the front desk: (0.28w ja1 +376,0),(0.72w ja1 -376, 0) as the starting point, the drawing length is 0.39h ja4 Line to (0.28w ja1 +376, 0.39h ja4 )、(0.72w ja1 -376, 0.39h ja4 ) to generate the front platform space.

[0076] ④ Draw the stairs of the front and back patios: (0.5w ja1-1300h ja2 +h ja4 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ja1 -1300h ja2 +h ja4 -300) as the starting point, draw a straight line to (0.5w ja1 +1300h ja2 +h ja4 -300), forming the front patio stairs of the target building; with (0.5w ja1 -1300h ja1 -h ja6 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ja1 -1300h ja1 -h ja6 +300) as the starting point, draw a straight line to (0.5w ja1 +1300h ja1 -h ja6 +300), forming the rear patio stairs of the target building.

[0077] (3) When the target building has three entrances and five bays, the drawing process is as follows:

[0078] ① Generate a column: in (0.16w jb1 +272, 0.06h jb4 )、(0.37w jb1 +104, 0.06h jb4 )、(0.63w jb1 -104, 0.06h jb4 )、(0.84w jb1 -272, 0.06h jb4 )、(0.16w jb1 +272, 0.94h jb4 )、(0.37w jb1 +104, 0.94h jb4 )、(0.63w jb1 -104, 0.94h jb4 )、(0.84w jb1 -272, 0.94h jb4 ) generates a square eaves column with a side length of 320mm in the front hall; in (0.16w jb1 +272,h jb4 +h jb2 +0.06h jb5 )、(0.37w jb1 +104,h jb4 +hjb2 +0.06h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.06h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.06h jb5 )、(0.16w jb1 +272,h jb4 +h jb2 +0.94h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.94h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.94h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.94h jb5 )、(0.16w jb1 +272,h jb1 -0.92h jb6 +752)、(0.37w jb1 +104,h jb1 -0.92h jb6 +752)、(0.63w jb1 -104,h jb1 -0.92h jb6 +752)、(0.84w jb1 -272,h jb1 -0.92h jb6 +752) generates a circular eaves column with a diameter of 320mm in the middle and back hall; in (0.16w jb1 +272,h jb4 +h jb2 +0.28h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.28h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.28h jb5 )、(0.84w jb1 -272,hjb4 +h jb2 +0.28h jb5 )、(0.16w jb1 +272,h jb4 +h jb2 +0.72h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.72h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.72h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.72h jb5 )、(0.16w jb1 +272,h jb1 -0.69h jb6 +668)、(0.37w jb1 +104,h jb1 -0.69h jb6 +668)、(0.63w jb1 -104,h jb1 -0.69h jb6 +668)、(0.84w jb1 -272,h jb1 -0.69h jb6 +668)、(0.16w jb1 +272,h jb1 -0.23h jb6 +484)、(0.37w jb1 +104,h jb1 -0.23h jb6 +484)、(0.63w jb1 -104,h jb1 -0.23h jb6 +484)、(0.84w jb1 -272,h jb1 -0.23h jb6 +484) generates a circular gold column with a diameter of 400mm in the middle and back hall; jb4 -210,h jb4 +0.29h jb2 )、(w jb4 -210,h jb4 +0.71h jb2 )、(w jb2 +wjb4 +210,h jb4 +0.29h jb2 )、(w jb2 +w jb4 +210,h jb4 +0.71h jb2 ) generates the side columns of the front patio with a side length of 320mm; in (w jb5 -210,h jb1 -h jb6 -0.29h jb3 )、(w jb5 -210,h jb1 -h jb6 -0.71h jb3 )、(w jb3 +w jb5 +210,h jb1 -h jb6 -0.29h jb3 )、(w jb3 +w jb5 +210,h jb1 -h jb6 -0.71h jb3 ) Generates the side corridor columns of the rear patio with a side length of 320mm.

[0079] ②Draw the double doors of the front hall at (0.5w jb1 , 0.5h jb4 -130) Add a flat double door with a width of 2100mm.

[0080] ③Draw the front desk: (0.25w jb1 ,0)、(0.75w jb1 , 0) as the starting point, draw a line to (0.25w jb1 , 0.39h jb4 -130), (0.75w jb1 , 0.39h jb4 -130) to generate the front hall platform space.

[0081] ④ Draw the stairs of the front and back patios: (0.5w jb1 -1450,h jb2 +h jb4 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and (0.5w jb1 -1450,h jb2 +h jb4 -300) as the starting point, draw a straight line to (0.5w jb1 +1450,h jb2 +h jb4-300), forming the front patio stairs of the target building; with (0.5w jb1 -1450,h jb1 -h jb6 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and (0.5w jb1 -1450,h jb1 -h jb6 +300) as the starting point, draw a straight line to (0.5w jb1 +1450,h jb1 -h jb6 +300), forming the rear patio stairs of the target building.

[0082] Compared with the prior art, the present invention has the following advantages and effects:

[0083] (1) The method of the present invention is based on the research of hyperspectral remote sensing images, making full use of the advantage of "image-spectrum integration" of hyperspectral data and applied to the field of traditional architectural protection and research. On the one hand, it can more accurately identify the Cantonese ancestral hall and directly collect the geographic coordinate values ​​of the identification results; on the other hand, it can obtain architectural patches through feature extraction and further identify the plane shape of the Cantonese ancestral hall by using image morphology.

[0084] (2) The method of the present invention deeply analyzes the plane features of the Cantonese ancestral hall and constructs plane drawing methods for three common plane types: two-in-one and three-bay, three-in-one and three-bay, and three-in-one and five-bay, so as to improve the comprehensiveness and accuracy of plane drawing.

[0085] (3) The method of the present invention can directly generate the floor plan of the Cantonese ancestral hall. The generated result can be directly used as the basic data for the study of the ancestral hall, greatly reducing the work cost of ground investigation and surveying personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0087] Figure 1 It is a flowchart of the steps of a method for automatically generating a Cantonese ancestral hall architectural plane based on hyperspectral remote sensing images disclosed in the present invention;

[0088] Figure 2 It is a band map of the material of the roof of the Cantonese ancestral hall disclosed in the present invention;

[0089] Figure 3 It is a schematic diagram of the association type between the number of corner points and the number of Guangfu ancestral halls disclosed in the present invention;

[0090] Figure 4It is a schematic diagram of the planar data calculation method of the two-entry Cantonese ancestral hall disclosed in the present invention;

[0091] Figure 5 It is a schematic diagram of the plan data calculation method of the three-entry Cantonese ancestral hall disclosed in the present invention;

[0092] Figure 6 It is a schematic diagram of the association type between the width data disclosed in the present invention and the number of bays of the Cantonese ancestral hall;

[0093] Figure 7 It is a schematic diagram of the column grid drawing of the two-entry and three-bay Cantonese ancestral hall disclosed in the present invention;

[0094] Figure 8 It is a schematic diagram of the column grid drawing of the three-in-three-bay Cantonese ancestral hall disclosed in the present invention;

[0095] Fig. 9 It is a schematic diagram of the column grid drawing of the three-in-five-bay Cantonese ancestral hall disclosed in the present invention;

[0096] Fig.10 It is a schematic diagram of the plan outline drawing of a two-entry and three-bay Cantonese ancestral hall disclosed in the present invention;

[0097] Fig.11 It is a schematic diagram of the plane outline drawing of the three-in-three-bay Cantonese ancestral hall disclosed in the present invention;

[0098] Fig.12 It is a schematic diagram of the plan outline drawing of the three-in-five-bay Cantonese ancestral hall disclosed in the present invention;

[0099] Fig.13 It is a schematic diagram of generating three types of Cantonese ancestral hall plane building components disclosed in the present invention;

[0100] Fig.14 It is a schematic diagram of generating a binary pattern of the roof of Lu Gong Temple in South China disclosed in the present invention;

[0101] Fig.15 It is a schematic diagram of the automatic plane generation of the Lu Gong Temple in South China disclosed in the present invention;

[0102] Fig.16 It is a schematic diagram of generating a binary pattern of the roof of the He's Ancestral Hall disclosed in the present invention;

[0103] Fig.17 It is an automatically generated schematic diagram of the plan of the He's Ancestral Hall disclosed in the present invention. DETAILED DESCRIPTION

[0104] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0105] Embodiment 1

[0106] Figure 1 This is a flowchart of the steps of a method for automatically generating a Cantonese ancestral hall architectural plane based on hyperspectral remote sensing images disclosed in the present invention. Figure 1 As shown, a method for automatically generating the architectural plane of a Cantonese ancestral hall based on hyperspectral remote sensing images includes the following steps:

[0107] S1. Image source selection: using hyperspectral remote sensing images as basic image elements, obtain remote sensing images of the area to be identified;

[0108] In the above step S1, a hyperspectral remote sensing image of the Huanan Lugong Temple in Dadun Village, Xintang Town, Zengcheng District, Guangzhou is obtained, and the image is preprocessed through lens correction, reflectivity correction and atmospheric correction, and then stitched to obtain a complete hyperspectral remote sensing image of the temple.

[0109] S2. Target building extraction: By identifying and classifying the band features of the roof material of the Guangfu Ancestral Hall in the remote sensing image, the target building image of the Guangfu Ancestral Hall is extracted, converted into a binary image spot and the building outline is obtained;

[0110] In the above step S2, the band analysis of the hyperspectral remote sensing image containing the Lu Gong Temple in South China is performed using ENVI5.6 software, and the temple patches are extracted according to the band characteristics of the roof material. After identification, the image is converted into a binary image, such as Fig.15 shown.

[0111] S3, corner point acquisition: Harris corner point detection method is used to process the extracted building outline of the target building, obtain the number of corner points, and determine the number of corner points based on the number;

[0112] In the above step S3, the Harris corner point detection method is used to identify the corner points of the building outline of the Lu Gong Temple in South China. A total of 8 corner points are obtained. According to the correlation between the number of corner points and the number of entrances of the target building, it is determined that the Lu Gong Temple in South China is a two-entry building, and the subscript is marked. i .

[0113] S4, calculating the plane data of the target building: extracting the projection coordinate values ​​of the corner points of the target building, calculating the plane data of the target building, and determining the number of bays of the target building based on the overall width data;

[0114] In the above step S4, based on the relationship between the overall width of the building and the number of bays, it is determined that the Hua Nan Lu Gong Temple is a two-entry and three-bay building, and the subscript ia .

[0115] S5. Generate the target building column grid: according to the target building plane data, automatically generate the target building column grid in terms of depth and width in the building CAD drawing window;

[0116] In the above step S5, the Lu Gong Temple in South China has two entrances and three bays, and the column grid drawing method adopts the first method. From left to right, 11 axes in the depth direction are formed in sequence according to the spacing, among which the left outer gable line s ia1 Located on the y-axis of the drawing window. The spacing between the axes is respectively the thickness of the gable l ia1 / l ia9 、Side corridor width l ia2 / l ia8 , Distance between side columns and side corridors l ia3 / l ia7 、The distance between the platform and the left column l ia4 / l ia6 、The heart is clean and wide ia5 By calculating l ia1 / l ia9 =400mm, l ia4 / l ia6 =200mm, l ia2 / l ia8 =2735mm, l ia3 / l ia7 =412mm, l ia5 =4946mm.

[0117] 14 axes in the width direction are formed in sequence according to the spacing, among which the lower contour line of the front door is z ia1 Located on the x-axis of the drawing window, the distances between the axes are l ia10 / l ia14 、Front eaves column of the main door-wall depth l ia11 、Inner wall thickness l ia12 、The rear eaves column of the front door-the depth of the wall l ia13 、Side corridor width l ia15 / l ia17 、Side corridor center width l ia16 , Bedroom eaves column retreat distance l ia18 , the bedroom is deep ia19 / l ia21 , the bedroom spans deep l ia20 、Exterior wall thickness l ia22 By calculating l ia12 =260mm, l ia22 =400mm, lia10 / l ia14 =424.5mm, l ia11 =2335mm, l ia13 =3631mm, l ia15 / l ia17 =1613mm, l ia16 =2336mm, l ia18 =748mm, l ia19 / l ia21 =2120mm, l ia20 =4232mm.

[0118] S6. Draw the basic outline of the target building plan: automatically draw the outline of the target building plan based on the column grid, draw the wall and divide the space of each building component to obtain the plan;

[0119] In the above step S6, the Lu Gong Temple in South China has two entrances and three bays, and the column grid drawing method adopts the first method. The process of drawing the basic outline of the target building plan is as follows:

[0120] ① Draw the outline: With (0,0) as the lower left corner, draw a rectangle with a width of 12040mm and a height of 22275mm as the overall outline; with (3135, 7075) as the lower left corner of the patio, draw a rectangle with a width of 5770mm and a height of 5562mm as the patio outline;

[0121] ② Draw the wall: Use (400, 3019.5) as the lower left corner point, draw a rectangle with a width of 11240mm and a height of 18837.5mm; use (400, 0) as the lower left corner point, draw a rectangle with a width of 11240mm and a height of 2759.5mm to generate the plan view wall;

[0122] ③ Divide the target building into various building components: starting from (400, 7075), draw a line with a length of 11240mm to (11640, 7075) to divide the front door space; starting from (400, 12637), draw a line with a length of 11240mm to (11640, 12637) to divide the bedroom and patio space; starting from (3135, 7075) and (8905, 7075), draw a line with a length of 5562mm to (3135, 12637) and (8905, 12637) to divide the side corridor space.

[0123] S7. Draw the plan components of the target building: Based on the above plan, draw the columns in the building plan, the double doors of the front hall, the platform and the stairs of the patio, and finally generate and export the complete plan of the target building.

[0124] In the above step S7, the Lu Gong Temple in South China has two entrances and three bays, and the column grid drawing method adopts the first method. The process of drawing the plane components of the target building is as follows:

[0125] ① Generate columns: Generate square eaves columns with a side length of 250mm at (3547, 424.5), (8493, 424.5), (3547, 6650.5), (8493, 6650.5); generate round eaves columns with a diameter of 280mm at (3547, 13385), (8493, 13385); generate round gold columns with a diameter of 350mm at (3547, 15505), (8493, 15505), (3547, 19737), (8493, 19737); generate side corridor columns with a side length of 250mm at (2960, 8688), (2960, 11024), (9080, 8688), (9080, 11024).

[0126] ② Draw the double door of the front hall: add a flat double door with a width of 1800mm at (6020, 2889).

[0127] ③ Draw the front desk platform: starting from (3747, 0) and (8293, 0), draw lines to (3747, 3759.5) and (8293, 3759.5) to generate the front desk platform space.

[0128] ④ Draw the stairs of the patio: With (4720, 12637) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm. With (4720, 12337) as the starting point, draw a straight line to (7320, 12337) to form the patio stairs of the target building.

[0129] Finally, close the "DOTE" layer and automatically export the floor plan. Fig.13 As shown in the figure, the automatically generated floor plan is highly similar to the actual floor plan of the Lu Gong Temple in South China. The experimental recognition results show that the automatic generation method of the architectural plane of the Guangfu ancestral hall based on hyperspectral remote sensing images can be directly applied to the research and protection of the Guangfu ancestral hall, greatly reducing the workload of ground survey and mapping personnel, and saving a lot of time, financial resources and material costs.

[0130] Embodiment 2

[0131] Step 1 of this embodiment is the same as the method of embodiment 1. First, the hyperspectral remote sensing image of the target building is collected and preprocessed. The target building image is extracted to obtain the building outline through band feature recognition and classification. The difference from embodiment 1 is that the recognition object is replaced. The recognition object of this embodiment is the He's Ancestral Hall in Shinan Village, Xiancun Town, Zengcheng District, Guangzhou City.

[0132] S2. Target building extraction: By identifying and classifying the band features of the roof material of the Guangfu Ancestral Hall in the remote sensing image, the target building image of the Guangfu Ancestral Hall is extracted, converted into a binary image spot and the building outline is obtained;

[0133] In the above step S2, the band analysis of the hyperspectral remote sensing image containing the He's Ancestral Hall is performed using the ENVI5.6 software, and the ancestral hall patches are extracted according to the band characteristics of the roof material. After identification, the image is converted into a binary image, such as Fig.16 shown.

[0134] S3, corner point acquisition: Harris corner point detection method is used to process the extracted building outline of the target building, obtain the number of corner points, and determine the number of corner points based on the number;

[0135] In the above step S3, the Harris corner point detection method is used to identify the corner points of the building outline of the He's Ancestral Hall. A total of 12 corner points are obtained. According to the correlation between the number of corner points and the number of entrances of the target building, the He's Ancestral Hall is judged to be a three-entry building, and the subscript is marked. j .

[0136] S4, calculating the plane data of the target building: extracting the projection coordinate values ​​of the corner points of the target building, calculating the plane data of the target building, and determining the number of bays of the target building based on the overall width data;

[0137] In the above step S4, based on the relationship between the overall width of the building and the number of bays, it is determined that the He's Ancestral Hall is a three-in-five-bay building, and the subscript jb .

[0138] S5. Generate the target building column grid: according to the target building plane data, automatically generate the target building column grid in terms of depth and width in the building CAD drawing window;

[0139] In the above step S5, since the He's Ancestral Hall has three entrances and five bays, the column grid drawing method adopts the third method. 17 axes in the depth direction are formed in sequence according to the spacing, and the spacing between each axis is respectively the thickness of the gable l jb1 / l jb15 、The width of the front patio and side corridor is l jb2 / l jb14 、The width of the front and rear corridors is l jb3 / l jb13 , Distance between the rear corridor and the end wall l jb4 / jb12 , the distance between the top wall and the left inner column l jb5 / l jb11 , the distance between the left inner column and the end wall l jb6 / l jb10 、Second room net width l jb7 / l jb9、The heart is wide jb8 By calculating l jb5 / l jb7 =200mm, l jb1 / l jb15 =400mm, l jb2 / l jb14 =2692mm, l jb3 / l jb13 =102mm, l jb4 / l jb8 =86mm, l jb7 / l jb9 =3695mm, l jb8 =4560mm.

[0140] 24 axes in the width direction are formed according to the spacing, and the spacing between each axis is l jb12 / l jb18 、Deepness of the outer wall between the first door and the second room l jb13 、Inner wall thickness l jb14 / l jb16 , Depth of the inner wall of the first door and the outer wall of the second room l jb15 、The rear eaves column of the front door-the depth of the wall l jb17 、The width of the second room of the front porch is l jb19 / l jb21 、The width of the front corridor is l jb20 、The distance between the eaves columns of the central hall and the retreat is l jb22 / l jb26 , the central hall spans deep into the front and back jb232 / l jb25 , the middle span of the hall is deep jb24 、The width of the second room of the rear corridor is l jb27 / l jb29 、The width of the back corridor is l jb28 , Bedroom eaves column retreat distance l jb30 , the bedroom is deep jb317 / l jb33 , the bedroom spans deep l jb32 、Exterior wall thickness l jb34 By calculating l ja14 / l jb16 =260mm, l ja32 =400mm, l jb22 =458mm, l jb17 =2387mm, l jb19 =563mm, l jb21 =3226mm, l jb23 / l jb25 =2170mm, l jb26 / l jb30 =620mm, ljb27 / l jb29 =2276mm, l jb28 =4553mm,l ja31 / l ja33 =1020mm,l jb32 =1480mm, l jb34 =695mm, l jb35 / l jb37 =1891mm, l jb36 =3813mm.

[0141] S6. Draw the basic outline of the target building plan: automatically draw the outline of the target building plan based on the column grid, draw the wall and divide the space of each building component to obtain the plan;

[0142] In the above step S6, the He's Ancestral Hall has three entrances and five bays, and the column grid drawing method adopts the third method. The process of drawing the basic outline of the target building plan is as follows:

[0143] ① Draw the outline: With (0,0) as the lower left corner point, draw the overall outline of the building with a width of 18338mm and a height of 37668mm; with (3092, 7628) as the lower left corner point of the front patio, draw the outline of the front patio with a width of 12154mm and a height of 7485mm; with (3194, 25458) as the lower left corner point of the back patio, draw the outline of the back patio with a width of 11950mm and a height of 3520mm;

[0144] ② Draw the wall: Starting from (400, 0), draw a straight line connecting (400, 2845), (3136, 2845), (3136, 3668), (15202, 3668), (15202, 2845), (17938, 2845), (17938, 0); starting from (400, 2975), draw a straight line connecting (2876, 2975), (2876, 3928), (15482, 3928), (15482, 2975), (17938, 2975), (17938, 37268), (400, 37268), and finally connect back to (400, 2975) to generate the plan view wall;

[0145] ③ Divide the building components of the target building: Draw a line with a length of 17538mm from (400, 7628) to (17938, 7628) to divide the front door space; draw a line with a length of 17538mm from (400, 15113) to (17938, 15113) to divide the front patio space; draw lines with a length of 17538mm from (3092, 7628) and (15246, 7628) to (3092, 15113) and (15246, 15 113), divide the space of the front courtyard and side corridor; draw a line from (400, 25458) to (17938, 25458) to divide the space of the central hall; draw a line from (400, 28978) to (17938, 28978) to divide the space of the back courtyard and bedroom; draw a line from (3194, 25458) and (15144, 25458) to (3194, 28978) and (15144, 28978) to divide the space of the back courtyard and side corridor.

[0146] S7. Draw the plan components of the target building: Based on the above plan, draw the columns in the building plan, the double doors of the front hall, the platform and the stairs of the patio, and finally generate and export the complete plan of the target building.

[0147] In the above step S7, since the He's Ancestral Hall has three entrances and five bays, the column grid drawing method adopts the third method, and the process of drawing the target building plane component is as follows:

[0148] ① Generate columns: Generate square eaves columns with a side length of 320mm at (3006, 458), (6889, 458), (11449, 458), (15332, 458), (3006, 7170), (6889, 7170), (11449, 7170), (15332, 7170); Generate square eaves columns with a side length of 320mm at (3006, 15733), (6889, 15733), (11449, 15733), (15332, 15733), (3006, 24838), (6889, 24838), (11449, 24838), (15332, 24838), (3006, 29673), (6889, 29673), (11449, 29673), (15332, 29673) generate a circular eaves column with a diameter of 320mm in the middle and back hall; in (3006, 18009), (6889, 18009), (11449, 180 09)、(15332,18009)、(3006,22562)、(6889,22562)、(11449,22562)、(15332,22562)、(3006,31564)、(6889,31564)、(11449,31564)、(15332,31564)、(3006,35337)、(6889,35337)、(11449,35337)、(153 At (32, 35337), a circular golden column with a diameter of 400mm is generated in the middle and back hall; at (2882, 9798), (2882, 12943), (12456, 9798), (12456, 12943), a side corridor column with a side length of 320mm is generated in the front patio; at (2984, 26478), (2984, 27958), (15354, 26478), (15354, 27958), a side corridor column with a side length of 320mm is generated in the back patio.

[0149] ② Draw the double door of the front hall: add a flat double door with a width of 2100mm at (9169, 3798).

[0150] ③ Draw the front desk platform: starting from (7089, 0) and (11249, 0), draw lines to (7089, 3668) and (11249, 3668) to generate the front desk platform space.

[0151] ④ Draw the stairs of the front and back patios: With (7719, 15113) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and with (7719, 14813) as the starting point, draw a straight line to (10619, 14813) to form the stairs of the front patio of the target building; with (7719, 28978) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and with (7719-1450, 28678) as the starting point, draw a straight line to (10619, 28678) to form the stairs of the back patio of the target building.

[0152] Finally, close the "DOTE" layer and automatically export the floor plan. Fig.17 As shown in the figure, the automatically generated floor plan is highly similar to the actual floor plan of the He's Ancestral Hall. The experimental recognition results show that the automatic generation method of the architectural plane of the Cantonese ancestral hall based on hyperspectral remote sensing images can be directly applied to the research and protection of the Cantonese ancestral hall, greatly reducing the workload of ground survey and mapping personnel, and saving a lot of time, financial resources and material costs.

[0153] The above two embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for automatically generating the architectural plane of a Cantonese ancestral hall based on hyperspectral remote sensing images, characterized in that: The generation method comprises the following steps: S1. Image source selection: using hyperspectral remote sensing images as basic image elements, obtain remote sensing images of the area to be identified; S2. Target building extraction: By identifying and classifying the band features of the roof material of the Guangfu Ancestral Hall in the remote sensing image, the target building image of the Guangfu Ancestral Hall is extracted, converted into a binary image spot and the building outline is obtained; S3, corner point acquisition: the Harris corner point detection method is used to process the extracted target building outline, obtain the number of corner points, and determine the number of target buildings according to the number; the Harris corner point detection method in step S3 is based on the grayscale difference of adjacent pixels, and uses a moving window to calculate the grayscale change value in the image, so as to determine whether it is a corner point, edge or smooth area, wherein the process of the Harris corner point detection method includes: conversion into a grayscale image, calculation of a differential image, Gaussian smoothing, calculation of local extreme values, and confirmation of corner points; There are two types of association between the number of corner points and the number of entrances of the target building: Type 1, when the number of corner points of the target building outline is 8, the number of entrances is two, consisting of the front door, patio and bedroom, marked with subscript i; Type 2, when the number of corner points of the target building outline is 12, the number of entrances is three, consisting of the front door, front patio, central hall, back patio and bedroom, marked with subscript j; S4, calculating the plane data of the target building: extracting the projection coordinate values ​​of the corner points of the target building, calculating the plane data of the target building, and determining the number of bays of the target building based on the overall width data; S5. Generate the target building column grid: according to the target building plane data, automatically generate the target building column grid in terms of depth and width in the building CAD drawing window; S6. Draw the basic outline of the target building plan: automatically draw the outline of the target building plan based on the column grid, draw the wall and divide the space of each building component to obtain the plan; S7. Draw the plane components of the target building: based on the above plane drawing, draw the columns, the double doors of the front hall, the platform and the stairs of the patio in the building plane, and finally generate and export the complete plane drawing of the target building; The plane data of the target building in step S4 includes the overall depth and width of the target building and the depth and width of each component of the building. The calculation method includes the following two situations: (1) When the target building has two steps, extract the projection coordinates of the upper left corner point, lower left corner point, lower right corner point, upper left corner point, lower left corner point, and lower right corner point of the target building's outer contour (x i1 ,y i1 )、(x i2 ,y i2 )、(x i3 ,y i3 )、(x i4 ,y i4 )、(x i5 ,y i5 ) and (x i6 ,y i6 ), calculate the overall width w of the target building i1 、Overall depth h i1 、Wide patio i2 And the depth of the patio i2 as follows: In the formula, l i1 , l i2 The smaller one is the overall depth of the target building h i1 , the larger one is the overall width of the target building w i1 ; will l i3 , l i4 The smaller one is the target building patio depth h i2 , the larger one is the target building patio width w i2 ; Calculate the width of the target building patio side corridor w i3 、Head door depth h i3 And the depth of the bedroom i4 The method is: In the formula, l i5 , l i6 The smaller one is the target building bedroom depth h i4 , the larger one is the target building's front door depth h i3 ; (2) When the target building has three steps, extract the projection coordinates of the upper left corner point of the outer contour, the lower left corner point of the outer contour, the lower right corner point of the outer contour, the upper left corner point of the inner upper contour, the lower left corner point of the inner upper contour, the lower right corner point of the inner upper contour, the upper left corner point of the inner lower contour, the lower left corner point of the inner upper contour, and the lower right corner point of the inner upper contour respectively. j1 ,y j1 )、(x j2 ,y j2 )、(x j3 ,y j3 )、(x j4 ,y j4 )、(x j5 ,y j5 )、(x j6 ,y j6 )、(x j7 ,y j7 )、(x j8 ,y j8 )、(x j9 ,y j9 ), calculate the overall width w of the target building j1 、Overall depth h j1 、The front patio is wide j2 、Deep front patio j2 、The rear patio is wide j3 And the back patio depth j3 as follows: The overall depth data of the Cantonese ancestral hall is greater than the overall width data, the depth data of the patio is less than the width data, and the width and depth data of the front patio are greater than the width and depth data of the back patio; where l j1 , l j2 The larger one is the overall depth h of the target building. j1 , the smaller one is the overall width of the target building w j1 ; will l j3 , l j4 For comparison, j5 , l j6 For comparison, if l j3 , l j5 If it is smaller, it is the depth of the target building patio, l j4 , l j6 The target building has a wide patio, otherwise l j4 , l j6 The depth of the target building patio, l j3 , l j5 The target building has a wide patio; further j3 , l j5 For comparison, j4 , l j6 For comparison, if l j3 , l j4 is smaller, then the depth of the rear patio of the target building is h j3 and wide j3 , l j5 , l j6 The depth of the front patio of the target building is h j2 and wide j2 , otherwise l j5 , l j6 The depth of the rear patio of the target building is h j3 and wide j3 , l j3 , l j4 The depth of the front patio of the target building is h j2 and wide j2 ; Calculate the width of the corridors on both sides of the front patio of the target building w j4 , The width of the corridors on both sides of the back patio is w j5 、Head door depth h j4 、The depth of the central hall j5 And the depth of the bedroom j6 The method is: In the formula, l j7 , l j8 For comparison, the larger one is the target building's dormitory depth h j6 , the smaller one is the target building front door depth h j4 .

2. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1 is characterized in that: In step S4, the number of bays includes three bays and five bays, which are marked as subscripts a and b respectively. According to the overall width data, the number of bays of the target building is judged to have the following three types: type one, when the target building is a two-entry building, the bay is three bays, marked as subscript ia; type two, when the target building is a three-entry building, the overall width of the building is w j1 When ≤16000mm, the target building is a three-bay building, marked with the subscript ja; Type 3, when the target building is a three-entry building, the overall width of the building is w j1 When >16000mm, the target building is a five-bay building, marked with the subscript jb.

3. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 2 is characterized in that: The process of step S5 is as follows: (1) When the target building has two entrances and three bays, the outer gable line s is formed according to the spacing ia1 / s ia11 、Inner gable line ia2 / s ia10 、Side corridor line ia3 / s ia9 , side column axis s ia4 / s ia8 、Shutai Lines ia5 / s ia7 、Central axis ia6 There are 11 axes in the depth direction, among which the left outer gable line s ia1 Located on the y-axis of the drawing window; the spacing between the axes from left to right is respectively the gable thickness l ia1 / l ia9 、Side corridor width l ia2 / l ia8 , Distance between side columns and side corridors l ia3 / l ia7 、The distance between the platform and the left column l ia4 / l ia6 、The heart is clean and wide ia5 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The width of the central room: the width of the secondary room = 1.6:1; The calculation method of the spacing of each axis in the depth direction is: The lower contour line z of the head door is formed in sequence according to the spacing ia1 、External eaves column line in front of the main door ia2 、Head door wall line ia3 / z ia4 、The back eaves column line of the front door ia5 , Lower ceiling line ia6 、Side gallery columns ia7 / z ia8 、Shangtianjing Line ia9 , bedroom eaves column line ia10 , bedroom gold column line ia11 / z ia12 、Exterior wall line ia13 / z ia14 There are 14 axes in the width direction, among which the lower contour line of the front door is z ia1 Located on the x-axis of the drawing window, the distances between the axes are l ia10 / l ia14 、Front eaves column of the main door-wall depth l ia11 、Inner wall thickness l ia12 、The rear eaves column of the front door-the depth of the wall l ia13 、Side corridor width l ia15 / l ia17 、Side corridor center width l ia16 、The retreat distance of the eaves columns of the bedroom is l ia18 , the bedroom is deep ia19 / l ia21 , the bedroom spans deep l ia20 、Exterior wall thickness l ia22 ; Each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the front door - the depth of the wall: the rear eaves column of the front door - the depth of the wall: the distance between the front eaves columns of the front door = 3:5:0.5; ④ The width of the center of the side corridor: the width of the secondary room of the side corridor = 1.5:1; ⑤ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the distance between the eaves columns of the bedroom = 6:3:1; The calculation method of the spacing of each axis in the width direction is: (2) When the target building has three entrances and three bays, the outer gable line s is formed in sequence according to the spacing ja1 / s ja13 , left inner gable line s ja2 / s ja12 、Front side corridor line ja3 / s ja11 、Back side corridor line ja4 / s ja10 , column axis s ja5 / s ja9 、Shutai Lines ja6 / s ja8 、Central axis ja7 There are 13 axes in the depth direction, among which the left outer gable line s ja1 Located on the y-axis of the drawing window; the spacing between the axes from left to right is respectively the gable thickness l ja1 / l ja11 、Width of the patio side corridor l ja2 / l ja10 、Side corridor width spacing l ja3 / l ja9 , Distance between side columns and rear corridor l ja4 / l ja8 、The distance between the platform and the side column l ja5 / l ja7 、The heart is clean and wide ja6 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The central width: the secondary width = 1.6:1, and the calculation method of the axis spacing is: The lower contour line z of the head door is formed in sequence according to the spacing ja1 、External eaves column line in front of the main door ja2 、Head door wall line ja3 / z ja4 、The back eaves column line of the front door ja5 , down the front patio line z ja6 、Side gallery columns ja7 / z ja8 , go up to the front patio line z ja9 、Central hall eaves column line ja10 / z ja13 、Z ja11 / z ja12 、The column line of the rear eaves of the central hall ja13 , down the back patio line z ja14 、Rear side columns ja15 / z ja16 , upper back patio line z ja17 , bedroom eaves column line ja18 , bedroom gold column line ja19 / z ja20 、Exterior wall line ja21 / z ja22 There are 22 axes in the width direction, among which the lower contour line of the front door is z ja1 Located on the x-axis of the drawing window, the distances between the axes are l ja12 / l ja16 、Front eaves column of the main door-wall depth l ja13 、Wall thickness l ja14 、The rear eaves column of the front door-the depth of the wall l ja15 、The width of the second room of the front corridor is l ja17 / l ja19 、The width of the front corridor is l ja18 、The distance between the eaves columns of the central hall and the retreat is l ja20 / l ja24 , the central hall spans deep into the front and back ja21 / l ja23 , the middle span of the hall is deep ja22 、The width of the second room of the rear corridor is l ja25 / l ja27 、The width of the back corridor is l ja26 、The retreat distance of the eaves columns of the bedroom is l ja28 , the bedroom is deep ja29 / l ja31 , the bedroom spans deep l ja30 、Exterior wall thickness l ja32 , each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the front door - the depth of the wall: the rear eaves column of the front door - the depth of the wall: the distance between the eaves columns of the front door = 3:5:0.5; ④ The width of the center of the side corridor: the width of the secondary corridor = 1.5:1; ⑤ The depth of the middle span of the central hall: the depth of the front and rear spans of the central hall: the distance between the eaves columns of the central hall = 6:3:1; ⑥ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the distance between the eaves columns of the bedroom = 6:3:

1. The calculation method of the spacing of each axis in the width direction is: (3) When the target building has three entrances and five bays, the outer gable line s is formed in sequence according to the spacing jb1 / s jb17 、Inner gable line jb2 / s jb16 、Outer corridor line jb3 / s jb15 、Inner corridor line jb4 / s jb14 、External wall line of the top room jb5 / s jb13 , outer column axis s jb6 / s jb12 、The inner wall line of the top room jb7 / s jb11 , inner column axis s jb8 / s jb10 、Central axis jb9 There are 17 axes in the depth direction, among which the left outer gable line s jb1 Located on the y-axis of the drawing window, the spacing between the axes is respectively the gable thickness l jb1 / l jb15 、The width of the front patio and side corridor is l jb2 / l jb14 、The width of the front and rear corridors is l jb3 / l jb13 , Distance between the rear corridor and the end wall l jb4 / l jb12 , the distance between the top wall and the left inner column l jb5 / l jb11 , the distance between the left inner column and the end wall l jb6 / l jb10 、Second room net width l jb7 / l jb9 、The heart is wide jb8 , each spacing meets the following conditions: ① The gable thickness is 400mm as a representative value; ② The width of the center: the width of the secondary: the width of the end = 1.6:1.35:

1. The calculation method of the spacing of each axis is: The lower contour line z of the head door is formed in sequence according to the spacing jb1 、External eaves column line in front of the main door jb2 、Wall line between the front door and the back door jb3 / z jb4 、The wall line of the main door, the center and the secondary room jb5 / z jb6 、The back eaves column line of the front door jb7 , down the front patio line z jb8 、Front side columns jb9 / z jb10 , go up to the front patio line z jb11 、Central hall eaves column line jb12 / z jb15 、Z jb13 / z jb14 , down the back patio line z jb16 、Rear side columns jb17 / z jb18 , upper back patio line z jb19 , bedroom eaves column line jb20 , bedroom gold column line jb21 / z jb22 、Exterior wall line jb23 / z jb24 There are 24 axes in the width direction, among which the lower contour line of the front door is z jb1 Located on the x-axis of the drawing window, each spacing meets the following conditions: ① The thickness of the exterior wall is 400mm as a representative value; ② The thickness of the interior wall is 260mm as a representative value; ③ The front eaves column of the front door - the depth of the exterior wall of the end room: the depth of the end room of the front door - the depth of the exterior wall of the secondary room: the rear eaves column of the front door - the depth of the wall: the eaves column setback of the front door = 3:1:4:0.5; ④ The width of the center of the side corridor: the width of the secondary room of the side corridor = 1.5:1; ⑤ The depth of the middle span of the central hall: the depth of the front and rear spans of the central hall: the eaves column setback of the central hall = 6:3:1; ⑥ The depth of the middle span of the bedroom: the depth of the front and rear spans of the bedroom: the eaves column setback of the bedroom = 6:3:1; The calculation method of the spacing of each axis in the width direction is:

4. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1, characterized in that: Drawing the basic outline of the target building plan in step S6 includes the following three situations: (1) The target building has two entrances and three bays. The drawing process is as follows: ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w ia1 , height is h ia1 The overall outline of the building; ia3 ,h ia3 ) is the lower left corner of the target building patio, and the drawing width is w ia2 , height is h ia2 The patio outline; ②Draw the wall: (400, 0.39h ia3 +260) is the lower left corner point, and the drawing width is w ia1 -800, height is h ia1 -0.39h ia3 -660 rectangle; with (400, 0) as the lower left corner, draw a rectangle with a width of w ia1 -800, high 0.39h ia3 Rectangle, generate the plane wall; ③ Divide the target building into its components: (400, h ia3 ) as the starting point to draw a line to (w ia1 -400,h ia3 ), divide the front door space; With (400,h ia2 +h ia3 ) as the starting point to draw a line to (w ia1 -400,h ia2 +h ia3 ), dividing the bedroom and the patio space; (w ia3 ,h ia3 )、(w ia3 +w ia2 ,h ia3 ) as the starting point to draw a line to (w ia3 ,h ia3 +h ia2 )、(w ia3 +w ia2 ,h ia3 +h ia2 ), dividing the side corridor space; (2) When the target building has three entrances and three bays, the drawing process is as follows: ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w ja1 , height is h ja1 The overall outline of the building; ja4 ,h ja4 ) is the lower left corner of the front patio of the target building, and the drawing width is w ja2 , height is h ja2 The front patio outline; with (w ja5 ,h ja4 +h ja2 +h ja5 ) is the lower left corner of the back patio of the target building, and the drawing width is w ja3 , height is h ja3 The rear patio outline; ②Draw the wall: (400, 0.39h ja4 +260) is the lower left corner point, and the drawing width is w ja1 -800, height is h ia1 -0.39h ja4 -660 rectangle; with (400, 0) as the lower left corner, draw a rectangle with a width of w ja1 -800, high 0.39h ja3 Rectangle, generate the plane wall; ③ Divide the target building into its components: (400, h ja4 ) as the starting point to draw a line to (w ja1 -400,h ja4 ), divide the front door space; With (400,h ja2 +h ja4 ) as the starting point to draw a line to (w ja1 -400,h ja2 +h ja4 ), dividing the front patio space; (w ja4 ,h ja4 )、(w ja4 +w ja2 ,h ja4 ) as the starting point to draw a line to (w ja4 ,h ja4 +h ja2 )、(w ja4 +w ja2 ,h ja4 +h ja2 ), dividing the space of the front patio and side corridor; With (400,h ja2 +h ja4 +h ja5 ) as the starting point to draw a line to (w ja1 -400,h ja2 +h ja4 +h ja5 ), dividing the central hall space; With (400,h ja1 -h ja6 ) as the starting point to draw a line to (w ja1 -400,h ja1 -h ja6 ), dividing the back patio and bedroom space; (w ja5 ,h ja4 +h ja2 +h ja5 )、(w ja5 +w ja3 ,h ja4 +h ja2 +h ja5 ) as the starting point to draw a line to (w ja5 ,h ja1 -h ja6 )、(w ja5 +w ja3 ,h ja1 -h ja6 ), dividing the back patio and side corridor space; (3) When the target building has three entrances and five bays, the drawing process is as follows: ① Draw the outline: Take (0,0) as the lower left corner of the target building and draw the width as w jb1 , height is h jb1 The overall outline of the building; jb4 ,h jb4 ) is the lower left corner of the front patio of the target building, and the drawing width is w jb2 , height is h jb2 The front patio outline; with (w jb5 ,h jb4 +h jb2 +h jb5 ) is the lower left corner of the back patio of the target building, and the drawing width is w jb3 , height is h jb3 The rear patio outline; ② Draw the wall: Starting from (400, 0), draw a straight line connecting (400, 0.39h jb4 -130), (0.16w jb1 +472, 0.39h jb4 -130), (0.16w jb1 +472, 0.5h jb4 -130), (0.84w jb1 -472, 0.5h jb4 -130), (0.84w jb1 -472, 0.39h jb4 -130)、(w jb1 -400, 0.39h jb4 -130)、(w jb1 -400, 0); (400, 0.39h jb4 +130 as the starting point, draw a straight line connecting (0.16w jb1 +72, 0.39h jb4 +130)、(0.16w jb1 +72, 0.5h jb4 +130)、(0.84w jb1 -72, 0.5h jb4 +130)、(0.84w jb1 -72, 0.39h jb4 +130)、(w jb1 -400, 0.39h jb4 +130)、(w jb1 -400,h jb4 -400), (400, h jb4 -400), and finally connected back to (400, 0.39h jb4 +130), generate the plan wall; ③ Divide the target building into its components: (400, h jb4 ) as the starting point to draw a line to (w jb1 -400,h jb4 ), divide the front door space; With (400,h jb2 +h jb4 ) as the starting point to draw a line to (w jb1 -400,h jb2 +h jb4 ), dividing the front patio space; (w jb4 ,h jb4 )、(w jb4 +w jb2 ,h jb4 ) as the starting point to draw a line to (w jb4 ,h jb4 +h jb2 )、(w jb4 +w jb2 ,h jb4 +h jb2 ), dividing the space of the front patio and side corridor; With (400,h jb2 +h jb4 +h jb5 )Draw a line to (w jb1 -400,h jb2 +h jb4 +h jb5 ), dividing the central hall space; With (400,h jb1 -h jb6 ) as the starting point to draw a line to (w jb1 -400,h jb1 -h jb6 ), dividing the back patio and bedroom space; (w jb5 ,h jb4 +h jb2 +h jb5 )、(w jb5 +w jb3 ,h jb4 +h jb2 +h jb5 ) as the starting point to draw a line to (w jb5 ,h jb1 -h jb6 )、(w jb5 +w jb3 ,h jb1 -h jb6 ), dividing the side corridor space of the rear patio.

5. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1, characterized in that: In step S7, the double door sizes of the front hall in the plane include two types: type one, when the target building has three bays, the double door width of the front hall is 1800 mm; type two, when the target building has five bays, the double door width of the front hall is 2100 mm.

6. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1, characterized in that: The columns in the plane in step S7 can be divided into 8 types according to the number of building bays, the building components and the locations, which are: Type 1: Number of building bays: three bays, building component: front hall, location: eaves column, column side length: 250mm, column shape: square; Type 2: Number of building bays: three bays, building components: central hall / back hall, location: eaves column, column diameter: 280mm, column shape: round; Type 3: Number of building bays: three bays, building components: central hall / back hall, location: golden column, column diameter: 350mm, column shape: round; Type 4: Number of building bays: three bays, building component: side corridor, location: side corridor, column side length: 250mm, column shape: square; Type 5: Number of building bays: 5 bays, building component: front hall, location: eaves column, column side length: 320mm, column shape: square; Type 6: Number of building bays: 5 bays, building components: central hall / back hall, location: eaves column, column diameter: 320mm, column shape: round; Type 7: Number of building bays: 5 bays, building components: central hall / back hall, location: golden column, column diameter: 400mm, column shape: round; Type 8: Number of building bays: five bays, building component: side corridor, location: side corridor, column side length: 320mm, column shape: square.

7. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1, characterized in that: In step S7, the width of the patio stairs in the plane is 300 mm, and the length includes two cases: type one, when the target building has three bays, the width of the patio stairs is 2600 mm; type two, when the target building has five bays, the width of the patio stairs is 2900 mm.

8. The method for automatically generating the architectural plane of a Cantonese ancestral hall from a hyperspectral remote sensing image according to claim 1, characterized in that: The method for drawing the target building plane component in step S7 includes the following three cases: (1) When the target building has two entrances and three bays, the drawing process is as follows: ① Generate a column: in (0.28w ia1 +176, 0.1h ia3 )、(0.72w ia1 -176, 0.1h ia3 )、(0.28w ia1 +176, 0.9h ia3 )、(0.72w ia1 -176, 0.9h ia3 ) generates a square eaves column with a side length of 250mm in the front hall; in (0.28w ia1 +176,h ia1 -0.92h ia4 -32)、(0.72w ia1 -176,h ia1 -0.92h ia4 -32) Generate a circular eaves column with a diameter of 280mm in the back hall; at (0.28w ia1 +176,h ia1 -0.69h ia4 -124), (0.72w ia1 -176,h ia1 -0.23h ia4 -308), (0.28w ia1 +176,h ia1 -0.69h ia4 -124), (0.28w ia1 +176,h ia1 -0.23h ia4 -308) generates a circular gold column with a diameter of 350mm in the back hall; in (w ia3 -175,h ia3 +0.29h ia2 )、(w ia3 -175,h ia3 +0.71h ia2 )、(w ia2 +w ia3 +175,h ia3 +0.29h ia2 )、(w ia2 +w ia3 +175,h ia3 +0.71h ia2 ) Generate side columns with a side length of 250mm; ②Draw the double doors of the front hall: (0.5w ia1 , 0.4h ia4 +130) Add a flat double door with a width of 1800mm; ③Draw the front desk: (0.28w ia1 +176,0),(0.72w ia1 +24,0) as the starting point, draw a line to (0.28w ia1 +176, 0.4h ia3 )、(0.72w ia1 +24, 0.4h ia3 ) to generate the front hall platform space; ④Draw the stairs of the patio: (0.5w ia1 -1300h ia2 +h ia3 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ia1 -1300h ia2 +h ia3 -300) as the starting point, draw a straight line to (0.5w ia1 +1300h ia2 +h ia3 -300), forming the target building patio stairs; (2) When the target building has three entrances and three bays, the drawing process is as follows: ① Generate a column: in (0.28w ja1 +176, 0.06h ja4 )、(0.72w ja1 -176, 0.06h ja4 )、(0.28w ja1 +176, 0.94h ja4 )、(0.72w ja1 -176, 0.94h ja4 ) Generate a square eaves column with a side length of 250mm for the front door; in (0.28w ja1 +176,h ja4 +h ja2 +0.06h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.06h ja5 )、(0.28w ja1 +176,h ja4 +h ja2 +0.94h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.94h ja5 )、(0.28w ja1 +176,h ja1 -0.92h ja6 +752)、(0.72w ja1 -176,h ja1 -0.92h ja6 +752) Generates a circular eaves column with a diameter of 280mm in the middle bedroom; at (0.28w ja1 +176,h ja4 +h ja2 +0.28h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.28h ja5 )、(0.28w ja1 +176,h ja4 +h ja2 +0.72h ja5 )、(0.72w ja1 -176,h ja4 +h ja2 +0.72h ja5 )、(0.28w ja1 +176,h ja1 -0.69h ja6 +668)、(0.72w ja1 -176,h ja1 -0.69h ja6 +668)、(0.28w ja1 +176,h ja1 -0.23h ja6 +484)、(0.72w ja1 -176,h ja1 -0.23h ja6 +484) generates a circular gold column with a diameter of 350mm in the middle bedroom; in (w ja4 -175,h ja4 +0.29h ja2 )、(w ja4 -175,h ja4 +0.71h ja2 )、(w ja2 +w ja4 +175,h ja4 +0.29h ja2 )、(w ja2 +w ja4 +175,h ja4 +0.71h ja2 ) Generate the side columns of the front patio with a side length of 250mm; in (w ja5 -175,h ja1 -h ja6 -0.29h ja3 )、(w ja5 -175,h ja1 -h ja6 -0.29h ja3 )、(w ja3 +w ja5 +175,h ja1 -h ja6 -0.7h ja3 )、(w ja3 +w ja5 +175,h ja1 -h ja6 -0.7h ja3 ) Generate the side columns of the rear patio with a side length of 250mm; ②Draw the double doors of the front door: (0.5w ja1 , 0.39h ja4 +130) Add a flat double door with a width of 1800mm; ③Draw the front desk: (0.28w ja1 +376,0),(0.72w ja1 -376, 0) as the starting point, the drawing length is 0.39h ja4 Line to (0.28w ja1 +376, 0.39h ja4 )、(0.72w ja1 -376, 0.39h ja4 ) to generate the first school platform space; ④ Draw the stairs of the front and back patios: (0.5w ja1 -1300h ja2 +h ja4 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ja1 -1300h ja2 +h ja4 -300) as the starting point, draw a straight line to (0.5w ja1 +1300h ja2 +h ja4 -300), forming the front patio stairs of the target building; with (0.5w ja1 -1300h ja1 -h ja6 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2600mm, and (0.5w ja1 -1300h ja1 -h ja6 +300) as the starting point, draw a straight line to (0.5w ja1 +1300h ja1 -h ja6 +300), forming the back patio stairs of the target building; (3) When the target building has three entrances and five bays, the drawing process is as follows: ① Generate a column: in (0.16w jb1 +272, 0.06h jb4 )、(0.37w jb1 +104, 0.06h jb4 )、(0.63w jb1 -104, 0.06h jb4 )、(0.84w jb1 -272, 0.06h jb4 )、(0.16w jb1 +272, 0.94h jb4 )、(0.37w jb1 +104, 0.94h jb4 )、(0.63w jb1 -104, 0.94h jb4 )、(0.84w jb1 -272, 0.94h jb4 ) generates a square eaves column with a side length of 320mm in the front hall; in (0.16w jb1 +272,h jb4 +h jb2 +0.06h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.06h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.06h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.06h jb5 )、(0.16w jb1 +272,h jb4 +h jb2 +0.94h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.94h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.94h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.94h jb5 )、(0.16w jb1 +272,h jb1 -0.92h jb6 +752)、(0.37w jb1 +104,h jb1 -0.92h jb6 +752)、(0.63w jb1 -104,h jb1 -0.92h jb6 +752)、(0.84w jb1 -272,h jb1 -0.92h jb6 +752) generates a circular eaves column with a diameter of 320mm in the middle and back hall; in (0.16w jb1 +272,h jb4 +h jb2 +0.28h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.28h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.28h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.28h jb5 )、(0.16w jb1 +272,h jb4 +h jb2 +0.72h jb5 )、(0.37w jb1 +104,h jb4 +h jb2 +0.72h jb5 )、(0.63w jb1 -104,h jb4 +h jb2 +0.72h jb5 )、(0.84w jb1 -272,h jb4 +h jb2 +0.72h jb5 )、(0.16w jb1 +272,h jb1 -0.69h jb6 +668)、(0.37w jb1 +104,h jb1 -0.69h jb6 +668)、(0.63w jb1 -104,h jb1 -0.69h jb6 +668)、(0.84w jb1 -272,h jb1 -0.69h jb6 +668)、(0.16w jb1 +272,h jb1 -0.23h jb6 +484)、(0.37w jb1 +104,h jb1 -0.23h jb6 +484)、(0.63w jb1 -104,h jb1 -0.23h jb6 +484)、(0.84w jb1 -272,h jb1 -0.23h jb6 +484) generates a circular gold column with a diameter of 400mm in the middle and back hall; jb4 -210,h jb4 +0.29h jb2 )、(w jb4 -210,h jb4 +0.71h jb2 )、(w jb2 +w jb4 +210,h jb4 +0.29h jb2 )、(w jb2 +w jb4 +210,h jb4 +0.71h jb2 ) generates the side columns of the front patio with a side length of 320mm; in (w jb5 -210,h jb1 -h jb6 -0.29h jb3 )、(w jb5 -210,h jb1 -h jb6 -0.71h jb3 )、(w jb3 +w jb5 +210,h jb1 -h jb6 -0.29h jb3 )、(w jb3 +w jb5 +210,h jb1 -h jb6 -0.71h jb3 ) Generate the side columns of the rear patio with a side length of 320mm; ②Draw the double doors of the front hall: (0.5w jb1 , 0.5h jb4 -130) Add a flat double door with a width of 2100mm; ③Draw the front desk: (0.25w jb1 ,0)、(0.75w jb1 , 0) as the starting point, draw a line to (0.25w jb1 , 0.39h jb4 -130), (0.75w jb1 , 0.39h jb4 -130), generating the front hall platform space; ④ Draw the stairs of the front and back patios: (0.5w jb1 -1450,h jb2 +h jb4 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and (0.5w jb1 -1450,h jb2 +h jb4 -300) as the starting point, draw a straight line to (0.5w jb1 +1450,h jb2 +h jb4 -300), forming the front patio stairs of the target building; with (0.5w jb1 -1450,h jb1 -h jb6 ) as the upper left corner, draw a rectangle with a length of 600mm and a width of 2900mm, and (0.5w jb1 -1450,h jb1 -h jb6 +300) as the starting point, draw a straight line to (0.5w jb1 +1450,h jb1 -h jb6 +300), forming the rear patio stairs of the target building.