I have loaded my single tree point cloud as a las file and am now applying TreeQSM on it but I keep getting the error:
Error computing the convex hull. The points may be collinear.
It happens in the tree_data.m script at line 520. I have tried to use a try and catch statement in the tree_data.m script where it keeps happening. I plotted X(:,1),X(:,2) and saw that they were indeed just a line so I would mimic the output as I interpret it would be for a line (K = [1 1], A = 0). This however leads to the plotted tree having branches missing and the trunk being misaligned etc. Am I doing something wrong or is there a bug somewhere?
I have loaded my single tree point cloud as a las file and am now applying TreeQSM on it but I keep getting the error:
Error computing the convex hull. The points may be collinear.
It happens in the tree_data.m script at line 520. I have tried to use a try and catch statement in the tree_data.m script where it keeps happening. I plotted X(:,1),X(:,2) and saw that they were indeed just a line so I would mimic the output as I interpret it would be for a line (K = [1 1], A = 0). This however leads to the plotted tree having branches missing and the trunk being misaligned etc. Am I doing something wrong or is there a bug somewhere?