This book is in Open Review. I want your feedback to make the book better for you and other readers. To add your annotation, select some text and then click the on the pop-up menu. To see the annotations of others, click the in the upper right hand corner of the page
Cours 7 Classification
7 = bruit 2 = sol vegetation = 0,3,4,5
table(ST@data$Classification) # 7 = bruit, 2 = sol, veg = 3,4,5
ST@data <- ST@data[Classification != 7,] # enlever le bruitClassifier le sol
# Modèle numérique de terrain
mnt <- rast("Z:/users/VincyaneBadouard/ALS2022/mnt_roi36ha_1m.asc")
plot(mnt)
# Normaliser la hauteur du sol
ST_norm <- lidR::normalize_height(ST, mnt) # applati le relief
plot(ST_norm)# sol plat
# Classifier les points
ST_norm@data[(Z>(-0.2) & Z< 0.5), Classification := 2]
table(ST_norm@data$Classification) # 7 = bruit, 2 = sol, vegetation = 3,4,5
# plot(ST_norm, color = "Classification") # trop long
# Dénormaliser la hauteur du sol
ST <- lidR::unnormalize_height(ST_norm)