Tree Structural Complexity Metric #428
Replies: 2 comments 4 replies
-
I quickly looked into the paper and what you are talking about is the fractal dimension computed with a box counting method. I already worked on it at the very beginning of lidR but I gave up. It is relatively tricky to implement efficiently and I don't want to rely on third party package. There is a package for that https://cran.r-project.org/web/packages/fractaldim/fractaldim.pdf that provides many ways to compute the fractal dimension including boxcounting but it supports only 2D I think. library(Rdimtools)
cube = cbind(runif(10000), runif(10000), runif(10000))
line = cbind(0,0, runif(10000))
plane = cbind(runif(10000), runif(10000), 0)
est.boxcount(cube)$estdim
#> 2.53
est.boxcount(plane)$estdim
#> 1.81
est.boxcount(line)$estdim
#> 0.96 Expected values being 3,2,1 respectively, I'm not sure what is computed. But the doc makes reference to a paper. Anyway, once you have a function you like you can use it: library(lidR)
fd = function(X,Y,Z)
{
M = cbind(X,Y,Z)
est.boxcount(M)$estdim
}
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
metrics = grid_metrics(las, ~fd(X,Y,Z), 10)
plot(metrics, col = height.colors(50)) |
Beta Was this translation helpful? Give feedback.
-
Thank you for your developements. But I'm not a Lidar specialist, how this metrics can be interpreted. I'm not able to relate this calculation with the papers cited. Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi Jean-Romain,
I was wondering if you had any interest in adding another structural complexity metric (besides entropy/VCI)? The metric in question is called 'box dimension', and has recently been applied when investigating structural complexity in Scots pine (Saarinen et al., 2021; https://doi.org/10.1002/ece3.7216). This metric would help to understand the relationship between structural complexity and stem/crown size and shape.
The metric was first been applied to laser scanning data by Seidel in 2017 (https://doi.org/10.1002/ece3.3661), but it seems that he wrote the routine in Mathematica. The formula outlining how box dimension is calculated is outlined in section 2.1 of Seidel (2017), and section 3.2 of Saarinen et al., (2021), while the additional information and data for calculating the box dimension in Saarinen et al. can be found here: http://doi.org/10.5281/zenodo.4419878.
I think a similar metric might be implemented using the function 'est.boxcount' in the R package 'Rdimtools' (https://github.com/kyoustat/Rdimtools, https://cran.r-project.org/web/packages/Rdimtools/Rdimtools.pdf), however they seem to use a radius rather than a box.
Thank you for your time,
Francois
Integrated Remote Sensing Studio,
Faculty of Forestry,
UBC
Beta Was this translation helpful? Give feedback.
All reactions