orb-slam2_with_semantic_label
orb-slam2_with_semantic_label copied to clipboard
segmentation.cc
In segmentation.cc at lines 211, "Eigen::MatrixXf normals_mat(num_planes, num_super_voxels);" by num_planes and num_super_voxels. the num_super_voxels is not equal to 3.but at lines 268 the normals_mat is "normals_mat.row(count_idx) << p_coeffs(0), p_coeffs(1), p_coeffs(2);" when running, the error occured because of the normal_mat.
So i changed the code at line 211 "Eigen::MatrixXf normals_mat(num_planes, 3);" and it works. i wonder which normal_mat is correct?