InverseTampere / TreeQSM

Quantitative Structure Models of Single Trees from Laser Scanner Data
Other
144 stars 46 forks source link

Only incomplete runs / empty models from `make_models`: A question of parameter values? #22

Closed thomashay closed 6 months ago

thomashay commented 6 months ago

Hello there, I am having some trouble getting any results using different datasets and input parameter combinations. Following the user manual under section 1.10.5, I have experimented a lot with different input parameter values, but in all cases the make_models function only returns an empty struct array as it failes to produce non-empty models:

Modelling tree 1/1 (P):
Incomplete run!!
Incomplete run!!
Incomplete run!!
Incomplete run!!
Incomplete run!!

QSMs = 

  0×0 empty struct array with fields:

    cylinder
    branch
    treedata
    rundata
    pmdistance
    triangulation

I have attached one of the datasets I experimented with, which is artificial data from a simple 3D model that I used in an attempt to make it easy for the algorithm (basic_spruce.zip). The tree has a total height of 30m and only very little and no thin branches. I used the parameter suggestions from the user manual for a 20-20m tree but bumped all values up slightly as the tree has no fine structures. I also experimented with substantially smaller and larger values as well:

inputs.PatchDiam1 = [0.1 0.15]; 
inputs.PatchDiam2Min = [0.02 0.03 0.04]; 
inputs.PatchDiam2Max = [0.09 0.11]; 

inputs.BallRad1 = inputs.PatchDiam1+0.04; 
inputs.BallRad2 = inputs.PatchDiam2Max+0.02;

My question is if this problem is related to parameter value choice or whether I am missing something completely here. Any advice is much appreciated!

Thanks, Thomas

thomashay commented 6 months ago

My bad, I forgot to install the Statistics and Machine Learning Toolbox. Now it works :)