define_input.m fails when .mat file contains only one tree
dluks opened this issue · 1 comments
dluks commented
When a .mat file contains only one tree, nt
is equal to 1 and so define_input
never assigns the cloud to P
.
TreeQSM/src/tools/define_input.m
Lines 73 to 85 in 6630bbf
This results in an error on line 89:
%% Estimate the stem diameter close to bottom
% Define height
Hb = min(P(:,3));
zoeschindler commented
I never had this issue, although I always have only one point cloud in my .mat files. Is your point cloud in a matrix with 3 columns (xyz)?